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

Order return dict for correct result parsing in Vue.JS #369

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

drscream
Copy link
Contributor

In RunCard.vue#L376 it's expected that the first part of the return value is always the jid so the links are generated correctly. But the dict isn't ordered so if you've more minions it could happen that the jid is the last entry in the dict.

This code sort the dict in reverse order so jid is always the first part of the dict.

Thomas Merkel and others added 3 commits August 10, 2021 12:05
Because the return html code is parsed by Vue.JS to display it for
example at the run result page it's required to have always the same
order.

Vue.JS requires the latest element to be the jid (job id) so the links
are created with the correct value.
@mattLLVW
Copy link
Contributor

could you please provide an example for when this issue occurs?
Cheers.

@drscream
Copy link
Contributor Author

Hello @mattLLVW ,

I need to admit that I could not reproduce the issue at the moment. It was probably based on the number of minions and how fast a return is. The easiest solution was a sort be be 100% sure how the return will look like.

best regards,
Thomas

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.

None yet

2 participants