-
Notifications
You must be signed in to change notification settings - Fork 212
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
Voting: avoid crashing when external app details are not loadable #1066
Conversation
This can happen when the external app's artifacts aren't loadable. In general we should prefer doing operations using the external app's address, as this is always available.
…e could not be loaded
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.
LGTM!
The importance of re-spec'ing the data structures involved with apps is becoming clearer, as it'll let us more clearly mark whether something is always going to be available or not from aragon.js.
Agreed, do you think it should happen in the background script?
address: appAddress, | ||
name, | ||
// If the app name was not loaded, use the app's address | ||
name: name || appAddress, |
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.
Wondering if we should use the shortened version here?
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.
Yes, let's do that! Done in ccb6e2b.
This will need to happen starting from |
…agon#1066) The external app details are not available when we can't load the the external app's artifacts. In general we should prefer doing operations using the external app's address, as this will always be available.
Things like an app's name come from IPFS, and may not be available all the time.
The importance of re-spec'ing the data structures involved with apps is becoming clearer, as it'll let us more clearly mark whether something is always going to be available or not from aragon.js.