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

License Activation Notice: fix issue in license activation notice that appears even after being dismissed #25269

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

yashwin
Copy link
Contributor

@yashwin yashwin commented Jul 26, 2022

Fixes 1202619025189113-as-1202655518335358

Changes proposed in this Pull Request:

It fixes an issue in the user license activation notice banner that appears even after being dismissed.

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results and verified that your changes do not break them?

Does this pull request change what data or activity we track or use?

No

Testing instructions:

  1. Set up a new test site using JN with this branch.
  2. Visit the newly created site -> Click on Jetpack nav item -> Activate Jetpack.
  3. Go to https://jetpack.com/ and buy any product and skip the site selection.
  4. Now, go to your site -> Jetpack(refresh if you are on the same page), and you should see the activation notice with the message Activate <PRODUCT_NAME> ...
  5. Now dismiss the notice by clicking on the X icon on the notice and verify that the notice doesn't appear again

Example notice

Screenshot 2022-07-26 at 5 18 54 PM

NOTE: This issue is caused by merging Show product name on activation notice The expected behavior is to hide the notice banner when a user activates a license until a new license is issued; check Display notice when a user has unactivated product license keys for more details.

@yashwin yashwin added this to the jetpack/11.2 milestone Jul 26, 2022
@yashwin yashwin self-assigned this Jul 26, 2022
@coder-karen
Copy link
Contributor

@yashwin I'll be cutting the Beta for Jetpack 11.2 in half an hour - is the intention to have this in the Jetpack 11.2 release?

@yashwin yashwin requested review from a team July 26, 2022 12:08
@yashwin yashwin marked this pull request as ready for review July 26, 2022 12:09
@yashwin
Copy link
Contributor Author

yashwin commented Jul 26, 2022

@yashwin I'll be cutting the Beta for Jetpack 11.2 in half an hour - is the intention to have this in the Jetpack 11.2 release?

@coder-karen Not really, I would like to release this as early as possible. I have removed the milestone for now.

@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress Admin Page React-powered dashboard under the Jetpack menu labels Jul 26, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 26, 2022

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.


Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.


Jetpack plugin:

  • Next scheduled release: September 6, 2022.
  • Scheduled code freeze: August 30, 2022.

@yashwin yashwin removed this from the jetpack/11.2 milestone Jul 26, 2022
@yashwin yashwin force-pushed the fix/dismiss-license-activation-notice branch from 795589b to 6d09bb6 Compare July 26, 2022 12:56
rcanepa
rcanepa previously approved these changes Jul 26, 2022
Copy link
Contributor

@rcanepa rcanepa left a comment

Choose a reason for hiding this comment

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

LGTM.

Everything worked as expected, and I couldn't find any regression.

@yashwin yashwin force-pushed the fix/dismiss-license-activation-notice branch from 6d09bb6 to 409f803 Compare July 27, 2022 04:28
@yashwin yashwin force-pushed the fix/dismiss-license-activation-notice branch from 409f803 to 206b598 Compare July 27, 2022 04:29
@yashwin yashwin requested a review from rcanepa July 27, 2022 04:30
@coder-karen coder-karen added this to the jetpack/11.3 milestone Jul 27, 2022
Copy link
Contributor

@rcanepa rcanepa left a comment

Choose a reason for hiding this comment

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

LGTM again since nothing changed in terms of logic.

@yashwin yashwin added [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. and removed [Status] In Progress [Status] Needs Team Review labels Jul 27, 2022
Copy link
Contributor

@sdixon194 sdixon194 left a comment

Choose a reason for hiding this comment

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

👍

@sdixon194 sdixon194 added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. labels Jul 27, 2022
@yashwin
Copy link
Contributor Author

yashwin commented Aug 16, 2022

@sdixon194 - Is it ok if I go ahead and merge this?

@sdixon194
Copy link
Contributor

Is it ok if I go ahead and merge this?

Oh yeah! Anytime it has the Ready to Merge label and the approval, you can merge whenever you're ready!

The PR was out of date now, so I just merged with trunk. Assuming all the CI checks pass you can merge when it's done 👍

@yashwin yashwin merged commit 54504c1 into trunk Aug 17, 2022
@yashwin yashwin deleted the fix/dismiss-license-activation-notice branch August 17, 2022 04:15
@github-actions github-actions bot removed the [Status] Ready to Merge Go ahead, you can push that green button! label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Page React-powered dashboard under the Jetpack menu [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants