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

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

Merged
merged 3 commits into from Jan 28, 2016

Conversation

jwitz10
Copy link

@jwitz10 jwitz10 commented Jan 21, 2016

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

Justin Witz added 2 commits January 21, 2016 15:10
@jingming
Copy link
Contributor

+1, pending the backwards compatibility concern

@@ -4,12 +4,14 @@ var TaskRouterCapability = require('./TaskRouterCapability');
function TaskRouterWorkerCapability(accountSid, authToken, workspaceSid, workerSid) {
TaskRouterCapability.call(this, accountSid, authToken, workspaceSid, workerSid);

this.reservationsUrl = this._baseUrl + "/Tasks/**";
this.tasksUrl = this._baseUrl + "/Tasks/**";
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, if I had an instance of TaskRouterWorkerCapbility that accessed tasksUrl, it would break with this update.

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.

@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 bbcf39f into master Jan 28, 2016
@jingming jingming deleted the worker-reservations-fetch branch March 2, 2017 04:24
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.

None yet

2 participants