Skip to content

UICHKIN-504: Fix link for navigate to New Fee/Fine modal#719

Merged
Dmitriy-Litvinenko merged 1 commit intomasterfrom
UICHKIN-504
Feb 5, 2026
Merged

UICHKIN-504: Fix link for navigate to New Fee/Fine modal#719
Dmitriy-Litvinenko merged 1 commit intomasterfrom
UICHKIN-504

Conversation

@Dmitriy-Litvinenko
Copy link
Contributor

@Dmitriy-Litvinenko Dmitriy-Litvinenko commented Jan 28, 2026

Purpose

Fix link for navigate to New Fee/Fine modal

Refs

https://issues.folio.org/browse/UICHKIN-504

@github-actions
Copy link

github-actions bot commented Jan 28, 2026

Jest Unit Test Results

  1 files  ±0   19 suites  ±0   20s ⏱️ +2s
313 tests  - 1  313 ✅  - 1  0 💤 ±0  0 ❌ ±0 
317 runs   - 1  317 ✅  - 1  0 💤 ±0  0 ❌ ±0 

Results for commit cea68a2. ± Comparison against base commit 18ab8b0.

This pull request removes 1 test.
CheckIn Action menu When there is a loan on regular item should trigger get request to receive user information ‑ CheckIn Action menu When there is a loan on regular item should trigger get request to receive user information

♻️ This comment has been updated with latest results.

@OleksandrHladchenko1 OleksandrHladchenko1 requested a review from a team January 29, 2026 14:43
const patron = get(users, [0, 'patronGroup'], '');
const pg = (patronGroups.find(p => p.id === patron) || {}).group;
const path = `/users/view/${loan.userId}?filters=pg.${pg}&layer=charge&loan=${loan.id}`;
const path = `/users/${loan.userId}/charge/${loan.id}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

What caused this bug?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The logic is somewhat outdated:

  1. We're creating a link with parameters that aren't used anywhere.
  2. We're directing the link to the "charge" layer, although in this case it should point directly to the "charge".
  3. The "charge" layer is unstable.

const patron = get(users, [0, 'patronGroup'], '');
const pg = (patronGroups.find(p => p.id === patron) || {}).group;
const path = `/users/view/${loan.userId}?filters=pg.${pg}&layer=charge&loan=${loan.id}`;
const path = `/users/${loan.userId}/charge/${loan.id}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this condition https://github.com/folio-org/ui-users/blob/master/src/index.js#L69 be removed from ui-users?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't remember any places where this condition was used, but I can't guarantee that there aren't any.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

@Dmitriy-Litvinenko Dmitriy-Litvinenko merged commit a3b3d95 into master Feb 5, 2026
15 checks passed
@Dmitriy-Litvinenko Dmitriy-Litvinenko deleted the UICHKIN-504 branch February 5, 2026 17:00
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.

4 participants