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

[async-plugins-check] server-1248 #860

Merged
merged 7 commits into from
Mar 29, 2019
Merged

[async-plugins-check] server-1248 #860

merged 7 commits into from
Mar 29, 2019

Conversation

frknbasaran
Copy link
Member

  • added async plugins check mechanism to plugins plugin.

- added async plugins check mechanism to plugins plugin.
}
else {
common.returnOutput(params, 'Success');
common.returnMessage(params, 500, "failed");
Copy link
Contributor

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") {
Copy link
Contributor

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"];
Copy link
Contributor

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.
@Countly Countly deleted a comment Mar 7, 2019
@Countly Countly deleted a comment Mar 7, 2019
@Countly Countly deleted a comment Mar 7, 2019
@Countly Countly deleted a comment Mar 7, 2019
@Countly Countly deleted a comment Mar 7, 2019
@Countly Countly deleted a comment Mar 7, 2019
@Countly Countly deleted a comment Mar 7, 2019
- "not_enough_parameters" message change reverted.
- that case removed from frontend too.
@Countly Countly deleted a comment Mar 7, 2019
@Countly Countly deleted a comment Mar 7, 2019
- code refactored.
- added dynamic key=val to end of the check plugin request url.
@Countly Countly deleted a comment Mar 12, 2019
@Countly Countly deleted a comment Mar 12, 2019
@Countly Countly deleted a comment Mar 12, 2019
@Countly Countly deleted a comment Mar 12, 2019
@Countly Countly deleted a comment Mar 12, 2019
@ar2rsawseen ar2rsawseen merged commit 3f1654a into Countly:next Mar 29, 2019
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.

3 participants