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

Open Daniel-Mietchen opened 3 weeks ago

Daniel-Mietchen commented 3 weeks 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 3 weeks 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 3 weeks 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 3 weeks 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 3 weeks 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 3 weeks ago

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

physikerwelt commented 3 weeks ago

works now

Daniel-Mietchen commented 2 weeks ago

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

eloiferrer commented 2 weeks 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 2 weeks 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.