-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#11085] Instructor edit questions: tweak option order for generating answers from teams #11092
[#11085] Instructor edit questions: tweak option order for generating answers from teams #11092
Conversation
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.
Changes look good to me! However please remove changes made in .vscode/settings.json
, angular.json
and the alarmingly large package-lock,.json
Do remove file |
Alright! I made the changes. I'll keep this in mind for the next PR. Regarding the package-lock.json and angular.json, what do you guys normally do to avoid big changes added to those files due to npm install? |
@tlhuynh Before you commit, you should check your Of course, the cause of the additional line in |
.gitignore
Outdated
@@ -1,4 +1,5 @@ | |||
.DS_Store | |||
.vscode/ |
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.
Not sure if we should explicitly add this here.. Ideally, every dev should kind of add it anyways.
@rrtheonlyone should we add vsc gitignore in this PR? I see that IDEA is added but not vsc.
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 think for now, you could try to add this line to your own global .gitignore
first instead of project local.
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.
Got it. I will get to it now.
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.
Maybe you should reorder the options further:
student -> student exclude self
team -> team exclude self
own team exclude self -> own team (reversed?)
...onents/question-types/question-edit-details-form/mcq-question-edit-details-form.component.ts
Outdated
Show resolved
Hide resolved
...onents/question-types/question-edit-details-form/mcq-question-edit-details-form.component.ts
Outdated
Show resolved
Hide resolved
...onents/question-types/question-edit-details-form/msq-question-edit-details-form.component.ts
Outdated
Show resolved
Hide resolved
...onents/question-types/question-edit-details-form/msq-question-edit-details-form.component.ts
Outdated
Show resolved
Hide resolved
@moziliar I see I see. Thank you so much. I'll make sure to pay attention to this more from now on. |
One thing to note is that for UI changes, it is best to attach screenshot of all the affected components. |
Do you mean for the PR description? Like screenshots for how it was before and how it looks after the changes? I thought about it but wasn't sure if it was necessary. Will do, if I work with UIs again. |
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.
LGTM. @damithc do you want to vet the ordering of the options too?
Yes please. Let me know when a screenshot has been posted. |
@tlhuynh typically, a screenshot is needed for UI related changes. Do attach screenshots for both dropdown (I see two are changed and only these two are needed) |
@tlhuynh I didn't imply grouping by the way; instead, I was just pointing out that the |
@moziliar |
@damithc |
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.
lgtm
Fixes #11085
Outline of Solution
The goal is to reorder the list from "Or, generate options for the list of all" checkbox for the multiple-choice type questions.
The fix was to reorder the strings inside PARTICIPANT_TYPES to match with the expected order.
The files edited were:
src/web/app/components/question-types/question-edit-details-form/mcq-question-edit-details-form.component.ts
src/web/app/components/question-types/question-edit-details-form/msq-question-edit-details-form.component.ts