mintproject / mint-ui-lit

New version of the MINT-UI
Apache License 2.0
4 stars 0 forks source link

[Model Catalog Ui] When deleting a setup, the link between config and setup is not deleted #372

Closed dgarijo closed 4 years ago

dgarijo commented 4 years ago

Describe the bug I created and deleted setups, but the link between config and setup has not been deleted. As a result, it still shows empty: image

I was logged in as texas user.

hvarg commented 4 years ago

The API was doing this part, I've noticed that the "deleted" setups also have rdf:type so is probably a problem with the API.

Example: https://rdfexplorer.mint.isi.edu/page/okn/i/mint/7d766bf1-5dc5-4b53-9e0f-10d15e5de0a5

dgarijo commented 4 years ago

The problem is the link between the config and setup, because that makes it show up in the UI. What you say is also true. In any case, we need to address this problems.

mosoriob commented 4 years ago

Unable to reproduce

I created a new setup

image
+ curl -X DELETE http://localhost:8080/v1.4.0/modelconfigurationsetups/212bec9d-eb07-4bf7-aea1-aff869716f17 -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjb20uemFsYW5kby5jb25uZXhpb24iLCJpYXQiOjE1ODcwNjIxNTYsImV4cCI6MTY0NzA2MjE1Niwic3ViIjoidGV4YXNAaXNpLmVkdSJ9.4cOPzTLrMUKU9pXgB9O-x97uGOk_k7QGcUFj9QpJTuE' -H 'accept: */*' -H 'Content-Type: application/json'
"Deleted"
dgarijo commented 4 years ago

I have experienced this logged in Texas user. Could that be the issue?

mosoriob commented 4 years ago

I'm using the Texas user.

dgarijo commented 4 years ago

I have added and deleted 2 setups on each user, after editing several times. In both cases, they were deleted successfully. I will close the issue since I cannot reproduce it anymore.