Skip to content
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

Make sure nestedJobWhiteboard is processed in order #973

Merged

Conversation

roulaoregan-spi
Copy link
Contributor

Summarize your change.
There was a problem where depending on the order of the hashmap
insertion, nested folders would not show up in the GUI. The issue
was caused by using childrenMap.entrySet which doesn't concern
about order.

To solve this issue the map values were encapsulated in a object
that implements the right sorting based on level, making sure
children paths are processed before their parents.

@roulaoregan-spi
Copy link
Contributor Author

@bcipriano - just pinging this for a review

Copy link
Collaborator

@bcipriano bcipriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good, a couple of minor style comments.

There was a problem where depending on the order of the hashmap
insertion, nested folders would not show up in the GUI. The issue
was caused by using childrenMap.entrySet which doesn't concern
about order.

To solve this issue the map values were encapsulated in a object
that implements the right sorting based on level, making sure
children paths are processed before their parents.
@roulaoregan-spi
Copy link
Contributor Author

@bcipriano - I removed the wildcard from the imports and the debugging.

@bcipriano bcipriano merged commit 053f479 into AcademySoftwareFoundation:master Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants