-
Notifications
You must be signed in to change notification settings - Fork 40
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
(PC-20049)[API] refactor: improve offer ExtraData #5028
Conversation
042ece7
to
1e02b30
Compare
Debt collector report:null null null Previous debt : 0Current debt : 0Debt decreased by 0 PointsTo get a file by file report, please run debt-collector check --changed-since="[REVISION]" |
438178e
to
219fb84
Compare
mypy cop report: 943 (master) ↘ 940 (your branch) Have yourself a merry little break and learn a few facts about the year 940. |
c57b180
to
e96036d
Compare
if not self.product_subcategory_id: | ||
raise ValueError("product subcategory id is missing") |
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.
C'est un bug fix en plus dans ce commit ?
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.
Non c'est plutôt une question de typage : une erreur mypy est apparue (parce qu'il y a moins de Any ?). Pour enlever cette erreur mypy, on raise une erreur de manière explicite (de toute façon on aurait eu une KeyError dans ce cas)
e96036d
to
e6d8e62
Compare
api/src/pcapi/routes/serialization/collective_bookings_serialize.py
Outdated
Show resolved
Hide resolved
it does not seem to be reusable. when reused, mypy raises an error because the infered type is the type of the first(?) column variable that uses it
e6d8e62
to
7b691dd
Compare
this property is neither filled nor present in staging database
7b691dd
to
b094f99
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.
🍏
Lien vers le ticket Jira : https://passculture.atlassian.net/browse/PC-20049
Limitations
Malheureusement on ne peut pas :
extra_data.get("diffusionVersion", "")
eststr | None
offers_models.Product.extraData["isbnz"].astext
)