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

Last-minute pre-release fixes #375

Merged
21 commits merged into from
Apr 1, 2020
Merged

Last-minute pre-release fixes #375

21 commits merged into from
Apr 1, 2020

Conversation

ghost
Copy link

@ghost ghost commented Mar 31, 2020

Issue #, if available:

Description of changes:

See the commits for details. With a few exceptions, they're all atomic.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

amazon-meaisiah added 16 commits March 30, 2020 22:17
Also, remove some useless timeouts.
This does five things:

1. Ensure all lambda requests wait for the auth token to be set before
   continuing. All the backend methods currently require authorization
   to execute, but none of the front-end calls were waiting on that.
2. I previously changed `stage` to `apiStage`, and this caused a lot of
   breakage. The lack of clear types only made this more difficult, as
   it was consistently not clear at a glance what of the 3-ish different
   representations APIs have at different places within the app (both in
   front end, backend, and in the catalog). This fixes that in all
   places.
3. Consume errors from the request as a *blob* and not a *JSON object*.
4. Move the `initApiGatewayClient` in `init` to the `else`, as the auth
   flow for when a valid JWT already exists also automatically attempts
   re-authentication from that token, and so it's unnecessary to always
   initialize with a blank client. (Plus, blank clients are almost never
   actually used in practice anyways.)
5. SwaggerUI is now only loaded whenever the element is guaranteed to
   exist. This was mainly a step in fault tolerance, as it was throwing
   due to other bugs and was making them a little more difficult to
   troubleshoot.
amazon-meaisiah added 5 commits March 30, 2020 22:33
The comment was only on one of them, and now that there's a lot more of
them, the comment and its location needed to be updated to better
reflect that.
Also remove several duplicate packages in `dev-portal/`.
@ghost ghost changed the base branch from master to staging March 31, 2020 22:33
@ghost ghost changed the base branch from staging to master March 31, 2020 22:33
@ghost ghost changed the base branch from master to staging April 1, 2020 03:39
@ghost ghost merged commit a9034db into staging Apr 1, 2020
@ghost ghost deleted the meaisiah-last-minute branch April 1, 2020 03:40
@ghost ghost mentioned this pull request Jun 26, 2020
This pull request was closed.
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.

2 participants