Skip to content

Disable DUOS access request option for AnVIL datasets #4855

@MillenniumFalconMechanic

Description

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions