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

[CSM-458] Query postponeUpdate endpoint when postponing the update #485

Merged
merged 3 commits into from Sep 21, 2017

Conversation

flyingleafe
Copy link
Contributor

These changes should make Daedalus query postponeUpdate endpoint on postponing the update. The endpoint is introduced in input-output-hk/cardano-sl#1586. This is needed to avoid problem with postponing the update described in https://issues.serokell.io/issue/CSM-458?query=%23CSM%20-Resolved

@nikolaglumac
Copy link
Contributor

Reviewing this one now...

@@ -40,6 +41,7 @@ export default class NodeUpdateStore extends Store {
};

@action _postponeNodeUpdate = () => {
this.postponeUpdateRequest.execute();
Copy link
Member

Choose a reason for hiding this comment

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

We should probably add some basic error handling here! E.g

@action _postponeNodeUpdate = async () => {
  try {
    await this.postponeUpdateRequest.execute();
    this.isUpdatePostponed = true;
  } catch(error) {
    this.isUpdatePostponed = false;
  }

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed @DominikGuzei - the only part that worries me is the fact that we should add "submitting" state on postpone button AND handle error state in the UI as if this call fails we will not hide the update notification so the user should be noticed that the error happened...

Copy link
Member

Choose a reason for hiding this comment

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

Yeah definitely, the whole error handling logic needs to be fleshed out for the UI

@DominikGuzei DominikGuzei merged commit 041dfda into master Sep 21, 2017
@jmitchell jmitchell deleted the flyingleafe/csm458-postpone-update-endpoint branch May 4, 2018 01:02
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

4 participants