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

Offer asynchronous model upload/import #2148

Open
ghost opened this issue Dec 6, 2019 · 0 comments
Open

Offer asynchronous model upload/import #2148

ghost opened this issue Dec 6, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 6, 2019

This comes from a short discussion with @aedelmann.
Relates to some existing closed issues such as #1667 and #1997.

The idea would be to either offer new endpoints, or modify the existing ones in order to provide an asynchronous model upload and import functionality.

Expected features:

  • Both POST and PUT endpoints would return immediately with a JSON message containing a token

  • One or two new GET endpoints would be offered where the token is initially retrieved by the client is the path resource or a parameter

  • The GET endpoint(s) would provide a synchronous JSON response with details regarding:

    • Progress if possible
    • Status (processing, success, error / timeout)
    • Error / timeout details if applicable

The safest way would be to provide the new POST endpoints in alternative to the existing ones, so existing clients outside Vorto's front-end would not be impacted.

Vorto's front-end would leverage this to provide some meaningful information to the end-user, while their model is getting uploaded.

This could also be a good occasion to change the upload/import process from two steps to a one-step upload+import combination.

The latter change might even be considered as a one-step upstream, meaning one POST endpoint for uploading and importing in one go.

@aedelmann give me a shout if you agree / disagree / have ideas to share!

@ghost ghost changed the title Allow asynchronous model upload/import Offer asynchronous model upload/import Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant