Skip to content

Conversation

@dyudyunov
Copy link
Contributor

Fix the first section celebration modal showing logic.

On Nutmeg+ it's shown only after the page reload or after going directly
to the second section from the course home. Going through the course
with the Next/Previous buttons has no effect (which worked on Maple).

Notes:

  • the weekly goal has the same showing logic, but I assume that is
    correct behavior so no changes are added for it in this commit.
  • showing a celebration modal for the first section completion when
    going directly to the first unit of the second section seems to be a bug
    (reproduces on Maple too)

@openedx-webhooks
Copy link

Thanks for the pull request, @dyudyunov! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Sep 14, 2022
@natabene
Copy link

@dyudyunov Thank you for the contribution, looks like this is ready for our review.

@dyudyunov
Copy link
Contributor Author

@dyudyunov Thank you for the contribution, looks like this is ready for our review.

hi @natabene
yes, it's ready

@codecov
Copy link

codecov bot commented Sep 19, 2022

Codecov Report

Base: 86.83% // Head: 86.93% // Increases project coverage by +0.10% 🎉

Coverage data is based on head (517f535) compared to base (894e16d).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #976      +/-   ##
==========================================
+ Coverage   86.83%   86.93%   +0.10%     
==========================================
  Files         252      252              
  Lines        4329     4333       +4     
  Branches     1096     1096              
==========================================
+ Hits         3759     3767       +8     
+ Misses        551      547       -4     
  Partials       19       19              
