Closed Jiyang-Wu closed 3 years ago
Requirement update: there will possibly be an "admin user" design in the future. Keep that in mind while designing the backend.
Update:
A new table in database called WORKFLOW_USER_ACCESS is added to indicate a user's read/write privileges on a given workflow.
WorkflowAccessResource is implemented to include the feature of read/write/none privilege lookup.
Update: -WorkflowAccessResource now responds with json object and can successfully retrieve the level of access. -WorkflowResource updated to use a similar logic to the one used in WorkflowAccessResource to identify user access: a user can access a workflow even though he is not the owner identifieded in workflow_of_user table.
Update:
Updating the database (https://github.com/Texera/texera/blob/master/core/scripts/sql/texera_ddl.sql) to differentiate different types of user priviliges in workflows.
Using jooq to generate interactions between servlets and database.
Updating workflow backend servlet.