You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was investigating the generation of activities that seemingly have no data other than disabled set to true. Trying different tests based on what the code does and I found that in the case where an activity's name and slug doesn't match (i.e. slugify returns a different value for the slugification of the name than the actual activity slug), something interesting happens.
If one tries to create an activity with a name that would generate an identical slug:
It passes the test for "Does an activity already exist that has the same name?," doesn't show an error in the popup, however, because the slug is identical to the existing activity, we instead are taken to the existing activity:
What's more, it sets fields on the activity as though it was a new activity.
Note: disabled is now true, and the name has changed...
No, this isn't that bug...
But it is interesting, nonetheless.
I was investigating the generation of activities that seemingly have no data other than
disabled
set to true. Trying different tests based on what the code does and I found that in the case where an activity's name and slug doesn't match (i.e. slugify returns a different value for the slugification of the name than the actual activity slug), something interesting happens.If one tries to create an activity with a name that would generate an identical slug:
It passes the test for "Does an activity already exist that has the same name?," doesn't show an error in the popup, however, because the slug is identical to the existing activity, we instead are taken to the existing activity:
What's more, it sets fields on the activity as though it was a new activity.
Note: disabled is now true, and the name has changed...
┆Issue is synchronized with this Trello card by Unito
The text was updated successfully, but these errors were encountered: