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

RELEASE 0.3.0 #79

Merged
merged 3 commits into from
Jan 7, 2020
Merged

RELEASE 0.3.0 #79

merged 3 commits into from
Jan 7, 2020

Conversation

paquettealice
Copy link

@paquettealice paquettealice commented Nov 29, 2019

This introduces the new correlationId property for all EntityActions. The changes to the library itself are spread wide but quite shallow, so it shouldn't be too bad to review. The demo app changes are quite heavy however, and I unfortunately don't have time for a full write-up. The broad strokes for both are as follow:

Library

  • New peer dependency uuidv4
  • New interface ICorrelatedAction with just one property: correlatedId
  • IEntityAction now extends both Action and ICorrelatedAction
  • EntityAction class constructor now accepts an optional 3rd argument: public correlationId: string = uuid()
  • Every action extending EntityAction now accept an optional 3rd argument: correlationId?: string which is passed to super()
  • Every operator used in the default effects now pass the optional correlationId to subsequent Success and Failure actions, linking those sets of actions together
  • Something to consider: should we add an optional correlationId argument to the BaseFacade's dispatch methods (and pass it down the chain like it's done above)? E.g. load, loadMany, create, update, etc.

Demo

  • Added the ability to create and edit orders
  • Changed some superficial/cosmetic stuff for consistency and UX
  • A lot more of the Order CRUD operations are handled in effects now
  • Overall it could still use some work, but it's in an okay state right now I think

If you have any questions, don't hesitate to ask!

P.S. I didn't add any unit tests for the library changes (I completely forgot and I'm crazy strained for time lately), so if you'd rather wait until I can get those up before merging, that's completely fine.

@paquettealice paquettealice requested a review from jrista November 29, 2019 05:02
@paquettealice paquettealice changed the title Feat/0.3.0 RELEASE 0.3.0 Nov 30, 2019
@paquettealice
Copy link
Author

In the middle of rebasing but have to go eat, so things will look weird for a bit :p

@paquettealice paquettealice force-pushed the feat/0.3.0 branch 3 times, most recently from d075ac4 to aad832c Compare December 8, 2019 20:50
@paquettealice
Copy link
Author

Rebasing should be done, and I made two changes:

  • ICorrelatedAction is now exported as part of the public api
  • The import that was looking in dist/... now imports from @briebug instead.

Please let me know if you want additional changes!

paquettepy added 2 commits January 6, 2020 08:48
  + Add ICorrelatedAction interface
  * Update all EntityActions to include a correlationId (defaults to uuidv4())
  * Update all operators to propagate correlationId from initiators to results
  * Update peer dependencies to use proper syntax

Part of release 0.3.0

Resolves briebug#75
  + Add the ability to create and edit orders
  * Update some of the look and feel
  * Refactor some of the code into effects (still needs work)

Part of release 0.3.0
@paquettealice
Copy link
Author

paquettealice commented Jan 6, 2020

@jrista Pushed the changes to the versions, check them out when you can.

@jrista jrista merged commit d4329b4 into briebug:develop Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants