-
Notifications
You must be signed in to change notification settings - Fork 2
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
New 'timeseries' resource #897
base: master
Are you sure you want to change the base?
Conversation
|
||
|
||
(def collection-acl {:query ["group/nuvla-admin"] | ||
:add ["group/nuvla-admin"]}) |
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.
Only admin can add and query a timeserie? Why not opening it to all authenticated users
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.
Indeed, thanks.
@@ -0,0 +1,145 @@ | |||
(ns sixsq.nuvla.server.resources.timeseries |
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.
resource name is always singular
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.
I was thinking the same, but I was not sure and I google for it: https://www.merriam-webster.com/grammar/series-singular-plural-grammar-usage#:~:text=It%20is%20usually%20seen%20in,series%20is%20a%20zero%20plural.
Apparently 'series' is both singular and plural in english, there is no 'serie' :-)
[request] | ||
(let [{{:keys [resource-id]} :body :as response} (add-impl request)] | ||
(create-timeseries resource-id) | ||
response)) |
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.
missing storing the timeserie document as a doc inside nuvla-timeserie index
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.
I think it is done inside add-impl
|
||
(defmethod crud/query resource-type | ||
[request] | ||
(query-impl request)) |
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.
query not working since docs are note stored
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.
I think it should work, but I need to add a test for it, there is only one for the retrieve.
ddbfcfc
to
ce45107
Compare
…dling in ES binding
…dling in ES binding
…m is not yet created
c357a67
to
e709f88
Compare
SonarQube Quality Gate |
Closes SixSq/tasklist#3059