OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

missing hover text on "Access to source code", Github Org can not be set #1402

Closed maurerle closed 11 months ago

maurerle commented 11 months ago

Description of the issue

When hovering above "Access to source code" when adding a new model to the OEP, the hover text says: image

which is copy-pastery from the hint below (Data available).

Furthermore we now have a GithubOrg here which does not help a lot:

image

Steps to Reproduce

https://openenergy-platform.org/factsheets/models/100/

Ideas of solution

Type hint should be useful and Github Org should be available as field when adding a new model

Context and Environment

Workflow checklist

jh-RLI commented 11 months ago

The GitHub organization works for me. What may not be clear is that you need to provide the link to your GitHub repository in the Access to source field. The link should be something like this: https://github.com/OpenEnergyPlatform/oeplatform. This is not very user friendly.

maurerle commented 11 months ago

I think that is acceptable. But it does not work somehow

In these cases here: https://openenergy-platform.org/factsheets/models/190/ https://openenergy-platform.org/factsheets/models/244/ or https://openenergy-platform.org/factsheets/models/289/ or without a trailing / https://openenergy-platform.org/factsheets/models/291/

Its harder if a branch is given too, but it should also be possible to extract the first word after github.com/ until the next slash / from that ;)

jh-RLI commented 11 months ago

I just tested it locally and it is working. Our hosting provider is quite restrictive, i assume they are blocking all outside API requests :/

grafik