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

Link from datatable to related scenario bundle #1588

Closed jh-RLI closed 4 months ago

jh-RLI commented 4 months ago

Summary of the discussion

This PR reorganises some core functionalities of the factsheet app. For the time being, some duplicated functions are also introduced, which can be removed from views.py later. The structure of the oekg connection is separated from views.py and a new module called oekg is introduced.

The oekg module also contains a filters.py module that implements the relevant functions to obtain the corresponding scenarios for each table. In this way, we can retrieve all scenarios for each table listed as either an input or output dataset.

Type of change (CHANGELOG.md)

Added

Add "Related Scenarios" tab to the data table details page: New functionality to retrieve all scenarios (from scenario bundles) where the current table is list as input or output dataset #1588

Workflow checklist

Automation

Part of #1305

PR-Assignee

Reviewer

jh-RLI commented 4 months ago

Basic but working implementation: image