-
Notifications
You must be signed in to change notification settings - Fork 8
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
Greencode module #429
base: main
Are you sure you want to change the base?
Greencode module #429
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #429 +/- ##
==========================================
+ Coverage 82.74% 82.95% +0.21%
==========================================
Files 97 101 +4
Lines 6078 6259 +181
==========================================
+ Hits 5029 5192 +163
- Misses 1049 1067 +18 ☔ View full report in Codecov by Sentry. |
status_code=201, | ||
) | ||
async def create_item( | ||
item: schemas_greencode.ItemBase, |
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.
You should probably check the qr_code_content does not already exist
"/greencode/item/{item_id}", | ||
status_code=204, | ||
) | ||
async def update_advertiser( |
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.
You should probably check the qr_code_content does not already exist
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.
Isn't it redundant with the unique=true
in models ?
) | ||
|
||
completion = schemas_greencode.Completion( | ||
user=schemas_greencode.CoreUserSimple(**user.__dict__), |
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.
Is it useful to return the user, as we need to know the user_id to get this object?
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.
Do you suggest using different schemas for the single and list endpoints ?
On a frontend perspective, I think it would add some complexity
e363b6d
to
481069a
Compare
Description
Doc : https://hedgedoc.eclair.ec-lyon.fr/CQfERrCRSuacIMpqEaPfng
Checklist