Skip to content

Conversation

@dbutenhof
Copy link
Member

PBENCH-1125

Remove the GET /datasets/daterange API in favor of a new query parameter, as GET /datasets?daterange. This allows getting the actual date range for any filtered selection of datasets.

PBENCH-1125

Remove the `GET /datasets/daterange` API in favor of a new query parameter, as
`GET /datasets?daterange`. This allows getting the actual date range for any
filtered selection of datasets.
@dbutenhof dbutenhof added Server API Of and relating to application programming interfaces to services and functions labels Apr 6, 2023
@dbutenhof dbutenhof self-assigned this Apr 6, 2023
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

Nice improvement!!

However, I think the docs (and possibly the code) need a tweak around the behavior when both keysummary and daterange are specified. And, I have some suggestions/nits.

@webbnh
Copy link
Member

webbnh commented Apr 6, 2023

And, we need to get @npalaska to fix those flakey unit tests! 😉

@webbnh
Copy link
Member

webbnh commented Apr 6, 2023

The indirect cause seems to be here:

  File "/var/tmp/jenkins/tox/py39/lib/python3.9/site-packages/pbench/server/database/models/users.py", line 132, in query
    dbsq = Database.db_session.query(User)
AttributeError: 'NoneType' object has no attribute 'query'

Apparently, somehow, the db_session is None...anyone have thoughts how that might (sometimes) happen?

webbnh
webbnh previously approved these changes Apr 6, 2023
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

Looks good, but I have an awkward question (or two) which probably means that we're missing a unit test.

webbnh
webbnh previously approved these changes Apr 7, 2023
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

Looks good but for a typo. Also, I have a couple of suggestions.

Copy link
Member Author

@dbutenhof dbutenhof left a comment

Choose a reason for hiding this comment

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

I'll fix the doc typo ...

@dbutenhof dbutenhof marked this pull request as ready for review April 7, 2023 20:29
@dbutenhof dbutenhof requested a review from webbnh April 7, 2023 20:29
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

👍

@dbutenhof dbutenhof merged commit af615a2 into distributed-system-analysis:main Apr 10, 2023
@dbutenhof dbutenhof deleted the datefilter branch April 10, 2023 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Of and relating to application programming interfaces to services and functions Server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants