-
Notifications
You must be signed in to change notification settings - Fork 11
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
[feature] add presets #19
base: main
Are you sure you want to change the base?
Conversation
074d4c0
to
6708201
Compare
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.
Just a little comment, also can you please include a more descriptive PR description? Maybe like the purpose of this feature and what it will enable teuthology-api to do
src/routes/presets.py
Outdated
detail="You need to be logged in", | ||
headers={"WWW-Authenticate": "Bearer"}, | ||
) | ||
db_preset = PresetsService(db).get_by_username_and_name( |
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.
maybe add a comment saying checking for existing presets
or change the variable name to something db_preset_exists
using postgres database 'tapi_db' Signed-off-by: Vallari Agrawal <[email protected]>
creates the following: models/presets.py: create_preset, get_user_presets, get_preset routes/presets.py: GET /, GET list/, POST /add schemas/presets.py: PresetSchema Signed-off-by: Vallari Agrawal <[email protected]>
models/presets: add get_preset_id, update_preset, delete_preset and PresetsDatabaseException Signed-off-by: Vallari Agrawal <[email protected]>
Signed-off-by: Vallari Agrawal <[email protected]>
Signed-off-by: Vallari Agrawal <[email protected]>
Signed-off-by: Vallari Agrawal <[email protected]>
@Devansh3712 I think you can work on top of this branch. There are few things I remember that needed to be addressed since I last updated it:
|
Presets allow users to save teuthology-suite
command config with a unique name for that user
to be reused again.
This PR:
PresetsDatabaseException