-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove custom project 403 error handlers #169
Conversation
1. Uploading a public app to a non-developer accountSuggestion If there is not link to docs. 2. Uploading a private app to a developer accountSuggestion 3. Uploading a private app project to a personal account when not ungated for the crm dev betaSuggestion 4. Uploading a public app project to a developer account when not ungated for the public app betaSuggestion 5. Uploading a private app project to a personal account when the PAK has not been granted the proper scopesQuestion |
Left some comments in internal slack, but overall looks good. I do want to discuss a few of these errors though as they combine messages from different BE systems. |
Description and Context
We don't need this custom error handling anymore. In some cases (i'll explain below) the errors that we're throwing are actually incorrect. We had added these custom overrides a while ago because the errors we were getting from the BE were not containing enough useful information. The gating and scoping errors returned by the BE are much more informative now, so we don't need these overrides anymore. Now we will use our default error handling logic provided by the api utils in this library.
We may want to have our designers take a look at the new errors just to make sure we're happy with them.
Screenshots
1. Uploading a public app to a non-developer account
Before
NOTE: This is actually incorrect. This error is referencing the private app public beta.
After
2. Uploading a private app to a developer account
Before
After
NOTE: There is no change in behavior here. This is because the error returned by the BE does not have a
category
ofMISSING_SCOPES
orGATED
, which our overrides rely on.3. Uploading a private app project to a personal account when not ungated for the crm dev beta
Before
After
4. Uploading a public app project to a developer account when not ungated for the public app beta
Before
NOTE: This is actually incorrect. This error is referencing the private app public beta.
After
5. Uploading a private app project to a personal account when the PAK has not been granted the proper scopes
Before
After
TODO
Who to Notify
cc/ @m-roll