-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Social | Restore must_reauth as connection status (#40946)
* Add "must_reauth" to status in REST schema * Restore the UI changes to consider must_reauth status * Add changelog * Don't disable connections with must_reauth status must_reauth means that the connection will break soon, but it still works. We'll display an appropriate notice. --------- Co-authored-by: Paul Bunkham <[email protected]>
- Loading branch information
1 parent
6b80d99
commit b1f7eb4
Showing
7 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...es/publicize-components/changelog/update-social-add-back-must_reauth-as-connection-status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: changed | ||
|
||
Restored UI changes to support must_reauth status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ const state = { | |
external_handle: '@[email protected]', | ||
enabled: false, | ||
connection_id: '219876543', | ||
status: 'ok', | ||
status: 'must_reauth', | ||
}, | ||
], | ||
}, | ||
|
@@ -90,7 +90,7 @@ describe( 'Social store selectors: connectionData', () => { | |
it( 'should return must reauth connections', () => { | ||
const mustReauthConnections = getMustReauthConnections( state ); | ||
expect( mustReauthConnections ).toEqual( [ | ||
state.connectionData.connections[ 1 ].service_name, | ||
state.connectionData.connections[ 2 ].service_name, | ||
] ); | ||
} ); | ||
} ); | ||
|
2 changes: 1 addition & 1 deletion
2
projects/js-packages/publicize-components/src/social-store/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ects/packages/publicize/changelog/update-social-add-back-must_reauth-as-connection-status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: added | ||
|
||
Added must_reauth as status in connection REST schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters