Skip to content

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

Open
drscream wants to merge 3 commits into
latenighttales:developfrom
drscream:fix/result-order-for-run
Open

Order return dict for correct result parsing in Vue.JS#369
drscream wants to merge 3 commits into
latenighttales:developfrom
drscream:fix/result-order-for-run

Conversation

@drscream

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@drscream

Copy link
Copy Markdown
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.

2 participants