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

Types: Add some more types to boot and some utils #1884

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

dmsnell
Copy link
Member

@dmsnell dmsnell commented Feb 6, 2020

Only real change should be some optional-chaining.
Discovered a bug in resetAuth that needs to be fixed outside of this branch.

Testing

Should be no real code changes, no functional or visual changes.

@dmsnell dmsnell requested a review from a team February 6, 2020 06:31
dmsnell added a commit that referenced this pull request Feb 6, 2020
Discovered via TypeScript in #1884

Previously when authorizing an account which yields no `access_token`
we have been attempting to reset the authorization state by dispatching
`resetAuth`. Unfortunately we haven't been dispatching the function
call but rather the function/action-creator itself leading to no
actionable dispatch.

In this patch we're fixing the call by calling `resetAuth()` which
then passes a real action to the dispatcher.

This should fix an unsurfaced but during invalid authentication flows.
@@ -66,6 +66,7 @@
"@types/redux": "3.6.0",
"@types/redux-localstorage": "1.0.8",
"@types/rimraf": "2.0.3",
"@types/valid-url": "1.0.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does this get used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@belcherj belcherj left a comment

Choose a reason for hiding this comment

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

Smerge it!

@dmsnell dmsnell force-pushed the types/type-boot-and-sanitize-html branch from 89ef1e9 to 0f8843e Compare February 10, 2020 19:20
dmsnell added a commit that referenced this pull request Feb 10, 2020
Discovered via TypeScript in #1884

Previously when authorizing an account which yields no `access_token`
we have been attempting to reset the authorization state by dispatching
`resetAuth`. Unfortunately we haven't been dispatching the function
call but rather the function/action-creator itself leading to no
actionable dispatch.

In this patch we're fixing the call by calling `resetAuth()` which
then passes a real action to the dispatcher.

This should fix an unsurfaced but during invalid authentication flows.
Only real change should be some optional-chaining.
Discovered a but in `resetAuth` that needs to be fixed outside of this branch.
@dmsnell dmsnell force-pushed the types/type-boot-and-sanitize-html branch from 0f8843e to 4faec62 Compare February 11, 2020 16:30
@dmsnell dmsnell merged commit c83d3fc into develop Feb 11, 2020
@dmsnell dmsnell deleted the types/type-boot-and-sanitize-html branch February 11, 2020 16:58
@dmsnell
Copy link
Member Author

dmsnell commented Feb 11, 2020

Testing in batch with other PRs merging today.

dmsnell added a commit that referenced this pull request Feb 11, 2020
Discovered via TypeScript in #1884

Previously when authorizing an account which yields no `access_token`
we have been attempting to reset the authorization state by dispatching
`resetAuth`. Unfortunately we haven't been dispatching the function
call but rather the function/action-creator itself leading to no
actionable dispatch.

In this patch we're fixing the call by calling `resetAuth()` which
then passes a real action to the dispatcher.

This should fix an unsurfaced but during invalid authentication flows.
dmsnell added a commit that referenced this pull request Feb 22, 2020
* Fix: Actually reset auth when authorizing without acess token

Discovered via TypeScript in #1884

Previously when authorizing an account which yields no `access_token`
we have been attempting to reset the authorization state by dispatching
`resetAuth`. Unfortunately we haven't been dispatching the function
call but rather the function/action-creator itself leading to no
actionable dispatch.

In this patch we're fixing the call by calling `resetAuth()` which
then passes a real action to the dispatcher.

This should fix an unsurfaced but during invalid authentication flows.

* Catch that other one too
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