-
Notifications
You must be signed in to change notification settings - Fork 31
πποΈ Fixes validation of product vendor ui object and drops unused project_alias
β οΈ
#8266
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
πποΈ Fixes validation of product vendor ui object and drops unused project_alias
β οΈ
#8266
Conversation
e87ef27
to
543e6c9
Compare
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8266 +/- ##
==========================================
+ Coverage 87.89% 87.91% +0.01%
==========================================
Files 1933 1933
Lines 74941 74941
Branches 1309 1309
==========================================
+ Hits 65871 65882 +11
+ Misses 8677 8666 -11
Partials 393 393
Continue to review full report in Codecov by Sentry.
π New features to boost your workflow:
|
3061f7e
to
3c6e667
Compare
project_alias
project_alias
project_alias
3c6e667
to
9e6e1f0
Compare
9e6e1f0
to
e2f6c6d
Compare
project_alias
project_alias
β οΈ
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.
Pull Request Overview
This PR fixes validation issues with the product vendor UI object and removes the unused project_alias
field as requested. The main issue was that the product validation was failing when vendor.ui
contained a project_alias
field that wasn't defined in the VendorUI
TypedDict, causing email templates to not render logos properly.
Key Changes
- Removes
project_alias
field fromVendorUI
TypedDict and related models - Updates email templates to use hardcoded "project" instead of dynamic
project_alias
- Fixes product configuration model validation by removing alias generation and updating configuration
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
packages/postgres-database/src/simcore_postgres_database/models/products.py |
Removes project_alias from VendorUI TypedDict definition |
packages/notifications-library/src/notifications_library/_models.py |
Removes project_alias field from ProductUIData dataclass |
services/web/server/src/simcore_service_webserver/products/_models.py |
Updates Product model configuration and removes alias generation |
services/web/server/src/simcore_service_webserver/statics/_events.py |
Adds helper function for product data conversion with snake_to_camel |
services/web/server/src/simcore_service_webserver/users/_accounts_service.py |
Removes project_alias extraction from product vendor UI |
packages/notifications-library/src/notifications_library/templates/* |
Updates email templates to use hardcoded "project" text |
packages/pytest-simcore/src/pytest_simcore/helpers/faker_factories.py |
Removes project_alias from random product factory |
services/web/server/src/simcore_service_webserver/products/_repository.py |
Renames function from _to_domain to _db_to_domain |
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.
thanks
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.
thanks
...notifications-library/src/notifications_library/templates/on_share_project.email.content.txt
Show resolved
Hide resolved
...notifications-library/src/notifications_library/templates/on_share_project.email.subject.txt
Show resolved
Hide resolved
...notifications-library/src/notifications_library/templates/on_share_project.email.content.txt
Show resolved
Hide resolved
|
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.
Great! Thanks
What do these changes do?
project_alias
(requested by @odeimaiz)product.vendor.ui
is (reported by @pcrespovThis fails validation upon startup like
As a consequence, the templates do note render the log in the emails
Related issue/s
How to test
Dev-ops