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

Use 'value' attribute in objects to locate object path in etcd #9

Conversation

anivargi
Copy link
Contributor

@anivargi anivargi commented Dec 1, 2016

Tendrl API should use the configuration defined under objects 'value' in the
definitions yaml file to locate the path for specific object. The path should
be used to retrieve a single instance.

@anivargi
Copy link
Contributor Author

anivargi commented Dec 1, 2016

@nthomas-redhat @r0h4n please review.

object path is the plural of the object name etc. The assumption might not
always be correct and hence the paths for retrieving single instance or a list
of the objects should be picked up from the definitions yaml files under the
object section with a attribute defined as 'value'.
Copy link
Member

Choose a reason for hiding this comment

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

%s/a attribute/an attribute/g

== Proposed change

Tendrl API should use the configuration defined under objects 'value' in the
defitnitions yaml file to locate the path for specific object. The path should
Copy link
Member

Choose a reason for hiding this comment

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

spelling "definitions"

Copy link
Member

Choose a reason for hiding this comment

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

@anivargi above spelling mistake ^^


==== Tendrl API impact:

The proposed change is a internal change and will not affect existing API's.
Copy link
Member

Choose a reason for hiding this comment

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

%s/a internal/an internal/g


=== Work Items:

https://github.com/Tendrl/tendrl-api/issues/28
Copy link
Member

Choose a reason for hiding this comment

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

We need to put github PR details here

Copy link
Contributor

Choose a reason for hiding this comment

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

Github issues are to be linked here, not PRs, PRs will come after the spec is approved


==== Tendrl/node_agent impact:

None
Copy link
Contributor

Choose a reason for hiding this comment

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

node agent definitions need to be updated to have "value" for each object


The proposed change is a internal change and will not affect existing API's.

==== Tendrl/common impact:
Copy link
Contributor

Choose a reason for hiding this comment

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

definitions validation needs to check for "value" key for each object


None

==== Sds integration impact:
Copy link
Contributor

Choose a reason for hiding this comment

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

sds integrations definitions need to be updated to have "value" for each object


=== Work Items:

https://github.com/Tendrl/tendrl-api/issues/28
Copy link
Contributor

Choose a reason for hiding this comment

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

Github issues are to be linked here, not PRs, PRs will come after the spec is approved


Tendrl API should use the 'value' attribute defined in the definitions yaml
files to infer the path of the object in etcd. These paths are used to retrieve
a single instance or a list of the defined object.
Copy link
Contributor

Choose a reason for hiding this comment

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

"value" will point to a single instance of the object, and "list" will point to the list of instances of those object (see: #13)

@r0h4n
Copy link
Contributor

r0h4n commented Dec 6, 2016

@anivargi Please check review comments


== Proposed change

Tendrl API should use the configuration defined under objects 'value' in the
Copy link
Contributor

Choose a reason for hiding this comment

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

what are the possible content of 'value' attribute? Its good to provide a sample here


None


Copy link
Contributor

Choose a reason for hiding this comment

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

impact on tendrl definitions needs to be mentioned here and probably the details about the changes


=== Work Items:

https://github.com/Tendrl/tendrl-api/issues/28
Copy link
Contributor

Choose a reason for hiding this comment

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

This need to go into the references section

None

== References:

Copy link
Contributor

Choose a reason for hiding this comment

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

Need to create issues on the all the components involved and list them here

@anivargi
Copy link
Contributor Author

@nthomas-redhat @shtripat @r0h4n I have made the requested changes.

@r0h4n r0h4n merged commit 2811cc1 into Tendrl:master Dec 14, 2016
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

4 participants