Replies: 4 comments 1 reply
-
|
I'm not quite sure what this is about. The ref. code is the articles :uniqueness_of_name validation. This one breaks now with the new supplier-share feature? |
Beta Was this translation helpful? Give feedback.
-
|
@yksflip
Well, as far as I can tell, the referenced code is about this: Since we try to integrate it all in foodsoft now, where it's generally not allowed to have the same article name twice in a supplier's list, we have to make a decision:
Number 3. I've always found kind of quirky (Why should validation depend on where the article has been imported from?) If we were to choose 2., we'd have to define which units have to differ to make an article unique (There are so many fields now 😉 ) |
Beta Was this translation helpful? Give feedback.
-
|
for completeness, a probably not very attractive but simple way: I think 1. would be the easiest and closest to the previous behavior and be in favor for that way. |
Beta Was this translation helpful? Give feedback.
-
You mean like remove all validation preventing duplication? That would seem like a step back. 🤔
👍 Okay, I'll still leave this issue open for discussion, but move it to Post-Merge. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Should we still support something like https://github.com/foodcoops/foodsoft/pull/287/files#diff-24503fd25ed68e6ebceee4951bc4f9b255b197278d4aa9d86ef9d5afe3f26beaR230? (I think this might be obsolete after migrating from sharedlists)
Beta Was this translation helpful? Give feedback.
All reactions