Skip to content
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

✨ webapi: new descriptionUI flag to render service a single page UI 🗃️ #6290

Merged
Next Next commit
adds new column in services_meta_data table
pcrespov committed Sep 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e92ae84d80dcbc6519d28d99e6401734e7a64af4
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sqlalchemy as sa
from sqlalchemy.dialects.postgresql import ARRAY, JSONB
from sqlalchemy.sql import expression

from .base import metadata

@@ -49,7 +50,14 @@
"description",
sa.String,
nullable=False,
doc="Markdown-compatible description (editable)",
doc="Markdown-compatible description (editable). SEE `view_enabled`",
),
sa.Column(
"wiki_enabled",
sa.Boolean,
nullable=False,
server_default=expression.false(),
pcrespov marked this conversation as resolved.
Show resolved Hide resolved
doc="If true, the `description` is rendered in the UI like a wiki site to the final user (editable)",
),
sa.Column(
"thumbnail",
Original file line number Diff line number Diff line change
@@ -386,6 +386,7 @@ def random_service_meta_data(
"name": f"the-{_name}-service", # display
"description": fake.sentence(),
# optional
"wiki_enabled": fake.pybool(),
"owner": owner_primary_gid,
"thumbnail": _pick_from([fake.image_url(), None]), # nullable
"version_display": _pick_from([f"v{_version}", None]), # nullable