AlexsLemonade / refinebio-frontend

Frontend app for refine.bio
https://www.refine.bio
Other
7 stars 7 forks source link

Added alternate accession codes to experiment pages #904

Closed BEW111 closed 4 years ago

BEW111 commented 4 years ago

Issue Number

#871

Purpose/Implementation Notes

The alternate accession code for an experiment is displayed on the search results page and experiment detail page. There's only one alternate accession code per experiment right now so the code is dependent on that fact. Also I put a function getUrlForCode in helpers.js but I can always move it if there's a better place to have that.

Types of changes

What types of changes does your code introduce? Put an x in the boxes that apply

Functional tests

Since this is dependent on the Experiment Detail endpoint having the alternate_accession_code field, I've merged that change into the backend but tested this change using the locally hosted API, which works for the experiments on there.

Checklist

Put an x in the boxes that apply.