-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[async-plugins-check] server-1248 #860
Conversation
frknbasaran
commented
Mar 6, 2019
- added async plugins check mechanism to plugins plugin.
- added async plugins check mechanism to plugins plugin.
plugins/plugins/api/api.js
Outdated
} | ||
else { | ||
common.returnOutput(params, 'Success'); | ||
common.returnMessage(params, 500, "failed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think a (failed) response will be sent from here because you have already sent the (started) message in line no. 27
msg.info = jQuery.i18n.map["plugins.retry"]; | ||
msg.sticky = true; | ||
msg.type = "error"; | ||
else if (res.result === "error") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be res.result == "failed" since nowhere you are returning error message from the server.
loader.hide(); | ||
msg.title = jQuery.i18n.map["plugins.error"]; | ||
msg.message = res; | ||
msg.info = jQuery.i18n.map["plugins.retry"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This case is not covered, with the retry message.
- state data type changed. ({"_id":"busy"}) - added failed state type. - multiple response problem resolved. - uncovered cases covered on frontend.
- "not_enough_parameters" message change reverted. - that case removed from frontend too.
- code refactored. - added dynamic key=val to end of the check plugin request url.