web4bio / webgen

WebGen Vertically Integrated Project
https://web4bio.github.io/webgen/main/html/
11 stars 26 forks source link

update url to gene pathway list json file #364

Closed kaczmarj closed 2 years ago

kaczmarj commented 2 years ago

from #363

NOTE: The URL in the fetch command needs to be updated to use the github.io link instead of the current method

let getValidPathwaysList = async function () {
  //Note the specification of the 'preselectedGenes' branch name.
  //genePathwaysList.json needs to be uploaded to the branch running on the github.io link
  let validPathwaysList = await fetch(
    "https://raw.githubusercontent.com/web4bio/webgen/development/main/genePathwaysList.json"
  ).then((response) => response.json());
  validPathwaysList = Object.keys(validPathwaysList);
  localStorage.setItem("genePathways", validPathwaysList);
  return await validPathwaysList;
};
enemeth19 commented 2 years ago

to use the github.io link

Which link is this?

kaczmarj commented 2 years ago

https://web4bio.github.io/webgen/main/genePathwaysList.json

This ensures that webgen is using the same version of the file as the version of the app. Because the app uses the master branch, but currently this json is pulled from the develop branch.

Best, Jakub

On Jul 29, 2022, at 9:28 PM, Erika Nemeth @.***> wrote:

 to use the github.io link

Which link is this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

enemeth19 commented 2 years ago

Great - I understand. Thank you!