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

Downloading metadata via the Website is not consistent #1549

Closed jh-RLI closed 5 months ago

jh-RLI commented 5 months ago

Description of the issue

Currently we offer two download buttons:

  1. Via the table-detail pages in the meta information tab: image

  2. As part of the oemetaBuilder tool for creating/edeting oemetadata: image

The resulting json file is not consistent:

The problem occurs because:

Steps to Reproduce

tbd

Ideas of solution

In general, make sure that the metadata is always the same and complies with the oemetada specification for the version to which the metadata refers.

This could include an omi update or the inclusion of omi in the download function of the metaBuilder tool.

First, determine if omi is returning correct results.

Context and Environment

Workflow checklist

jh-RLI commented 5 months ago

There was a thing (I would call it a bug) in omi that intentionally removes these fields from context if they are null:

"fundingAgency": null,
"fundingAgencyLogo": null,