Skip to content

Conversation

@josenavas
Copy link
Contributor

:finnadie::finnadie::finnadie::finnadie::finnadie::finnadie::finnadie::finnadie:

This PR offloads the sample template create/update/delete and the prep template udpate from the webserver. The create/delete prep template are a bit more tricky given that those operations perform bigger changes in the interface, so I open an issue to keep track of it: #1719

Some of the fun stuff that starts happening here. The system becomes now way more distributed, as some of the processing is happening through moi and the interface is just checking it is done or not. It becomes really interesting at the time of testing the handlers, since they just submit and return right away, which means that we can't reset the DB at this point until the process running the job is done. Thus, I needed to put some waiting code on those tests.

In order to make the interface more responsive to this changes, we will need to introduce websockets, but I don't think it is blocking ATM.

alert_type = ''
alert_msg = ''

alert_msg = alert_msg.replace('\n', '</br>')
Copy link
Member

Choose a reason for hiding this comment

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

Do we really need this? Perhaps it will make more sense to have it in line 143.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

move to 142

@antgonza
Copy link
Member

A few comments.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 82.977% when pulling 0ce37cc on josenavas:artifact-study-pages-offload-templates into 588f63c on biocore:artifact-study-pages.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 82.973% when pulling 0ce37cc on josenavas:artifact-study-pages-offload-templates into 588f63c on biocore:artifact-study-pages.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 82.973% when pulling 0ce37cc on josenavas:artifact-study-pages-offload-templates into 588f63c on biocore:artifact-study-pages.

acceptable, so this wrapper makes sure that the job_id
is returned only once the job has already been submitted.
From previous tests, the while loop is executed ~2 times, so there is no
Copy link
Contributor

Choose a reason for hiding this comment

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

no -> not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ElDeveloper
Copy link
Contributor

Looks good!

@antgonza antgonza merged commit 2ca44cc into qiita-spots:artifact-study-pages Mar 30, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 82.973% when pulling 5cc2d7a on josenavas:artifact-study-pages-offload-templates into 588f63c on biocore:artifact-study-pages.

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.

4 participants