Impacted Files Coverage Δ
src/courseware/course/Course.jsx 88.88% <100.00%> (+0.65%) ⬆️
...courseware/course/celebration/CelebrationModal.jsx 100.00% <100.00%> (ø)
src/courseware/course/celebration/utils.jsx 92.30% <100.00%> (+16.30%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@muselesscreator muselesscreator left a comment

Choose a reason for hiding this comment

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

Please add tests for the new behaviors

@itsjeyd itsjeyd added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Dec 15, 2022
@itsjeyd
Copy link

itsjeyd commented Dec 15, 2022

Hey @dyudyunov, just a quick update that I'm labeling this as waiting-for-author for now.

Let us know when you're done adding tests and the changes are ready for review again.

@dyudyunov dyudyunov force-pushed the fix-first-section-celebration branch from 653c8e7 to 99a30f5 Compare December 19, 2022 12:52
@openedx-webhooks openedx-webhooks removed the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Dec 19, 2022
@dyudyunov
Copy link
Contributor Author

hi @itsjeyd @muselesscreator

please, run checkers and review

@itsjeyd itsjeyd added needs test run Author's first PR to this repository, awaiting test authorization from Axim and removed needs test run Author's first PR to this repository, awaiting test authorization from Axim labels Dec 21, 2022
@itsjeyd
Copy link

itsjeyd commented Dec 22, 2022

Thanks @dyudyunov!

@muselesscreator Looks like we're good to go here, please have another look.

@dyudyunov dyudyunov force-pushed the fix-first-section-celebration branch from 99a30f5 to bc8713a Compare December 27, 2022 09:43
@dyudyunov
Copy link
Contributor Author

rebased on the top of master branch

@itsjeyd itsjeyd added the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Jan 6, 2023
@jmakowski1123 jmakowski1123 added the product review PR requires product review before merging label Jan 10, 2023
@mphilbrick211 mphilbrick211 removed the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Jan 11, 2023
@mphilbrick211
Copy link

@itsjeyd FYI, I removed the "needs test run" label as tCRIL enabled them.

@itsjeyd
Copy link

itsjeyd commented Jan 11, 2023

Thanks @mphilbrick211.

Moved to Needs Product Review on the board as that seems to be the immediate next step here. CC @jmakowski1123

@dyudyunov Looks like there's a small linting issue. If you want to fix that in the meantime, great :) But no rush.

@dyudyunov dyudyunov force-pushed the fix-first-section-celebration branch from bc8713a to 51c8f0c Compare January 11, 2023 10:29
@dyudyunov
Copy link
Contributor Author

Thanks @mphilbrick211.

Moved to Needs Product Review on the board as that seems to be the immediate next step here. CC @jmakowski1123

@dyudyunov Looks like there's a small linting issue. If you want to fix that in the meantime, great :) But no rush.

pushed the fix for the lint issue, please, restart the checkers

@mphilbrick211 mphilbrick211 added the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Jan 11, 2023
@mphilbrick211
Copy link

@itsjeyd - flagging this for tCRIL to enable tests!

@ProductRyan ProductRyan self-assigned this Jan 12, 2023
@ProductRyan
Copy link

@dyudyunov - can you describe what your fix is? where does your code show the celebration?

@dyudyunov
Copy link
Contributor Author

@dyudyunov - can you describe what your fix is? where does your code show the celebration?

hi @ProductRyan
This fix doesn't change the place where the 1st section celebration is shown but when.
The problem itself:

  • starting from Nutmeg release the 1st section celebration (after the actual completion of the first section) is shown after
    • the page reload
    • or going directly from the course home to the second section

Expected result (as it was on the Maple release):

  • user can see the 1st section celebration popup after clicking the "Next" button
    image

@dyudyunov
Copy link
Contributor Author

created a backport to olive: #1044

@itsjeyd
Copy link

itsjeyd commented Jan 17, 2023

@ProductRyan Thanks for getting product review started here!

For reference, here is a list of related PRs:

I've put these in Needs Product Review on the contributions board for now; happy to update to In Product Review if you think that's more appropriate.

CC @jmakowski1123

@jmakowski1123
Copy link

Going forward, this is the master ticket under product review.
Related PRs are:

Removing Product Review label from 977 and 1044.

@ProductRyan
Copy link

ProductRyan commented Feb 2, 2023

This makes sense - approved. @itsjeyd can you move it, and it's related back ports along?

@itsjeyd itsjeyd added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed needs test run Author's first PR to this repository, awaiting test authorization from Axim labels Feb 3, 2023
@itsjeyd
Copy link

itsjeyd commented Feb 3, 2023

@ProductRyan Sure, done! Thanks for the ping.

@muselesscreator A heads-up that this PR, as well as Nutmeg (#977) and Olive (#1044) backports, should be ready for a final round of engineering review shortly.

@dyudyunov Please resolve merge conflicts. We'll enable tests again once that's done (CC @e0d).

Fix the first section celebration modal showing logic.

On Nutmeg+ it's shown only after the page reload or after going directly
to the second section from the course home. Going through the course
with the Next/Previous buttons has no effect (which worked on Maple).

Notes:
- the weekly goal has the same showing logic, but I assume that is
correct behavior so no changes are added for it in this commit.
- showing a celebration modal for the first section completion when
going directly to the first unit of the second section seems to be a bug
(reproduces on Maple too)
@dyudyunov dyudyunov force-pushed the fix-first-section-celebration branch from 51c8f0c to 517f535 Compare February 6, 2023 10:24
@dyudyunov
Copy link
Contributor Author

@itsjeyd

@dyudyunov Please resolve merge conflicts. We'll enable tests again once that's done (CC @e0d).

done

@itsjeyd
Copy link

itsjeyd commented Feb 8, 2023

Thanks @dyudyunov!

@e0d This is ready for another round of test runs.

@itsjeyd itsjeyd added needs test run Author's first PR to this repository, awaiting test authorization from Axim and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Feb 8, 2023
@e0d
Copy link

e0d commented Feb 14, 2023

@itsjeyd tests running.

Copy link
Contributor

@leangseu-edx leangseu-edx left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@leangseu-edx leangseu-edx merged commit cd430eb into openedx:master Feb 14, 2023
@openedx-webhooks
Copy link

@dyudyunov 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@dyudyunov dyudyunov deleted the fix-first-section-celebration branch February 15, 2023 08:30
@e0d e0d removed the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U product review PR requires product review before merging

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

10 participants