Skip to content

Conversation

@GspikeHalo
Copy link
Contributor

@GspikeHalo GspikeHalo commented Sep 14, 2024

Purpose:
The current hub site does not distinguish between private and public workflows. This pr aims to introduce this concept and add methods for hub users to publish workflows from texera hub site.

Description:

  1. Added a toggle button to the workflow list item to help switching between public and private workflow
  2. Changed the database schema to add is_public boolean attribute to the workflow table (Added 15.sql for database updates).
  3. Implemented access checks so that only users with read or write access can change a workflow to publish

Partially fixes #2741 (still need to add a clone button in the detail page).

Demo:
old share access button:
previous_share_access_button

new share access button:
new_share_access_button

old workspace top bar:
old workspace top bar

share access button in workspace:
share button in workspace

share access button in workspace after click:
share button in workspace after click

Base automatically changed from texera-hub to master September 24, 2024 06:35
Copy link
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Please also mention 15.sql in your PR description.

@GspikeHalo GspikeHalo merged commit 0acb1c1 into master Sep 25, 2024
@GspikeHalo GspikeHalo deleted the texera-hub-published branch September 25, 2024 05:35
@Yicong-Huang
Copy link
Contributor

@aglinxinyuan please remember to add ddl-change label for PRs that changes the sql.

@aglinxinyuan aglinxinyuan added the ddl-change Changes to the TexeraDB DDL label Sep 27, 2024
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
**Purpose:**
The current hub site does not distinguish between private and public
workflows. This pr aims to introduce this concept and add methods for
hub users to publish workflows from texera hub site.

**Description:**
1. Added a toggle button to the workflow list item to help switching
between public and private workflow
2. Changed the database schema to add is_public boolean attribute to the
workflow table (Added 15.sql for database updates).
3. Implemented access checks so that only users with read or write
access can change a workflow to publish

Partially fixes #2741 (still need
to add a clone button in the detail page).

**Demo:**
old share access button:

![previous_share_access_button](https://github.com/user-attachments/assets/b5fc50bc-b676-43b3-ac73-4c1422535795)

new share access button:

![new_share_access_button](https://github.com/user-attachments/assets/c7d28587-0bb6-422b-9e51-dcbf3e8a295e)

old workspace top bar:
![old workspace top
bar](https://github.com/user-attachments/assets/78599dbf-3ee3-4c18-9621-cf97858f01c9)

share access button in workspace:
![share button in
workspace](https://github.com/user-attachments/assets/0995a093-9854-4d95-b64a-5121f9d485c3)

share access button in workspace after click:
![share button in workspace after
click](https://github.com/user-attachments/assets/89fa5733-75d2-4ff8-825b-fc1ae6c56a71)

---------

Co-authored-by: Xinyuan Lin <xinyual3@uci.edu>
Co-authored-by: linxinyuan <linxinyuan@gmail.com>
Co-authored-by: YS0meone <timyuan1016@gmail.com>
Co-authored-by: sixsage <sixsage02@gmail.com>
Co-authored-by: mengw15 <125719918+mengw15@users.noreply.github.com>
Co-authored-by: Minchong(Brian) Wu <143851082+IamtherealBrian@users.noreply.github.com>
Co-authored-by: Yicong Huang <17627829+Yicong-Huang@users.noreply.github.com>
Co-authored-by: Yicong Huang <yicong.huang@observeinc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ddl-change Changes to the TexeraDB DDL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Texera hub site could not support workflow cloning and publishing

7 participants