Skip to content

Commit 82c3ebe

Browse files
committed
add logo and strong_color to Vendor's model
1 parent d7e6fd3 commit 82c3ebe

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

packages/postgres-database/src/simcore_postgres_database/models/products.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class Vendor(TypedDict, total=False):
4141

4242
url: str # vendor website
4343
license_url: str # Which are the license terms? (if applies)
44+
logo: str # vendor logo
45+
strong_color: str # vendor color
4446

4547
invitation_url: str # How to request a trial invitation? (if applies)
4648
invitation_form: bool # If True, it takes precendence over invitation_url and asks the FE to show the form (if defined)

packages/pytest-simcore/src/pytest_simcore/helpers/faker_factories.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ def random_product(
254254
copyright=fake.company_suffix(),
255255
url=fake.url(),
256256
license_url=fake.url(),
257+
logo=fake.url(),
258+
strong_color=fake.color(),
257259
invitation_url=fake.url(),
258260
invitation_form=fake.boolean(),
259261
address=fake.address().replace("\n", ". "),

services/web/server/src/simcore_service_webserver/products/_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
239239
"vendor": {
240240
"url": "https://acme.com",
241241
"license_url": "https://acme.com/license",
242+
"logo": "https://acme.com/logo",
243+
"strong_color": "#123456",
242244
"invitation_form": True,
243245
"name": "ACME",
244246
"copyright": "© ACME correcaminos",

services/web/server/tests/unit/isolated/products/test_products_model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def test_product_to_static():
6060
"url": "https://acme.com",
6161
"license_url": "https://acme.com/license",
6262
"invitation_form": True,
63+
"logo": "https://acme.com/logo",
64+
"strong_color": "#123456",
6365
},
6466
"issues": [
6567
{

0 commit comments

Comments
 (0)