-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Article versioning, extended units and alternative article sharing (#1058) #1073
base: master
Are you sure you want to change the base?
Conversation
cb74897
to
2fa467d
Compare
See https://github.com/foodcoopsat/foodsoft_hackathon for open issues
2fa467d
to
7ac72f4
Compare
Solves #422 Improve unit handling We've decided against supporting ordering partial cases, so #645 won't be solved, however if you choose a scalar unit, you can order loose quantities like 2.5 kg. Sharedlist issues which will probably be affected: Note: Implementation of #569 (Work with datafoodconsortium) could be done based on this PR. to-do: Check issue numbers below 400 |
11aedea
to
7474d83
Compare
7474d83
to
1e74ab9
Compare
@lentschi I ran into an issue with the migration I tried this on actual current 'live' data used in v4.9.1 (I can therefore not share it here but I have logging of the migration). Example: an entry with I checked a few other with this condition, where the id has been changed, but they don't seem to show this result, I didn't check all of them, though. Either way: those records seem useless as they refer to non existing articles? |
CodeI consider a complete code review to be impossible. With such a large scope, the changes would have to be divided into several functionally complete and consecutive commits that can be reviewed one after the other. Subsequent decomposition would take too much time. Synchronisation (of article lists)
Units
|
@RayOei Thanks for reviewing and trying it out with your data! |
Yes, I agree. Like I said elsewhere: The reason this PR has gone out of bounds, is that we started with an issue (article units) that was blocked by several other issues (namely article versioning and dependencies to sharedlists). So in theory it could have been done in three separate PRs, which would have been easier to review (article versioning -> sharedlists replacement -> article units) - but unfortunately it would mean a lot of effort dividing the changes into functional units. |
@RayOei And about your questions about synchronization - it tried to explain the general idea here, but maybe it wasn't very clear. Since - as was pointed out - this PR is so big, I think discussing things like this as global comments here will quickly lead to chaos, so I suggest either we need to find another way. I'll message you about it and we get back to GitHub as soon as we figured out how to best communicate here. |
See here: #1087 (comment) |
In this PR (addressing #1058) we originally wanted to extend article units only, however during development it became clear, that other parts had to be refactored/rewritten too - so it now encompasses these three major changes:
For details see the architecture notes describing the changes.