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

Revise migration pointer un-dismissal to work for all admins #917

Merged

Conversation

mukeshpanchal27
Copy link
Member

@mukeshpanchal27 mukeshpanchal27 commented Dec 22, 2023

Summary

Follow-up to #915 (comment)

Scenario that resolved by this PR:

If we implement suggested changes. The behaviour with the migration pointer is as follows:

  • Upon plugin release, the migration pointer becomes visible on the site.
  • When the non-technical team logs in, they see the migration pointer.
  • If they dismiss the pointer, it won't appear for them again.
  • However, the technical team, when logging in, never encounters this migration pointer.

That wouldn't be the case, maybe there was a misunderstanding or I didn't explain it well. The pointer wouldn't be dismissed for every user, it would only be "un-dismissed" for every user.

In other words:

  • User A dismisses the pointer.
  • User B still sees the pointer.
  • User B performs the migration.
  • Later, user B for some reason deactivates a standalone plugin and reactivates the corresponding module again.
  • Now there's the difference:
    • Based on the current PR code, only user B would see the pointer again, but the problem applies to the entire site, so I think user A should see the pointer again as well.
    • In my proposal, both user B and user A would see the pointer again as a result of the change from user B, so user A would be aware of the problem and then could fix it (e.g. if user B goes on holidays).

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

@mukeshpanchal27 mukeshpanchal27 added [Type] Enhancement A suggestion for improvement of an existing feature no milestone PRs that do not have a defined milestone for release Creating standalone plugins labels Dec 22, 2023
@mukeshpanchal27 mukeshpanchal27 self-assigned this Dec 22, 2023
@mukeshpanchal27 mukeshpanchal27 marked this pull request as ready for review December 22, 2023 05:25
load.php Outdated Show resolved Hide resolved
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

@mukeshpanchal27 Mostly looks great! A few points of feedback, most importantly regarding the query approach.

load.php Outdated Show resolved Hide resolved
load.php Outdated Show resolved Hide resolved
load.php Outdated Show resolved Hide resolved
load.php Outdated Show resolved Hide resolved
load.php Outdated Show resolved Hide resolved
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

@mukeshpanchal27 The approach looks good to me now, there are only a few last quirks to iron out.

load.php Outdated Show resolved Hide resolved
load.php Outdated Show resolved Hide resolved
load.php Outdated Show resolved Hide resolved
mukeshpanchal27 and others added 2 commits January 4, 2024 09:38
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
@mukeshpanchal27
Copy link
Member Author

@swissspidy @felixarntz PR is ready for review.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Thanks @mukeshpanchal27, looks great!

@felixarntz
Copy link
Member

@swissspidy Could you give this another look when you get a chance?

@swissspidy swissspidy merged commit 8e377d5 into feature/creating-standalone-plugins Jan 4, 2024
7 checks passed
@swissspidy swissspidy deleted the fix/revise-migration-pointer branch January 4, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no milestone PRs that do not have a defined milestone for release [Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants