Skip to content

Don't show retracted datasets #115

Description

@christoph-maurer

https://www.solarbuildingenvelopes.com/data/hygrothermal contains 3 hygrothermal datasets which are outdated. The current datasets are provided by https://www.buildingenvelopedata-dev.c3rro.com/graphql . When I try to delete the dataset, I get the error that I can only retract the dataset. When I retract it with

mutation {
  retract01: retractData(
    input: {
      dataId: "8ba9cd57-aef8-45a3-8d61-85d81d5a7c32"
      dataKind: HYGROTHERMAL_DATA
    }
  ) {
    errors {
      code
      message
      path
    }
  }
}

I can still see it in https://www.buildingenvelopedata.org/data/hygrothermal , even when I'm logged out. When I try to delete it now with

mutation delete01 {
  deleteData(
    input: {
      dataId: "61ed36b9-0cd9-4bb1-bbbc-cec3960eae6f"
      dataKind: HYGROTHERMAL_DATA
    }
  ) {
    errors {
      code
      message
      path
    }
  }
}

I get

{
  "data": {
    "deleteData": {
      "errors": [
        {
          "code": "NOT_PENDING",
          "message": "The publishing state is not pending but RETRACTED. If it is published, you may retract the data set. A retracted data set does not show up in queries for all data.",
          "path": []
        }
      ]
    }
  }
}

Options:

  • Hide retracted datasets. The best solution. Hide the 3 hygrothermal datasets and the two optical datasets from Janina.
  • Delete the resources first, then try to delete the dataset.
  • Allow to delete retracted datasets. Do we want that?
  • Change the label from retracted to pending with psql. Then delete the pending datasets. Dirty workaround.

Metadata

Metadata

Labels

ISEFraunhofer Institute for Solar Energy Systems ISEbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions