Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Works around phenogrid's biolink backend sniffing #476

Merged
merged 2 commits into from
Dec 17, 2021

Conversation

falquaddoomi
Copy link
Collaborator

The phenogrid component checks if the backend API matches a fixed set of hostnames to determine if it's a biolink API or not. Unfortunately, this breaks the component while we're using a non-standard backend API URL.

This PR updates phenogrid to 1.5.3, which adds the forceBiolink flag to phenogrid's constructor. PhenoGrid.vue sets it to true, so that the component always works against the biolink API regardless of the backend API URL.

…grid's constructor. PhenoGrid.vue sets it to true so that the component always works against the biolink API.
@netlify
Copy link

netlify bot commented Dec 16, 2021

✔️ Deploy Preview for monarch-ui ready!

🔨 Explore the source changes: 971348a

🔍 Inspect the deploy log: https://app.netlify.com/sites/monarch-ui/deploys/61bbd9fe8b91540007b9ff9b

😎 Browse the preview: https://deploy-preview-476--monarch-ui.netlify.app/

Copy link
Contributor

@vincerubinetti vincerubinetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good.

But it looks like you published the new phenogrid to npm but haven't pushed it to the repo yet?

https://www.npmjs.com/package/phenogrid (1.5.3 published 1 hour ago)
https://github.com/monarch-initiative/phenogrid (last commit on master aug 12, no recent branches)

I'd just like to take a look at the changes to phenogrid somehow.

@falquaddoomi falquaddoomi marked this pull request as draft December 16, 2021 20:54
@falquaddoomi
Copy link
Collaborator Author

Right, sorry about that; I'd updated my fork, but not the parent repo. It should be updated now.

Also, I don't know why this didn't show up when I was testing locally, but there's something going on with phenogrid/jquery-ui that's throwing an error and causing the component not to render correctly. I've changed the PR to a draft until I sort it out; I'll switch it back once it's ready.

@falquaddoomi falquaddoomi marked this pull request as ready for review December 17, 2021 00:30
@falquaddoomi
Copy link
Collaborator Author

Turns out that by chance I had an older version of jquery-ui (v1.12.1) installed in my phenogrid project folder, but apparently later versions (e.g. 1.13.0) are for some reason incompatible with the component. Pinning the version to exactly 1.12.1 seems to fix it.

@falquaddoomi falquaddoomi merged commit f6fc357 into master Dec 17, 2021
@falquaddoomi falquaddoomi deleted the phenogrid-1.5.3-upgrade branch December 17, 2021 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants