Skip to content

Conversation

@alebellu
Copy link
Contributor

Closes SixSq/tasklist#3059

@github-actions
Copy link
Contributor

github-actions bot commented Apr 11, 2024

Test Results

659 tests  +4   659 ✅ +4   3m 9s ⏱️ +4s
279 suites +2     0 💤 ±0 
279 files   +2     0 ❌ ±0 

Results for commit 79cf9ec. ± Comparison against base commit e4c934b.

♻️ This comment has been updated with latest results.



(def collection-acl {:query ["group/nuvla-admin"]
:add ["group/nuvla-admin"]})

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

Copy link
Contributor Author

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

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

Copy link
Contributor Author

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))

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

Copy link
Contributor Author

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))

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

Copy link
Contributor Author

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.

@alebellu alebellu force-pushed the issue_tasklist_3059 branch from ddbfcfc to ce45107 Compare April 16, 2024 14:42
@alebellu alebellu force-pushed the issue_tasklist_3059 branch from c357a67 to e709f88 Compare May 3, 2024 07:45
@sixsq-sonarqube-github-app
Copy link

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.

3 participants