NCIOCPL / drug-dictionary-app

NCI Drug Dictionary Application
2 stars 0 forks source link

Only display CTL link if trials exist #17

Open VictoriaSunNIH opened 4 years ago

VictoriaSunNIH commented 4 years ago

For migration only if there is time. Needs client approval!

Issue description

Currently, in drug dictionary terms - the CTL link always appears as a link to the dynamic trials page. It would be nice to change this logic to check if there are trials, and then only display this link (on the term page) only when trials exist for the term.

ESTIMATE XXX

What's the expected change?

What's the current functionality?

What's the updated acceptance criteria?

Scenario: CTS Link appears because API has associated trials
 Given user navigates to / URL and enters "bevacizumab" as search term
    When user clicks search
    Then the term is returned
    When user clicks on the term, user is taken to the term page
      And there is a link to clinical trials on the term page to /about-cancer/treatment/clinical-trials/intervention/C2039
amydugan commented 4 years ago

Per Lynn/Kevin/Fedora 8/26/2020: This change request will be prioritized post-migration.