Summary
Disable the DUOS access request functionality on dataset detail pages while keeping the code in place for potential re-enablement.
Current Behavior
When a dataset has a duos_id, the "Request Access" button includes a DUOS option that links to https://duos.org/dataset/{duosId}. This is determined in getRequestAccessOptions() in app/components/Detail/components/AnVILCMG/components/RequestAccess/utils.ts (line 35) via a truthy check on duosId.
The dbGaP option should continue to work as before.
Desired Behavior
Short-circuit the DUOS check to always skip the DUOS option, without removing the underlying code. The simplest approach would be to add an early guard in getRequestAccessOptions() that skips the DUOS branch, e.g.:
// DUOS access requests temporarily disabled
// if (duosId) { ... }
Or add a constant flag:
const DUOS_ENABLED = false;
if (DUOS_ENABLED && duosId) { ... }
Files
app/components/Detail/components/AnVILCMG/components/RequestAccess/utils.ts — skip the if (duosId) branch
Summary
Disable the DUOS access request functionality on dataset detail pages while keeping the code in place for potential re-enablement.
Current Behavior
When a dataset has a
duos_id, the "Request Access" button includes a DUOS option that links tohttps://duos.org/dataset/{duosId}. This is determined ingetRequestAccessOptions()inapp/components/Detail/components/AnVILCMG/components/RequestAccess/utils.ts(line 35) via a truthy check onduosId.The dbGaP option should continue to work as before.
Desired Behavior
Short-circuit the DUOS check to always skip the DUOS option, without removing the underlying code. The simplest approach would be to add an early guard in
getRequestAccessOptions()that skips the DUOS branch, e.g.:Or add a constant flag:
Files
app/components/Detail/components/AnVILCMG/components/RequestAccess/utils.ts— skip theif (duosId)branch