Fix #2797 incorrect order of options in the Exercise > Edit Details page > Assessment options#4039
Conversation
Add new Makefile target for post-deploy migration flows
|
Hi @Pursottam6003, Thanks for your contribution! I have manually checked the changes and it seems that they have fixed the order, Just wanted to have a thought on what if we change the order from ascending to descending. Does it make sense to change the order to descending in accordance with 100% correct criteria first in the UI? cc @MisRob |
@ozer550 This would be best to discuss with @jtamiace first. I'd suggest doing that separately from this pull request as it solves the issue reported. |
Hii @ozer550 I have worked on the issue based on the expected outcome. Let's see wheather the reviewer is agree to merge or it needs certain changes |
|
I am not convinced on whether either an ascending or descending order of those options would make an impactful difference to the end user, and also not aware of any feedback to motivate making a change, so I would suggest leaving it as-is for now. Some ideas that can help inform a decision in the future: Another data-informed way to decide on the order of items here could be seeing how often each of these options are used and ordering by most frequent to least - which would be a helpful data point if it's possible to calculate that, although I'm not sure if we have the means to currently. |
|
Thank you @jtamiace. @Pursottam6003 No, you don't need to make any changes. Even though it's related, it's somewhat separate from the original issue you're solving here (+ @jtamiace suggests leaving the order as is for now) |
rtibbles
left a comment
There was a problem hiding this comment.
Sorry, I missed this PR previously. This is the correct change that we want, but these files are automatically generated during the build process, so changing the committed files here will not cause a difference in production.
You will need to update the ordering by modifying this Python script that generates this file: https://github.com/learningequality/studio/blob/unstable/deploy/generatejsconstantfiles.py#L180
Just changing the sorting of that specific list comprehension should be sufficient to retain the ordering here.
@rtibbles as per my understanding I ran |
|
Hi @Pursottam6003, Running that Python script is not included when running The exercises object is from le-utils, a library mostly used for shared constants for content. The |
Hii @rtibbles I have updated the |
rtibbles
left a comment
There was a problem hiding this comment.
Ran the command locally, and the new ordering persisted, great work!
Summary
From issue #2797
Description of the change(s) you made
Made Changes in the ordering of dropdown elements in
contentcuration/contentcuration/frontend/shared/leUtils/MasteryModels.jsScreenshots (if applicable)
Before applying changes
After applying changes
Does this introduce any tech-debt items?
No
Reviewer guidance
How can a reviewer test these changes?
Screencast.from.26-04-23.04.51.13.PM.IST.webm
References
Comments
I have made minor changes kindly let me know if it needs futhur changes
Contributor's Checklist
PR process:
CHANGELOGlabel been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocslabel has been added if this introduces a change that needs to be updated in the user docs?requirements.txtfiles also included in this PRStudio-specifc:
notranslateclass been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. icons, user-generated text)pages,components, andlayoutsdirectories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarnandpip)