Solution Explorer provides the front door into the Integreatly initiative. It hosts the various Solution Patterns, as well as providing a dashboard of installed applications/products/services.
Apache License 2.0
36
stars
54
forks
source link
INTLY-5251: Order of Solution Patterns keeps changing #553
The order of solution patterns seems to change, and/or is not consistent with the order that is desired.
Why
When we added the sort by % complete, the sort order by 'id' was removed. When we removed the sort by % complete, we did not add a new sort back. So there was no sort at all, which could lead to inconsistent display of the solution patterns.
How
Added a sort by ID as it was originally - keep in mind that 'ID' as it stands now means the name of the directory in which the walkthrough resides. It sort by this name, alphabetically, and then by walkthrough name, alphabetically. So if you name your prepend the names of your directories 1, 2, 3, etc you can force a repeatable order.
Verification Steps
Go to the 'All Solution Patterns' tab and verify that the order of the SPs are in the same alphabetical order as the directories in which they are contained. Also, add your own test walkthrough repo using the Settings > Git URLs for subscribed content and verify that the SPs appear in the desired order.
Checklist:
[x] Code has been tested locally by PR requester
[ ] Changes have been successfully verified by another team member
Motivation
https://issues.redhat.com/browse/INTLY-5251
What
The order of solution patterns seems to change, and/or is not consistent with the order that is desired.
Why
When we added the sort by % complete, the sort order by 'id' was removed. When we removed the sort by % complete, we did not add a new sort back. So there was no sort at all, which could lead to inconsistent display of the solution patterns.
How
Added a sort by ID as it was originally - keep in mind that 'ID' as it stands now means the name of the directory in which the walkthrough resides. It sort by this name, alphabetically, and then by walkthrough name, alphabetically. So if you name your prepend the names of your directories 1, 2, 3, etc you can force a repeatable order.
Verification Steps
Go to the 'All Solution Patterns' tab and verify that the order of the SPs are in the same alphabetical order as the directories in which they are contained. Also, add your own test walkthrough repo using the Settings > Git URLs for subscribed content and verify that the SPs appear in the desired order.
Checklist:
Progress
Additional Notes
You can use my cluster to test if you want: https://tutorial-web-app-webapp.apps.uxddev-90fa.open.redhat.com/
Or point to my solution explore image on your own cluster: docker.io/mfrances17/dev-tutorial-web-app:latest
Screen caps: Red Hat default walkthrough dir names:
Red Hat default walkthrough display order:
Tiffany's walkthrough repo dir names:
Tiffany's walkthrough display order: