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

Create wp.data store for retrieving/tracking events #332

Merged

Commits on Apr 30, 2018

  1. Configuration menu
    Copy the full SHA
    2fbab6d View commit details
    Browse the repository at this point in the history
  2. First pass of js side of things for the list wp.data implementation

    `src/data/model/endpoints` expose:
    
    - `getEndpoint` (default) for getting the endpoint for a model name (via the server side generated endpoints array exposed on the `eejs.data` global.
    - `endpoints` : the full endpoints array.
    - `applyQueryString`: which receives a model name and a query string and applies the query string to the endpoint corresponding to that model name and returns the final assembled endpoint.
    
    `src/data/ee-lists/…`
    
    - selectors for entities attached to a specified model and cached by query string
    - reducers for updating the store state for lists cached by query string
    - resolvers for the initial api query to retrieve entities matching the query string
    - actions describing the various actions that can be dispatched to update the store state.
    nerrad committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    011b377 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c50120 View commit details
    Browse the repository at this point in the history
  4. Add more dependencies and update config

    - adds babel plugin transform for async generator functions.
    - adds core-js library (used with jest tests for async generaotr related tests).
    nerrad committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    92966d2 View commit details
    Browse the repository at this point in the history
  5. Fix lint errors

    nerrad committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    4c3ea41 View commit details
    Browse the repository at this point in the history
  6. Install new dev dependency

    “deep-freeze” is an implementation of the Object.freeze javascript spec.  This is used in various js unit-tests to preserve an object is not mutated and not interacted with in various assertions (especially in redux like code where state is not mutated but preserved across history)
    nerrad committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    7d94cb0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c44c125 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e48a152 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5a106fa View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    48358e3 View commit details
    Browse the repository at this point in the history
  11. Install gutenberg as a devDependeny

    The goal here is to be able to do jest tests for things requiring gutenberg dependencies.
    nerrad committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    8ea3e48 View commit details
    Browse the repository at this point in the history
  12. Add initial test for EventSelect component

    This was a fun one to do because I basically had to figure out how I could load in gutenberg components that were composed in the component I wanted to test!
    nerrad committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    3420132 View commit details
    Browse the repository at this point in the history
  13. Remove unnecessary mock

    This is taken care of globally so don’t need it in this file specifically.
    nerrad committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    6e160b9 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d3e8642 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    b08ad45 View commit details
    Browse the repository at this point in the history
  16. add phpdoc for function

    nerrad committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    773fb65 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    29e303f View commit details
    Browse the repository at this point in the history