B2025-018 PROMS - Issues with folder order in tree view. #526
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "B2025-018"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
B2025-018 PROMS - Issues with folder order in tree view.
Note this was found in Michelle’s ACME db when she attempted to move the folder “” to 2nd from the top, it appeared to revert position when closing and re-opening PROMS. After research, it was determined that this was due to a data issue. However, we should make some changes to try to prevent this data issue from occurring in the future.
Description of Data issue: The table Folders (in SQL) has a column called ManualOrder. When multiple items have the same ManualOrder, PROMS has no way to know the order / insert an item in between 2 items with the same “position” so when reading from the db it just picks one to be first / etc… Also, when a folder (other than the root - VEPROMS) has a ManualOrder of null, it results in inaccurate / inconsistent sorting.
Summary of Changes: Changes will include:
• Attempt to avoid inserting a Folder with a ManualOrder of null – if one would be inserted, insert it at the end.
• If a folder is the be created (or moved) to a location, store a ManualOrder that is halfway between the item above it and the next highest ManualOrder (with that same parent item)
changes look good
Tested with version 2.2.2502.2116. Works as expected.