Skip to content

Comments

FIREFLY-1791: Fix username display issue#1837

Merged
loitly merged 1 commit intorc-2025.4from
FIREFLY-1791-erroneous-username
Sep 10, 2025
Merged

FIREFLY-1791: Fix username display issue#1837
loitly merged 1 commit intorc-2025.4from
FIREFLY-1791-erroneous-username

Conversation

@loitly
Copy link
Contributor

@loitly loitly commented Sep 5, 2025

Ticket: https://jira.ipac.caltech.edu/browse/FIREFLY-1791

Additional changes:
https://github.com/IPAC-SW/irsa-ife/pull/437
lsst/suit#73

The changes ensure more reliable handling of user identity and reduce unnecessary service calls.
FYI: Most of the file changes are due to the HttpServices refactor, so the actual scope of changes is smaller than it appears.

Changes

  • Refactored RequestOwner to minimize stale user info.
  • Added client notifications on changes and implemented client-side logging for easier debugging.
  • Added credential caching in JOSSOAdapter to avoid excessive calls to the JOSSO identity service.
  • Refactored HttpServiceInput and HttpServices to always include credentials when required.
  • Removed deprecated methods from Logger.

Testing:
Firefly: https://fireflydev.ipac.caltech.edu/firefly-1791-erroneous-username/firefly/
Expected: No visual changes. Perform a regression test to confirm normal behavior.

SPHEREx: https://firefly-1791-erroneous-username.irsakudev.ipac.caltech.edu/applications/spherex/

  • Log in.
  • Open DevTools console and enter: firefly.debugTags = 'AppData'
    • This sets the logger level to debug and filters logs to only show AppData.
  • Observe: Updates from the server with the current user info should appear.
  • Log out.
  • Any subsequent interaction will update the user info to Guest.

@loitly loitly added this to the 2025.5 milestone Sep 5, 2025
@loitly loitly self-assigned this Sep 5, 2025
@loitly loitly added the bug label Sep 5, 2025
@loitly loitly requested a review from robyww September 5, 2025 21:02
@loitly loitly force-pushed the FIREFLY-1791-erroneous-username branch 3 times, most recently from 4872531 to 4dacfc3 Compare September 8, 2025 21:33
@loitly loitly changed the base branch from dev to rc-2025.4 September 9, 2025 16:04
@loitly loitly modified the milestones: 2025.5, 2025.4 Sep 9, 2025
@loitly loitly changed the base branch from rc-2025.4 to dev September 9, 2025 16:06
@loitly loitly changed the base branch from dev to rc-2025.4 September 9, 2025 21:03
@loitly loitly changed the base branch from rc-2025.4 to dev September 9, 2025 21:05
Copy link
Contributor

@robyww robyww left a comment

Choose a reason for hiding this comment

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

looks good. @loitly and I talked about this going into rc-2025.4. He is either going to make a new PR or change this one.

- Refactor RequestOwner to minimize stale user info
- Notify client on changes and add client-side logging for debugging
- Refactor HttpServiceInput/HttpServices to always include credentials where needed
- Add credential caching to JOSSOAdapter to reduce calls to JOSSO identity service
- Remove deprecated methods from Logger
- Do not publish SELF events
@loitly loitly force-pushed the FIREFLY-1791-erroneous-username branch from 4dacfc3 to 5cf13f0 Compare September 10, 2025 18:32
@loitly loitly changed the base branch from dev to rc-2025.4 September 10, 2025 18:33
@loitly loitly merged commit 0ef2ac1 into rc-2025.4 Sep 10, 2025
@loitly loitly deleted the FIREFLY-1791-erroneous-username branch September 10, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants