-
Notifications
You must be signed in to change notification settings - Fork 1
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
routes/turnilo: allow query params on GET dashs #2
Conversation
This commit moves turnilo dashboard routes to a dedicated module.
3aae052
to
8960286
Compare
Allow the following query parameters (exact match) on the main GET dashboards URL: * `shortName` * `dataCube` This allows clients to validate whether a unique constrain `shortName+dataCube` is in use and by which dashboard ID. Added test coverage too.
a0830e9
to
483acf0
Compare
Bump dependencies to latest, to fix an invalid Warning by sqlalchemy
Pass -Werror to pytest so that warnings become errors.
This commit: * Cleans up some left overs from the transition of SQLAlchemy -> SQLModel * Fixes annoying deprecation SQLModel warnings
483acf0
to
3505ac0
Compare
I think you will like what I piled on top @OscarMoya (yeah, I know, I should have stubbed this in another PR, but there were some conflicts):
|
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.
If I were you, I would consider adopt some of my proposals to make sure the code is secure and extensible with minimal boilerplate, but as it is right now it would work
Make it easy to run within a venv.
Adopt Oscar's suggestion to use a Query class to validate query parameters. Unfortunately, due to the circular dependency, the Query class is moved to services (due to typing). Signed-off-by: Marc Sune <[email protected]> Signed-off-by: Oscar Moya <[email protected]>
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.
LGTM
routes/turnilo: allow query params on GET dashs
Allow the following query parameters (exact match) on the main GET dashboards URL:
This allows clients to validate whether a unique constrain
shortName+dataCube
is in use and by which dashboard ID.Added test coverage too.