MaRDI4NFDI / portal-compose

docker-composer repo for mardi
https://portal.mardi4nfdi.de
GNU General Public License v3.0
3 stars 1 forks source link

Enable tooltips in MaRDI Query Service #536

Closed Daniel-Mietchen closed 4 months ago

Daniel-Mietchen commented 6 months ago

New feature description in words:

When hovering over Wikibase identifiers in other instances, the user is given a tooltip displaying the corresponding label, e.g. as shown here: image

TODOS:

Considered Alternatives:

Checklist for this issue:

physikerwelt commented 6 months ago

It seems to be blocked due to wrong CORS headers.

Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf https://portal.mardi4nfdi.de/w/api.php?origin=*&action=wbsearchentities&format=json&limit=50&continue=0&language=de&uselang=de&search=P31&type=property. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt). Statuscode: 200.

physikerwelt commented 6 months ago

A quick workaround is to install (and enable https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/ ) At least this works for me.

@eloiferrer can you maybe look for a general solution?

eloiferrer commented 6 months ago

I think this is a problem with our docker configuration. At the beginning of mardi, I spent already some time trying to fix it but did not succeed. I will have a look again. Just for reference, the issue was also described here: https://github.com/MaRDI4NFDI/portal-compose/issues/35 https://phabricator.wikimedia.org/T299067

physikerwelt commented 6 months ago

Sorry, I wanted to reference this in a PR but not to close it. I am no deploying to staging for testing

physikerwelt commented 6 months ago

Now, it works on staging. I'll try to deploy it to production.

physikerwelt commented 6 months ago

works now

Daniel-Mietchen commented 5 months ago

@physikerwelt The problem has returned a few days ago - not sure what the trigger was.

eloiferrer commented 5 months ago

Not sure what is going on, just wanted to note that it works in staging https://query.staging.mardi4nfdi.org/ which in principle uses the same exact configuration

physikerwelt commented 5 months ago

In production, I see a 502 for https://query.portal.mardi4nfdi.de/proxy/wikibase/w/api.php?origin=*&action=query&meta=siteinfo&format=json&siprop=languages On staging, I see no examples (which were there before). I always used the cat example for testing.

eloiferrer commented 4 months ago

I fixed this a couple weeks ago but I was waiting for a new deployment to see if it would break. Since it is still working after the deployment from yesterday I consider this tentatively solved.