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

STCOR-912 spread session, _self data when resuming session #1568

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Conversation

zburke
Copy link
Member

@zburke zburke commented Nov 27, 2024

Spread together existing session data with the response data from the _self endpoint. The latter may contain updated information such as new permissions, but it may also be sparsely populated, e.g. if the user has not selected a default service point but the active service point has been saved to the session.

We take the union of the data, with the _self data overwriting matching values. Think of it like a bitwise-or.

Refs STCOR-912

Spread together existing session data with the response data from the
`_self` endpoint. The latter may contain updated information such as new
permissions, but it may also be sparsely populated, e.g. if the user has
not selected a default service point but the active service point has
been saved to the session.

We take the union of the data, with the `_self` data overwriting
matching values. Think of it like a bitwise-or.

Refs STCOR-912
@zburke zburke requested review from JohnC-80 and a team November 27, 2024 15:53
Copy link

github-actions bot commented Nov 27, 2024

Bigtest Unit Test Results

192 tests  ±0   187 ✅ ±0   6s ⏱️ ±0s
  1 suites ±0     5 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit a3dd57a. ± Comparison against base commit 1189bd5.

This pull request removes 5 and adds 3 tests. Note that renamed tests count towards both.
      equal to check email label in english translation
      equal to check email precautions label in english translation
      equal to sent email precautions label in english translation
Chrome_131_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the header with an appropriate text content
Chrome_131_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the paragraph with an appropriate text content
Chrome_131_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the header with an appropriate text content
      equal to check email label in english translation
Chrome_131_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the paragraph with an appropriate text content
      equal to check email precautions label in english translation
Chrome_131_0_0_0_(Linux_x86_64).Forgot username/password status test check email status page tests ‑ Forgot username/password status test check email status page tests should have the paragraph with an appropriate text content
      equal to sent email precautions label in english translation

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2024

Jest Unit Test Results

  1 files  ±0   55 suites  ±0   1m 32s ⏱️ +2s
349 tests ±0  349 ✅ ±0  0 💤 ±0  0 ❌ ±0 
352 runs  ±0  352 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit a3dd57a. ± Comparison against base commit 1189bd5.

♻️ This comment has been updated with latest results.

@Dmytro-Melnyshyn Dmytro-Melnyshyn requested a review from a team November 28, 2024 07:20
Copy link

sonarqubecloud bot commented Dec 2, 2024

@zburke zburke merged commit 4868456 into master Dec 2, 2024
16 checks passed
@zburke zburke deleted the STCOR-912 branch December 2, 2024 18:42
zburke added a commit that referenced this pull request Dec 2, 2024
Spread together existing session data with the response data from the
`_self` endpoint. The latter may contain updated information such as new
permissions, but it may also be sparsely populated, e.g. if the user has
not selected a default service point but the active service point has
been saved to the session.

We take the union of the data, with the `_self` data overwriting
matching values. Think of it like a bitwise-or.

Refs [STCOR-912](https://folio-org.atlassian.net/browse/STCOR-912)

(cherry picked from commit 4868456)
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.

3 participants