Proposal: Report a Public Workflow #6242
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
|
Implemented on my fork, split into 3 small stacked PRs. Feedback welcome before I open them. Demovideo link : https://drive.google.com/file/d/1nMyHOhSdPEiS7viiSHcJ8maG9ehS6eqI/view?usp=sharing
Flowflowchart TD
R["User reports a<br/>public workflow"] --> P[("PENDING")]
P --> A{"Admin reviews"}
A -->|"Dismiss"| C["CLOSED"]
A -->|"Unpublish"| U["workflow → private<br/>(ACTIONED)"]
U --> O["Owner notified<br/>(dialog + ⚠️)"]
O -->|"Republish"| C
BackendOne new table schemaCREATE TYPE report_status_enum AS ENUM ('PENDING', 'CLOSED', 'ACTIONED');
CREATE TABLE workflow_report (
report_id SERIAL PRIMARY KEY,
wid INT NOT NULL,
reporter_uid INT NOT NULL,
reason VARCHAR(64) NOT NULL,
detail TEXT,
status report_status_enum NOT NULL DEFAULT 'PENDING',
resolver_uid INT,
creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
resolved_time TIMESTAMP,
FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE,
FOREIGN KEY (reporter_uid) REFERENCES "user"(uid) ON DELETE CASCADE,
FOREIGN KEY (resolver_uid) REFERENCES "user"(uid) ON DELETE SET NULL
);PR plan (merge in order)
|
Beta Was this translation helpful? Give feedback.
-
|
Good to know the progress. The user experience looks good. Two quick comments:
|
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
Proposal: Report a Public Workflow
What it does
Texera lets any user make a workflow public (
workflow.is_public), after which it shows up on the public Hub where everyone can browse, view, like, and clone it. Today there is no way for a viewer to flag a public workflow that contains inappropriate content — offensive text in operator/comment fields, misleading or harmful pipelines, spam, copyrighted data, etc. The only recourse is to email a maintainer out of band, and admins have no in-product action to take a bad workflow down.This proposal adds a lightweight "Report" flow: any logged-in user can report a public workflow with a reason, and admins get a moderation queue where they can review reports and, if warranted, unpublish it.
flowchart LR A[User sees a public<br/>workflow on the Hub] -->|clicks Report,<br/>picks a reason| B[(Report saved)] B --> C{Admin reviews<br/>the report} C -->|looks fine| D[Dismiss] C -->|inappropriate| E[Unpublish<br/>removed from Hub]Use case: A public workflow's operator labels contain harassing language toward a named person. A viewer clicks Report → "Harassment / offensive content". An admin sees it in the queue, confirms, and unpublishes it with one click — the workflow is no longer discoverable on the Hub, without deleting the author's private copy.
How it works
Reporting (any logged-in user)
Moderation (admins only)
Implementation sketch
There is no report/moderation concept in Texera today, so this is greenfield. At a high level it needs: a new table to store reports, a user-facing endpoint to submit a report, admin-only endpoints to list and resolve them (mirroring the existing admin resources), and a bit of frontend — a report dialog on the Hub plus a Reports tab in the admin dashboard. "Unpublish" reuses the workflow's existing public/private toggle, so no new take-down machinery is required. Exact schema and API can be worked out in the PR.
Open questions
Beta Was this translation helpful? Give feedback.
All reactions