Skip to content

Feature export/import study (frontend) #2103

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

Merged

Conversation

odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jan 24, 2021

What do these changes do?

Implements the frontend part for Exporting and Importing studies.
It also introduces the concept of background tasks that can be used for requests that can take long. The tasks are added to a stack hanging from the navigation bar, so that they are visible throughout the application. This way we allow users to keep enjoying the application while the background tasks keep running.

  • When Exporting a study, a task is added to the Tasks stack, and as soon as the files are ready the download part starts.
  • When Importing a study, not only the task is added to the Tasks stack, but also a placeholder card is added to the list studies showing the progress of the file being uploaded, then the processing files step and finally it turns into a regular study card. Marvellous.

Bonus

  • /export -> :xport, GET -> POST

Export and import:
import

Related issue/s

Related to ITISFoundation/osparc-issues#325

How to test

Checklist

odeimaiz and others added 2 commits January 25, 2021 18:05
opsie, raising timeout for downloading files to 1 hour
@odeimaiz odeimaiz changed the title WIP: Feature export/import study (frontend) Feature export/import study (frontend) Jan 25, 2021
@odeimaiz odeimaiz marked this pull request as ready for review January 25, 2021 17:13
Copy link
Contributor

@KZzizzle KZzizzle left a comment

Choose a reason for hiding this comment

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

coool let's get it in!

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

very nice work!
just one thing to change back the GET to POST as explained here

Copy link
Contributor

@ignapas ignapas left a comment

Choose a reason for hiding this comment

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

cool stuff

@odeimaiz odeimaiz requested a review from sanderegg January 26, 2021 10:33
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

all good!! thanks for the change @GitHK @odeimaiz

@odeimaiz odeimaiz merged commit feaa2e2 into ITISFoundation:master Jan 26, 2021
@odeimaiz odeimaiz deleted the odeimaiz-GitHK-feature-export-import branch February 24, 2021 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:frontend issue affecting the front-end (area group)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants