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

forms: store the formdata under source_data instead when creating the workflow. #3069

Open
david-caro opened this issue Dec 20, 2017 · 2 comments

Comments

@david-caro
Copy link
Contributor

david-caro commented Dec 20, 2017

In order to be able to restart a wokrflow reusing the same data that was used to start it the first time, we have to unify between submissions and harvests where to put that data, and that key will be from now on source_data under the workflow extra_data.

@david-caro
Copy link
Contributor Author

This is a bit more complex than I though, the source_data must have information about both, the extra_data that it would set in the workflow + the data, so it must have the structure:

"source_data": {
    "extra_data": {
        ...
    },
    "data": {
        ...
    }
}

@david-caro
Copy link
Contributor Author

It also requires adding a step/call in the restart to restore it.

david-caro added a commit to david-caro/invenio-workflows-ui that referenced this issue Dec 21, 2017
This partially addresses
    inspirehep/inspire-next#3069

Signed-off-by: David Caro <david@dcaro.es>
david-caro added a commit to david-caro/inspirehep-search-js that referenced this issue Dec 21, 2017
This partially addresses
    inspirehep/inspire-next#3069

Signed-off-by: David Caro <david@dcaro.es>
@david-caro david-caro removed their assignment Apr 2, 2020
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

No branches or pull requests

2 participants