Skip to content

Commit b8587f2

Browse files
committed
drop project_alias
1 parent 29a1d01 commit b8587f2

File tree

10 files changed

+5
-16
lines changed

10 files changed

+5
-16
lines changed

packages/notifications-library/src/notifications_library/_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class SharerData:
3030

3131
@dataclass(frozen=True)
3232
class ProductUIData:
33-
project_alias: str
3433
logo_url: str | None = (
3534
None # default_logo = "https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-white.svg" in base.html
3635
)

packages/notifications-library/src/notifications_library/templates/on_share_project.email.content.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
{% block content %}
44
<p>Dear {{ user.first_name or user.user_name }},</p>
55

6-
<p>Great news! {{ sharer.user_name }} has shared a {{ product.ui.project_alias }} with you on {{ product.display_name }}.</p>
6+
<p>Great news! {{ sharer.user_name }} has shared a project with you on {{ product.display_name }}.</p>
77

8-
<p>To view the {{ product.ui.project_alias }} and accept the sharing, follow below:</p>
8+
<p>To view the project and accept the sharing, follow below:</p>
99

1010
<p>
1111
{% if sharer.message %}

packages/notifications-library/src/notifications_library/templates/on_share_project.email.content.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Dear {{ user.first_name or user.user_name }},
22

3-
Great news! {{ sharer.user_name }} has shared a {{ product.ui.project_alias }} with you on {{ product.display_name }}.
3+
Great news! {{ sharer.user_name }} has shared a project with you on {{ product.display_name }}.
44

5-
To view the {{ product.ui.project_alias }} and accept the sharing, follow below:
5+
To view the project and accept the sharing, follow below:
66

77
{{ sharer.message }}
88
{{ accept_link }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
A {{ product.ui.project_alias }} was shared with you on {{ host }}
1+
A project was shared with you on {{ host }}

packages/notifications-library/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def product_data(
6666
product_ui = ProductUIData(
6767
logo_url=vendor_ui.get("logo_url"),
6868
strong_color=vendor_ui.get("strong_color"),
69-
project_alias=vendor_ui["project_alias"],
7069
)
7170

7271
return ProductData( # type: ignore

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
class VendorUI(TypedDict, total=True):
3333
logo_url: str # vendor logo url
3434
strong_color: str # vendor main color
35-
project_alias: str # project alias for the product (e.g. "project" or "study")
3635

3736

3837
class Vendor(TypedDict, total=False):

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ def random_product(
294294
ui=VendorUI(
295295
logo_url="https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-black.svg",
296296
strong_color=fake.color(),
297-
project_alias=fake.random_element(elements=["project", "study"]),
298297
),
299298
),
300299
"registration_email_template": registration_email_template,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
256256
"ui": {
257257
"logo_url": "https://acme.com/logo",
258258
"strong_color": "#123456",
259-
"project_alias": "study",
260259
},
261260
},
262261
"issues": [

services/web/server/src/simcore_service_webserver/users/_accounts_service.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,6 @@ def _create_product_and_user_data(
331331

332332
# Extract UI information from product.vendor.ui (optional)
333333
ui_data = ProductUIData(
334-
project_alias=(
335-
product.vendor.get("ui", {}).get("project_alias") or "study"
336-
if product.vendor
337-
else "study"
338-
),
339334
logo_url=(
340335
product.vendor.get("ui", {}).get("logo_url") if product.vendor else None
341336
),

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def test_product_to_static():
6363
"ui": {
6464
"logo_url": "https://acme.com/logo",
6565
"strong_color": "#123456",
66-
"project_alias": "study",
6766
},
6867
},
6968
"issues": [

0 commit comments

Comments
 (0)