-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
The pattern shuffle feature includes synced patterns but they are inserted unsynced #62294
Comments
It's technically working as expected: shuffling among the pattern within the inserted category. As it shuffles to another pattern, the alternate pattern could be any pattern in that same category—not necessarily any other synced pattern. You're not editing the synced pattern when shuffling. |
No, I get that, but it inserts the synced pattern as an unsynced pattern. Is that correct? |
I agree with you @ndiego, it doesn't sound correct to me. Synced patterns should probably not be considered as candidates for shuffling, given it's unexpected that they'll be inserted as unsynced. If they were inserted as synced the shuffle option would disappear as synced patterns don't support it at the moment. |
Hi @talldan, do you think it would make sense to make synced patterns also support shuffling? |
This makes sense to me. |
I haven't been involved in the recent shuffling work much, so I don't know if it has been discussed before. (@scruffian might be a good person to comment). Synced patterns are all user created right now (though it could change in the future - #59272), so if the user has sensible categories it makes sense to me that they can leverage shuffle. Overrides mean that pattern content can be edited, so #62288 is still a concern for synced patterns. It would be possible to maintain the user edits when shuffling synced patterns if the new pattern is compatible, but I imagine it'd result in very few matching patterns. Or you could very easily check for edits (the pattern ( |
Description
If you have created a synced pattern and placed it in an existing pattern category, when you insert another unsynced pattern from that category and use the new shuffle feature, the synced pattern is included in the shuffle. However, the inserted synced pattern is no longer synced.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
shuffle-bug-synced-pattern.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: