Updates to completion duration for references#3705
Conversation
…tion, available on video, audio, and documents
…w include reference
|
Everything is working as described - the one slight issue I saw is that for Videos and Audio when you set Reference, then set it back to Time to Complete, then it does not revert back to the default Duration value that it first has, instead duration is blank: Screencast.from.09-30-2022.09.16.44.AM.webm.mp4 |
rtibbles
left a comment
There was a problem hiding this comment.
Need to revert a string change, and fix the default value for audio and video after clearing Reference.
| exactTime: 'Time to complete', | ||
| reference: 'Reference material', | ||
| /* eslint-enable */ | ||
| exactTime: 'Exact time to complete', |
There was a problem hiding this comment.
This was a deliberate string update in #3686 this should be reverted.
…tionAndDuration setter that caused problems when switching from reference to other options
rtibbles
left a comment
There was a problem hiding this comment.
Default restoring now works, and previously set durations are also persisted and not overwritten by the default. Perfect.
|
@marcellamaki for some reason I'm not seeing the Completion drop-down at all at https://hotfixes.studio.learningequality.org/: |
|
Thanks for letting me know @pcenov. Do you recall what kind of resource it was that you were testing here? (i.e. document, video, etc.). |
|
Hi @marcellamaki strangely enough it's missing for all resource types. |
|
Well, that is very strange! I will take a look and try to replicate. Will let you know if I make any updates @pcenov |
|
I was granted Admin rights to one of my users and I can see the Completion drop-down with that user. However I still can't see it with the other one - could the difference of permissions be playing a role here, somehow...? |
|
Oh, this is definitely possible! Thank you for noticing that @pcenov. I do not think I would have noticed this myself!! I will dig into this a bit more and update the code accordingly :) |
|
@pcenov - I think I have identified the problem. Just going to check with Richard if my solution is in line with the UX that we want, and then I'll work on getting a PR for these changes in. Thanks again for identifying the permissions problem - it really helped me figure out what was going on! |

Summary
Description of the change(s) you made
As decided in Slack, "Reference" should be moved to the "Completion" dropdown, rather than the duration dropdown. Now, reference is an option for audio, video, and documentation resources. This moves that and makes some small edits to ensure everything works smoothly, and updates gherkin scenarios.
Fixes #3673
Fixes #3659 (mostly because this UI no longer exists as a result of these changes)
Manual verification steps performed
Screenshots (if applicable)
Reviewer guidance
How can a reviewer test these changes?
See steps above
Are there any risky areas that deserve extra testing?
Comments
Is this right?? And, do the changes to the gherkins (and tests) accurate reflect the changes made?
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)