STCOR-1027 Use GET mod-settings /locale API to get tenant language & locale settings#1691
STCOR-1027 Use GET mod-settings /locale API to get tenant language & locale settings#1691BogdanDenis wants to merge 4 commits intomainfrom
/locale API to get tenant language & locale settings#1691Conversation
…& locale settings
Bigtest Unit Test Results 1 files ± 0 1 suites ±0 0s ⏱️ -6s Results for commit 856a793. ± Comparison against base commit 5887b96. This pull request removes 152 and adds 2 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Jest Unit Test Results 1 files ± 0 84 suites +1 1m 42s ⏱️ ±0s Results for commit 856a793. ± Comparison against base commit 5887b96. This pull request removes 9 and adds 20 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
zburke
left a comment
There was a problem hiding this comment.
@BogdanDenis, I don't think we should remove the calls to /configuration/entries as described under "Approach". That feels like a breaking change, even if we're not changing the okapiInterfaces at all. Do you see it this way?
I realize these loginServices functions are a rat's nest. I think they are all internal to stripes-core though (they are exported here, but not exported publicly from the package from the root index.js, so if we need to do a little more refactoring in order to pass in stripes so we can access stripes.hasInterface(), let's do that.
And if I've misunderstood what is happening here, my apologies. A lot of code is moving around and it's a bit hard to keep track of.
|
@zburke I agree that it's a breaking change - I should have marked it as such. But leaving the calls to But it really is a bit of a mess... we used |
|
|
@BogdanDenis, 100% it's a mess, no debate there. TLDR, locale data turned out to be the tip of an iceberg of permissions issues for data stored at I understand that keeping the ** Sunflower was a major release, and we anticipate Umbrellaleaf will be too, if we can get our act together and wrap up React v19 compatibility work. If Trillium becomes a major release, that puts pressure on us to avoid breaks in Umbrellaleaf, delaying that update even further into the future. Of course, it's possible to provide React v18 and v19 compatibility simultaneously (we avoid deprecated features from v18 AND we avoid new feature from v19) but this is more work with less benefit. So, yeah, it's a mess. |



Description
Context: With the Trillium release, Language & locale settings were moved from mod-configuration to the /locale API of mod-settings. These settings are tenant level (a user can also set user preference for language at some other API).
Also this work is required for mod-configuration deprecation.
Approach
/localeAPI./settings/entriesand/configurations/entries/configurations/entries/settings/entriesIssues
STCOR-1027
Related PRs
folio-org/ui-tenant-settings#486