Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Loading Reservations under a Worker by default in TaskRouter JS SDK #247

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

Merged
merged 3 commits into from
Jan 28, 2016

Conversation

jwitz10
Copy link

@jwitz10 jwitz10 commented Jan 22, 2016

  • Allow fetching Reservations under a Worker by default
  • Allow updating Reservations under a Worker

self.activity_url = self.base_url + "/Activities"
self.tasks_url = self.base_url + "/Tasks/**"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is backwards compatible. If I had an instance of TaskRouterWorkerCapability, I would no longer be able to access reservations_url with this update, right?

Copy link
Author

Choose a reason for hiding this comment

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

Correct, but I'm not sure anyone would directly reference reservations_url since this variable's only purpose would be for generating access policies.

I can revert this if necessary though.

Copy link
Contributor

Choose a reason for hiding this comment

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

I do believe that this would be very rare behavior for any user. However, if there is any user doing this - it would be a breaking change, which would require a major version bump.

@jingming
Copy link
Contributor

+1

jingming added a commit that referenced this pull request Jan 28, 2016
Loading Reservations under a Worker by default in TaskRouter JS SDK
@jingming jingming merged commit 641e982 into master Jan 28, 2016
@jingming jingming deleted the worker-reservations-fetch branch March 2, 2017 04:16
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