-
Notifications
You must be signed in to change notification settings - Fork 77
Node Tagging #135
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
Node Tagging #135
Conversation
zyoung51
commented
Feb 18, 2016
- Add 'tags' to nodes to identify groups of nodes by arbitrary tag names
- Add 1.1 and 2.0 paths for new /nodes and /tags routes.
lib/api/2.0/tags.js
Outdated
| return nodes.getNodesByTag(req.swagger.params.tagName.value); | ||
| }); | ||
|
|
||
| var postWorkflowById = controller({success: 202}, function(req, res) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'res' is defined but never used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'res' is defined but never used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'res' is defined but never used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'res' is defined but never used.
|
@RackHD/corecommitters @uppalk1 @keedya @tannoa2 |
|
| } | ||
| })); | ||
|
|
||
| router.delete('/nodes/:identifier/tags/:name', rest(function(req) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need annotations, v1.1 api apidoc, and python-client is based on router's annotations.
|
General question, does add new API route cause a API version bump ? |
|
👍 after fix annotation, unused 'res', travisCI failure, and if others have no concerns about promise assertion |
|
test this please |
|
|
@RackHD/corecommitters Can you answer Winson's question above? |
|
http://rackhd.readthedocs.org/en/latest/devguide/index.html#api-versioning-conventions Specifically: 8.3.3. API Version Guidelines The following changes require a new API version:
The following changes do not require a new API version:
|
|
test this please |
lib/api/2.0/tags.js
Outdated
| var controller = injector.get('Http.Services.Swagger').controller; | ||
| var nodes = injector.get('Http.Services.Api.Nodes'); | ||
| var tags = injector.get('Http.Services.Api.Tags'); | ||
| var _ = injector.get('_'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redefinition of '_'.
c91e39d to
a751e01
Compare
|
|
|
Thanks @jlongever |
|
@zyoung51 assuming unit-test failures are due to on-core dependency: RackHD/on-core#88. +1 when conflicts resolved. |
- Add 'tags' to nodes to identify groups of nodes by arbitrary tag names - Add 1.1 and 2.0 paths for new /nodes and /tags routes.
a751e01 to
189e3f7
Compare
|
test this please |
|
Closing this PR, new PR here resolving merge conflicts #154 |