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

[#11911] Instructor copying course: Progress bar does not load when no feedback sessions are copied #11914

Merged

Conversation

domlimm
Copy link
Contributor

@domlimm domlimm commented Jul 26, 2022

Fixes #11911.

Outline of Solution

Previously, when an instructor creates a course by copying another course without any feedback session selected, user gets stuck on the copying and no progress is shown on the progress bar.

The fix is to check if there is any feedback session to copy, else we just need to resolve the Promise and this would update the progress bar as well.

Additionally, shifted out the ProgressBarService update lines as there are code duplications in the above fix and the current implementation (5e50c39).

demo.mp4

@domlimm domlimm force-pushed the 11911-fix-bug-with-progress-bar branch from 3e7b9ad to 2031462 Compare July 27, 2022 13:54
Copy link
Contributor

@FergusMok FergusMok left a comment

Choose a reason for hiding this comment

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

Thank you for responding so quickly to the issue! Could you also add a video of the fix to your description? Here's also some small suggestions

@domlimm
Copy link
Contributor Author

domlimm commented Jul 29, 2022

Hello @FergusMok! Thanks so much for reviewing this PR! I have added replies to your comments, and will wait for your reply before pushing out the changes.

As for the video, may I ask if there is an example of how the video should be filmed? Is it just how it looks like after fixing or there has to be some explanation/demo?

Thank you again! 😃

@FergusMok
Copy link
Contributor

FergusMok commented Jul 29, 2022

@domlimm There's no particular format for the video, it's purpose is just for other reviewers / people referencing this PR again in the future to able to quickly understand/visualize what you're trying to accomplish in the PR. It's usually for frontend-related PRs. An example would be #11881!

- Update empty copy feedback session list to check against 0 instead of lesser than 1
- Remove progress bar handler
@domlimm
Copy link
Contributor Author

domlimm commented Jul 29, 2022

@FergusMok I see! I understand. Have updated based on your suggestions and made the necessary changes for your review please. Thank you again!

@FergusMok FergusMok added the s.ToReview The PR is waiting for review(s) label Jul 30, 2022
Copy link
Contributor

@FergusMok FergusMok left a comment

Choose a reason for hiding this comment

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

@domlimm LGTM! Thanks for fixing this issue! :)

@FergusMok FergusMok added s.FinalReview The PR is ready for final review and removed s.ToReview The PR is waiting for review(s) labels Jul 30, 2022
@samuelfangjw samuelfangjw self-requested a review July 30, 2022 04:00
@samuelfangjw samuelfangjw added s.ToMerge The PR is approved by all reviewers including final reviewer; ready for merging c.Bug Bug/defect report and removed s.FinalReview The PR is ready for final review labels Jul 30, 2022
@samuelfangjw samuelfangjw changed the title [#11911] Fix bug with progress bar [#11911] Instructor copying course: Progress bar does not load when no feedback sessions are copied Jul 30, 2022
@samuelfangjw samuelfangjw merged commit 0f57875 into TEAMMATES:master Jul 30, 2022
@wkurniawan07 wkurniawan07 added this to the V8.19.0 milestone Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c.Bug Bug/defect report s.ToMerge The PR is approved by all reviewers including final reviewer; ready for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instructor copying course: Progress bar does not load when no feedback sessions are copied
4 participants