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

If a more recent revision/autosave exists, store its state on editor setup #7945

Merged
merged 22 commits into from
Apr 18, 2019

Commits on Apr 16, 2019

  1. Refactor autosave state into core-data

    - Migrate state from core/editor to core
    - Adjust selectors and action creators to take a post id.
    - Store autosave state by the post id.
    - Deprecate old action creators and selectors and forward to new implementation
    - Update tests
    - Update changelog
    
    Add a resolver for fetching autosave data
    
    Preload any autosaves for the current post
    
    Improve isEditedPostAutosaveable selector deprecation
    
    Pass entire parent post object into autosave selector functions to allow the getAutosave resolver to form a REST API path that incorporates both the post id and type
    
    Use a selector to get the correct post type base url for the autosave
    
    Rename resetAutosave to receiveAutosave for conformity
    
    Render the post preview button as disabled until autosave has been fetched.
    
    Comments/test description tidy up
    
    Prefer `action` over `action creator` in copy
    
    Remove unecessary if statement
    
    Remove `autosave` prop overriding the prop of the same name in withDispatch
    
    Fix deprecated resetAutosave function
    
    Fix jsdoc formatting
    
    Remove new getAutosaveAttribute in favour of deprecating and removing old version
    
    Change autosave selector interface from func( post ) to func( postType, postId )
    
    Store raw autosave from REST API in core, move transformation of autosave back to the core/editor package
    
    Remove and deprecate hasAutosave in favour of getAutosave
    
    Update docs
    
    Rename reducer autosave -> autosaves
    
    Fix erroneous changelog entry caused by bad merge conflict resolution
    
    Update deprecations
    
    Remove unnecessary new line
    
    Use createRegistrySelector to select autosave data from correct registry for deprecated functions
    
    Handle usage of registry selector in tests for isEditedPostAutosaveable
    talldan committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    4f34789 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f24491e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    81a3d4f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6c458fd View commit details
    Browse the repository at this point in the history
  5. Rework state for autosaves to reflect that multiple autosave can be r…

    …eceived (one per user)
    talldan committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    32ff2bc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1392ee7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    499a3cb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fc5d3d5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a5cc963 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3db52af View commit details
    Browse the repository at this point in the history
  11. Update docs

    talldan committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    0179088 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b67a7c1 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    95dfdb2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d7c599a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f5a47f5 View commit details
    Browse the repository at this point in the history
  16. Do not consider a post autosaveable if existing autosaves have not ye…

    …t been fetched from the REST API
    talldan committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    c523c23 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    ac04601 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a046d29 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    52cce02 View commit details
    Browse the repository at this point in the history
  20. Update deprecation versions

    talldan committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    aa0c408 View commit details
    Browse the repository at this point in the history
  21. Use REDUCER_KEY as arg to select

    Co-Authored-By: talldan <daniel.p.richards@gmail.com>
    aduth and talldan authored Apr 16, 2019
    Configuration menu
    Copy the full SHA
    e16f74c View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2019

  1. Update docs

    talldan committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    1e5a4b7 View commit details
    Browse the repository at this point in the history