Skip to content

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
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.

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.

@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
@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.

4 participants