Closed eloiferrer closed 9 months ago
Isn't there some variable that saves the portal.mardi4nfdi.de url and that can be accessed from Wikibase.php? It somehow doesn't look right to have this hard-coded urls in there.
I think this is the variable to be set. Maybe there is something like concept URI from the linkedwiki extension, but I don't know.
Ok. Since we will have now a PORTAL_HOST variable with portal.mardi4nfdi.de as value, would it be ok if I change all the instances of portal.mardi4nfdi.${TLD} in docker-compose.yml to just ${PORTAL_HOST}? e.g. quickstatements.portal.mardi4nfdi.${TLD} to quickstatements.${PORTAL_HOST} and so on.
@physikerwelt I changed the logic again, so maybe just take a final look, before I merge it.
I don't see if that is really the case here. This implementation does not change the current workflow we have. We are already changing the WIKIBASE_HOST and PORT for development https://github.com/MaRDI4NFDI/portal-compose/blob/f5ef817eaebb8aeda59447c23f8051ee77608a8c/README.md?plain=1#L21. So no changes in the current dev environment are needed.
I don't see if that is really the case here. This implementation does not change the current workflow we have.
Yes, I fully agree. So it is as bad as it was before:-)
We are already changing the WIKIBASE_HOST and PORT for development
At least when trying to get quick statements to run, I found the combination of hosts and ports quite confusing.
For example, https://quickstatements.portal.mardi4nfdi.${TLD}
points to nowhere in local dev.
This PR, in particular,
adds further technical debts to handle both cases, dev, and prod. Instead, I suggest it would be easier to guide developers to install a custom DNS like described here https://github.com/bnfinet/docker-dns
@eloiferrer what do you think?
I checked https://staging.swmath.org/wiki/Mathoid and saw that the link to the MaRDI portal item is currently missing, but the other direction from https://portal.mardi4nfdi.de/wiki/Item:Q38023 works. So that needs to be fixed anyhow. So I think it would be a good time to merge this now.
MaRDI Pull Request
Changes:
Instructions for PR review:
Checklist for this PR: