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

Functionality of the "Delete table" button for topics other than model_draft not clear #1542

Closed jh-RLI closed 2 weeks ago

jh-RLI commented 5 months ago

Description of the issue

It is currently not possible to delete tables that are in a topic other than model_draft. However, the "Delete" button is still visible.

Steps to Reproduce

1. 2. 3.

Ideas of solution

Determine whether a table can be deleted in other topics. What would the process look like. I assume that published data should not be so easy to delete.

As an alternative, i suggest showing an unpublish like functionality. We would need to establish a publishing guideline for how to proceed with requests to withdraw the data.

My opinion is that if data is published it should be always available if it is valid information in the context of the applied assumptions and version of the executed model code.

Context and Environment

Workflow checklist

jh-RLI commented 2 weeks ago

The Delete table button is only accessible if a table is in the model_draft theme. An unpublish button is visible on the Profile/Tables tab.

Perhaps we should redirect the user to the model_draft page if a table is no longer available after it has not been published?