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

UIDATIMP-1686: Replace _/proxy/tenants/${tenant}/modules request with stripes.discovery.modules object #1661

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

mariia-aloshyna
Copy link
Contributor

Purpose

While troubleshooting an issue in the Eureka-bugfest environment, we ran across a bit of code in ui-data-import that queries Okapi for the tenant’s currently-installed modules with a manifest like:
_/proxy/tenants/${tenant}/modules;
This same data is available on stripes at stripes.discovery.modules . The discovery process in Eureka is quite different than in legacy FOLIO, with different endpoints etc etc, but all that logic is consolidated within stripes-core at present. If we can leverage the discovery data attached to stripes instead of making a query, then we can keep it that way and avoid the need for Eureka-specific code to pollute ui-data-import.

Approach

  • Get rid of _/proxy/tenants/${tenant}/modules request in Match profiles and get data from stripes.discovery.modules object.

Refs

https://folio-org.atlassian.net/browse/UIDATIMP-1686

Screenshots

Copy link

github-actions bot commented Dec 4, 2024

Jest Unit Test Statistics

       1 files  ±0     225 suites  ±0   10m 57s ⏱️ -14s
1 256 tests ±0  1 251 ✔️ ±0  5 💤 ±0  0 ±0 
1 267 runs  ±0  1 262 ✔️ ±0  5 💤 ±0  0 ±0 

Results for commit ecc0be5. ± Comparison against base commit aab1593.

♻️ This comment has been updated with latest results.

Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

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

🎉 ❤️

@mariia-aloshyna mariia-aloshyna merged commit 9ae7e0b into master Dec 4, 2024
5 checks passed
@mariia-aloshyna mariia-aloshyna deleted the UIDATIMP-1686 branch December 4, 2024 19:36
mariia-aloshyna added a commit that referenced this pull request Dec 4, 2024
…pes.discovery.modules` object (#1661)

(cherry picked from commit 9ae7e0b)
mariia-aloshyna added a commit that referenced this pull request Dec 5, 2024
* UIDATIMP-1679: Allow central tenant to create action profile for Orders and Invoices (#1657)

(cherry picked from commit eb823c7)

* UIDATIMP-1686: Replace `_/proxy/tenants/${tenant}/modules` with `stripes.discovery.modules` object (#1661)

(cherry picked from commit 9ae7e0b)

* Release v8.0.3

---------

Co-authored-by: Oleksandr Hladchenko <[email protected]>
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