-
Notifications
You must be signed in to change notification settings - Fork 63
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
Do not reset the ORDERLABEL if division is a page #6238
Conversation
3c011d4
to
7ece32b
Compare
Although i did not yet notice any problems when not resetting the ORDERLABEL for pages (as done in this PR), we can also extend the original logic. The root cause of the linked issue is, that the necessary logic for setting the LABEL and ORDERLABEL (which are set to NULL in the beginning) is not called for hidden metatdata. Lines 681 to 683 in eded39f
To solve the issue at hand we could for hiddenMetadata call the setters directly to not lose the ORDERLABELs and therefor our pagination. We would by this also preserve hidden division LABEL's, which might be lost.
A more general remark: The necessary setters for the divisions of (non-hidden) metadata elements in the UI are called as a side effect of the (IMHO very complicated) BiConsumer logic, which does some transformations to the values from the tree, but mainly defines the setters for different division values, which are then applied. There may be a specific reason for using functional interfaces here, but I wonder if there might be opportunities to simplify the logic for better readability and maintainability. |
@BartChris Please rebase against current master to avoid failing builds caused by broken Selenium tests! |
7ece32b
to
d155ee6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can not review this small change as I do not know how to archive the suggested change. As test code is not changed is showing me that there is not test code or tests are not affected by this change.
Since #6244 is merged, this is not needed any more. |
fixes #5220
alternative: #6244
We should not reset the ORDERLABEL of a page during metadata preservation since this breaks the pagination when the ORDERLABEL is set to excluded.
While this fixes the pagination issue there are other potential problems. I did an alternative pull request which tries to adress them all:
#6244