-
Notifications
You must be signed in to change notification settings - Fork 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
Framework: Redux single data tree and query components #5046
Comments
what about |
Yes, that's probably the best candidate so far, though a bit long. |
Previously, the importer subsystem was using actions to dispatch changes and these actions were all defined inside of `client/lib/importer` As part of #5046 (conversion to a single global Redux tree), this commit defines new action types inside of `client/state/action-types.js` and converts the importer to use these globally-defined actions instead of the locally-defined actions. There are no visual or functional changes and this code should behave exactly the same as before.
Previously, the importer subsystem was using actions to dispatch changes and these actions were all defined inside of `client/lib/importer` As part of #5046 (conversion to a single global Redux tree), this commit defines new action types inside of `client/state/action-types.js` and converts the importer to use these globally-defined actions instead of the locally-defined actions. There are no visual or functional changes and this code should behave exactly the same as before.
Previously, the importer subsystem was using actions to dispatch changes and these actions were all defined inside of `client/lib/importer` As part of #5046 (conversion to a single global Redux tree), this commit defines new action types inside of `client/state/action-types.js` and converts the importer to use these globally-defined actions instead of the locally-defined actions. There are no visual or functional changes and this code should behave exactly the same as before.
Previously, the importer subsystem was using actions to dispatch changes and these actions were all defined inside of `client/lib/importer` As part of #5046 (conversion to a single global Redux tree), this commit defines new action types inside of `client/state/action-types.js` and converts the importer to use these globally-defined actions instead of the locally-defined actions. There are no visual or functional changes and this code should behave exactly the same as before.
* Resolves #5299 Previously, the importer subsystem was using actions to dispatch changes and these actions were all defined inside of `client/lib/importer` As part of #5046 (conversion to a single global Redux tree), this commit defines new action types inside of `client/state/action-types.js` and converts the importer to use these globally-defined actions instead of the locally-defined actions. There are no visual or functional changes and this code should behave exactly the same as before.
* Resolves #5299 Previously, the importer subsystem was using actions to dispatch changes and these actions were all defined inside of `client/lib/importer` As part of #5046 (conversion to a single global Redux tree), this commit defines new action types inside of `client/state/action-types.js` and converts the importer to use these globally-defined actions instead of the locally-defined actions. There are no visual or functional changes and this code should behave exactly the same as before.
@mtias Added |
I added |
@mtias : thanks for the thorough list of action items in moving everything to the redux state tree. I'm trying to get a handle on all the current outstanding or in-progress issues, and make sure we have an accurate list of the remaining tasks to get to the end goal. There are a lot of issues logged (unfortunately lots of them are old or stale). I've created a project to consolidate all the different work happening here: https://github.com/Automattic/wp-calypso/projects/45 I'll be taking a look at the remaining action items here, and likely will split them out into their own issues so they're easier to track in the project. And I'm guessing their are action items here that are either already complete or have a duplicate issues. Let me know if you have any concerns or comments. |
Closing this one as we're tracking work via the project instead of this PR. |
To make further progress in offline support it's imperative we consolidate our historical data approaches under the same redux state tree. Read Our Approach to Data.
Action items
In general we need to move data from Flux stores and older -list type structures into the single redux state tree. That means porting over the actions and selectors as well as creating relevant query-components.
store
module dependency.Query
components to a folder at the root of client.Sites
QuerySites
. Framework: add QuerySites component #5066QuerySiteDomains
Redux: add query-site-domains data component #4972sitesList.fetch()
instances.sitesList.getSelectedSite()
togetSelectedSite( state )
. Framework: remove sitesList.getSelectedSite() usages #8726site.fetchSettings
andsite.saveSettings
with corresponding Redux Actions / Selectors / Reducer andQuerySiteSettings
Component. Site Settings: Reduxify the site settings endpoints #9056Jetpack Sites
QueryUpdates
component.JetpackSite.prototype
. Add query components, actions, selectors and reducers for:activateModule- removed in Sites: Remove unused methods from JetpackSite.prototype #13029.deactivateModule- removed in Sites: Remove unused methods from JetpackSite.prototype #13029toggleSshScan- removed in Sites: Remove unused methods from JetpackSite.prototype #13029fetchSshCredentials- removed in Sites: Remove unused methods from JetpackSite.prototype #13029updateSshCredentials- removed in Sites: Remove unused methods from JetpackSite.prototype #13029fetchJetpackKeys- removed in Sites: Remove unused methods from JetpackSite.prototype #13029User
Posts
QueryPosts
in "/posts" section.QueryPosts
in "Drafts list". Posts: display recent-drafts at the top of default view. #4936Stats
post.stats
state sub-tree.stats
state sub-treestats
state sub-treestats
state sub-treestats
state sub-treestats
state sub-treestats
state sub-treestats
state sub-treestats
state sub-treestats
state sub-treestats
state sub-treestats
state sub-tree Stats: Reduxify Video Stats Endpoint #10520Editor (Needs Issue)
QueryMedia
component.MediaListData
component.QueryPageTemplates
component (Editor: Refactor page templates to use Redux state #7229)PageTemplatesData
component (Editor: Refactor page templates to use Redux state #7229)QueryPostFormats
component. (State: Migrate lib/post-formats to Redux state #8402)PostFormatsData
component. (Editor: Use Redux state for Post Formats #8593)CreateCovered byQueryTags
component.QueryTerms
TagListData
component.QueryEmbeds
component.QueryTerms
component (Redux: enable Terms in global state tree. #5500)QueryEmbeds
.Shortcode
component. Components: Reduxify the <Shortcode /> component #8857QueryShortcodes
component. State: Migrate lib/shortcodes to Redux state #8116General
QueryPreferences
component. Move preferences to redux #5401PreferencesData
component. Media: Manage media scale through Redux preferences state #8295QueryPostCounts
component.StoreConnection
component.lib/screen-title
#3796, Framework: Dumplib/screen-title
in favor of its Redux counterpart #7224InfiniteList
to redux (Needs Issue)Reader #10984
QueryComments
component.Sharing
connections-list
module. Remove connections list module #8991services-list
module Components: UseKeyringServices
rather thanlib/services-list
#8595Themes
QueryThemes
component.ThemesListFetcher
.CurrentThemeData
toQueryTheme
or selectors. Themes: Add current-theme query component #5361Plans
QuerySitePlans
component. Framework: add query plans component #4933QueryPlans
component. Framework: add QueryPlans data component #5444Domains #6144
QueryDomains
component.StoreConnection
in domain management.Purchases
client/lib/purchases/reducer
toclient/state/
Purchases: Addstate.purchases.items
reducer #6317client/lib/purchases/actions
toclient/state/
QueryPurchases
component.StoreConnection
in purchases.Stored cards
client/lib/purchases/stored-cards/reducer
toclient/state/
Framework: Add a stored cards reducer #6413client/lib/purchases/stored-cards/actions
toclient/state/
QueryStoredCards
component.StoreConnection
in purchases.People (Needs Issue)
QueryUsers
component Revisions #6: Fetch authors #14930QueryFollowers
component.QueryEmailFollowers
component.QueryViewers
componentPlugins #8213 #8786
QueryJetpackPlugins
component. Plugins: Add QueryJetpackPlugins query component #8275SiteVouchers
state.sites.vouchers
. Framework: add site.vouchers to redux #5574QuerySiteVouchers
component. Framework: add<QuerySiteVouchers />
component #5579The text was updated successfully, but these errors were encountered: