Skip to content

fix: deeplinks to Proposal and Experiment#1665

Open
shivoomiess wants to merge 2 commits into
developfrom
SWAP-5680-deeplinks
Open

fix: deeplinks to Proposal and Experiment#1665
shivoomiess wants to merge 2 commits into
developfrom
SWAP-5680-deeplinks

Conversation

@shivoomiess

@shivoomiess shivoomiess commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Description

Implemented a fix for deeplinks to Proposal and Experiment in the frontend for the User Officer.

Motivation and Context

The change was required to fix the issue where deeplinks to Proposal and Experiment were not functioning as expected. This was breaking links from the Experiments page to Proposals that were not already loaded in the Proposals Table (due to pagination) on the ESS dev instance because it has much more data than a local dev environment.

Before this change, a Proposal or Experiment not already loaded in the relevant table rows did not open up the details modal if directly accessed from a link because the data was never fetched.

Changes

  1. In ExperimentsTable.tsx,
  • the experiment identifier in the URL is now parsed correctly to ensure that the correct experiment data is loaded when accessed via a deeplink.
  • A fallback mechanism is added to fetch experiment data by primary key if it is not found in the currently loaded page of results.
  1. In ProposalTableOfficer.tsx, similar changes are made to correctly parse the proposal identifier from the URL and fetch the proposal data. A fallback mechanism is also added here to fetch proposal data by primary key if it is not found in the current page of results.
  2. Both changes ensure that the correct data is loaded when accessed via deeplinks, improving the user experience.

How Has This Been Tested?

A dump of the Dev DB was taken today and we ensured that all Proposals were clickable and redirected to the correct Proposal View. For experiments, since there are currently no links on the frontend redirecting to a particular experiment, we tried to access an experiment's details using a deep link.

Fixes Jira Issue

https://jira.ess.eu//browse/SWAP-5680

Depends On

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@shivoomiess
shivoomiess requested a review from a team as a code owner July 22, 2026 13:04
@shivoomiess
shivoomiess requested review from ellen-wright and removed request for a team July 22, 2026 13:04
@shivoomiess shivoomiess changed the title fix: Deeplinks to Proposal and Experiment fix: deeplinks to Proposal and Experiment Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant