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

ui: add workflow sharing modal #373

Closed

Conversation

DaanRosendal
Copy link
Member

@DaanRosendal DaanRosendal commented Dec 12, 2023

To do and discuss

  • Message sending still needs to be implemented.
    • This has been discussed and will involve notifications in the platform and emails
  • Save sharing messages to the database or send and forget?
    • If we decide to send and forget, the database model can be updated to remove the message.
  • Should we let users specify a time that the sharing expires, or is a day enough?
    • Day is enough

The wireframe depicted in the corresponding issue has been mimicked as closely as possible:
image

Closes #368

@DaanRosendal DaanRosendal force-pushed the workflow-sharing-modal branch 2 times, most recently from e98e2c3 to ce8ad2e Compare December 15, 2023 11:09
@@ -69,6 +70,17 @@ export default function WorkflowActionsPopup({ workflow, className }) {
});
}

menuItems.push({
key: "share",
content: "Share workflow",
Copy link
Member

Choose a reason for hiding this comment

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

FWIW when testing the PR set:

  • r-client: 692
  • r-client-go: 153
  • r-ui: 375
  • r-server: 658
  • r-workflow-controller: 552
  • r-commons: 429
  • r-db: 216

The workflow sharing modal was creating a trackeback on the r-server side:

2024-03-28 13:52:43,318 | root | uWSGIWorker2Core1 | ERROR | share_workflow does not have parameter user
Traceback (most recent call last):
  File "/code/./reana_server/rest/workflows.py", line 3397, in share_workflow
    response, http_response = current_rwc_api_client.api.share_workflow(
  File "/usr/local/lib/python3.8/dist-packages/bravado/client.py", line 246, in __call__
    request_params = construct_request(
  File "/usr/local/lib/python3.8/dist-packages/bravado/client.py", line 285, in construct_request
    construct_params(operation, request, op_kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bravado/client.py", line 305, in construct_params
    raise SwaggerMappingError(
bravado_core.exception.SwaggerMappingError: share_workflow does not have parameter user

This is because the r-ui PR was not updated yet to send the sharing details via the JSON body rather than via the URL query (used previously).

@mdonadoni
Copy link
Member

Included in #375

@mdonadoni mdonadoni closed this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: implement workflow sharing modal
3 participants