C
C#2y ago
Eistee

❔ Handling of objects which correspond to a given rule by editing again.

The situation: The user can create objects in a list via the UI. If there are already one or more objects in this list and they have the same properties name and color, all these objects are invalid. The creation of the object should not be interrupted, there is only a warning at time of creation. I would check this logic with the warning and setting the invalidity when creating the object. The question now is, how is it design wise good to make these objects valid again by editing each one? Should this also be done only by editing the individual objects? If there is more than 1 duplicate with these two properties, only the currently edited object should be made valid again. If there is only one duplicate, the other object must also be found in the list and validated. I am having trouble implementing this logic 😓
2 Replies
Denis
Denis2y ago
Not quite sure I understand what makes an entry invalid. You can always prevent the user from entering a duplicate item. You can also add a button to validate the entire set of items, those that are valid will be marked as such. Those that are not will require the user to edit them one by one, or in bulk if that is possible
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.