-
Notifications
You must be signed in to change notification settings - Fork 801
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
Social: Refactor feature option storing #34113
Merged
Merged
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f37dd1a
Add the new settings object + tests
gmjuhasz d00d07e
Update initial states + previous usages
gmjuhasz 012eb2c
Update UI + store functions
gmjuhasz b36d720
changelog
gmjuhasz 5896416
Fix versions
gmjuhasz b6952a2
Add control for fetching both options together
gmjuhasz b5de327
Social: Remove deprecated feature files (#34114)
gmjuhasz 2b51295
Social: Refresh store on Publicize module toggle via 1 call (#34142)
gmjuhasz 8fbd642
Merge branch 'trunk' into refactor/social-register-feature-settings
gmjuhasz aa4ee16
Rename structure
gmjuhasz 659e0a1
Merge branch 'trunk' into refactor/social-register-feature-settings
gmjuhasz 77e27ee
Fixup versions
gmjuhasz e809f08
Fix template issue, and make sure it's migrated
gmjuhasz b9ac65c
Merge branch 'trunk' into refactor/social-register-feature-settings
gmjuhasz 9c0234d
Merge branch 'trunk' into refactor/social-register-feature-settings
gmjuhasz 6bec608
fix tests
gmjuhasz d4b52c6
Test fix
gmjuhasz 484f96f
Merge branch 'trunk' into refactor/social-register-feature-settings
gmjuhasz 0ba898a
Fix auto-conversion migration logic + add test
gmjuhasz f91feb3
Add auto-conversion sync option
gmjuhasz a89e7b5
changelog
gmjuhasz d7949bf
Merge branch 'trunk' into refactor/social-register-feature-settings
gmjuhasz b7c2568
Merge branch 'trunk' into refactor/social-register-feature-settings
gmjuhasz 9b6020a
Merge branch 'trunk' into refactor/social-register-feature-settings
gmjuhasz c169499
Update versions
gmjuhasz df78925
Fix versions
gmjuhasz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...ects/js-packages/publicize-components/changelog/refactor-social-register-feature-settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: major | ||
Type: changed | ||
|
||
Social: Refactored storing of feature options to use core functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/js-packages/publicize-components/src/social-store/selectors/auto-conversion-settings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
projects/packages/publicize/changelog/refactor-social-register-feature-settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: major | ||
Type: changed | ||
|
||
Social: Refactored storing of feature options to use core functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need multiple API calls? Can we make a single API call to get all the settings at once?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add the settings fields separated by comma
/wp/v2/settings?_fields=jetpack_social_image_generator_settings,jetpack_social_autoconvert_images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, to fetch the settings we can just have one call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'll do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This turned out to be a bigger change as I had to remove the old refreshes introduced in #33969, so I added the store functions in b6952a2 and created another PR on this branch for the others #34142