TheJacksonLaboratory / PhenopacketLab

An Angular/Springboot web application for the loading, editing, saving of data that follows the Phenopacket Schema
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

IDs not saved when I used stepper to go back and enter them #236

Closed BethSundberg closed 1 year ago

BethSundberg commented 1 year ago

I tried creating a phenopacket without entering the phenopacket ID and individual ID. The validator will not let me create a phenopacket until I used the stepper to go back and enter this information. However, the values I entered were not saved.

Image

BethSundberg commented 1 year ago

If I try to use the validator from the "list" view it gives a new error.

Image

BethSundberg commented 1 year ago

@belkassaby The problem gets worse. I created a phenopacket by using the next button. It has saved the two ids properly with no validation errors. But when I go to the list, it is looking odd. The IDs are not showing up and if I validate again I get that error shown above.

Image

But the IDs do exist and I can see them if I click on the ID.

Image

I think this phenopacket is not listed, it is instead showing something else that is blank? See the turquoise x.

Image

BethSundberg commented 1 year ago

@belkassaby Here is a clue to what is happening. I tried this on the dev site. I created a phenopacket using the next buttons to get to the last page. It confirmed and saved, showing it fine on the list. Then I clicked on the validator button on the list page. No problems, but when it returned me to the list page, the ID information is gone.

Image

BethSundberg commented 1 year ago

Also the delete button is not working. I clicked it and it says it has been deleted, but the list still looks the same.

belkassaby commented 1 year ago

After trying a few times, I dont see the first error you pointed out: I can create the phenopacket correctly .

Image Image Image

Then trying to delete the file works fine

Image Image

But when trying to validate the file, that's when there is the bug, and then deleting doesnt work anymore too:

Image Image Image

belkassaby commented 1 year ago

For the ID creation, can you try again after having cleaned up your cache? and confirm the bug I found when clicking on the validation button?

BethSundberg commented 1 year ago

All of these have been fixed on the Dev site.