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

Recurly.Event #459

Merged
merged 26 commits into from
Aug 9, 2018
Merged

Recurly.Event #459

merged 26 commits into from
Aug 9, 2018

Conversation

chrissrogers
Copy link
Member

@chrissrogers chrissrogers commented Apr 27, 2018

  • Base branch for Recurly.event feature

@chrissrogers chrissrogers force-pushed the events branch 2 times, most recently from 20e7c76 to fb7c2c7 Compare April 27, 2018 16:44
@chrissrogers chrissrogers changed the title [WIP] Recurly.Event Recurly.Event May 7, 2018
* @param {Object} options
* @param {String} options.name event name
*/
payload ({ name }) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you planning on using other properties in the future? If not, probably easier to just accept a single string argument instead of passing in the whole object and pulling a single prop.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes exactly, the payload here will accept more properties as they are introduced. Those will come in an upcoming PR to this branch.

Copy link
Contributor

@gla7 gla7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Adds `EventDispatcher`, instantiated on each `Recurly` instance at `recurly.event`

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Queues requests to fire until the instance is ready to make requests

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Improved organization of error generation

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Fixes ErrorDirectory init

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Adds IntervalWorker
- Updates EventDispatcher to use a worker to dispatch events in ten second intervals
- Updates Request to accept empty responses

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Dispatches events when pricing changes occur

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Metadata is used to send useful information alongside an event

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Adds Recurly.report to simplify calls
- Updates pricing meta payloads

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- differentiates between ‘checkout’ and ‘subscription’ reporting

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Clones owned objects before they are emitted
- Checkout and Subscription pricing instances would return objects in their proomise chains which could mutate the corresponding item on the pricing instance

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Setting a coupon on a pricing instance would unnecessarily try to unset prior coupoons, resulting in noisy events
- unset.coupon will now only fire if an exisiting coupoon oon a pricing instance is removed

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>

# Conflicts:
#	lib/recurly/pricing/checkout/index.js
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
@gla7 gla7 merged commit c6333a5 into master Aug 9, 2018
@gla7 gla7 deleted the events branch August 9, 2018 21:26
carlosantoniodasilva referenced this pull request Sep 27, 2018
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants