Open danwentworthart opened 2 years ago
Once this is fixed create a Selenium test.
I believe this issue relates to Oliver's observations about project-bleed when users try to work with multiple tabs open.
Is this fixed now?
This is progressed forward, but not fixed. I was able to eliminate project duplication, but our features are in the way. The fact that we want the download page to serve two contexts:
means that the logic I wrote is interpreting the old build pUUID in the db as an indication that it was previously built. But, I am currently seeing if there is a way I can detect this pattern and get the behavior we want.
If my proposal of combining the Options/Downloads page is ever considered worth doing, that would resolve this. A browser back button click would go back to the index page of whichever tool was used, which I think is more appropriate.
I did fix this. I had to make some decisions to do this.
To the user, this might mean they build only one of 3 conformers on the first pass, go back to Options and ask for all 3. After that, the downloads page and the project detail page would always represent the most recent state, in this case all 3 conformers would be present.
This is fixed locally, not distributed yet.
Tool: Carbohydrate Builder
Bug Description: In cases where the downloads page is reached via the options page, if a user hits the back button, the options page load logic creates a new project, but it has the same pUUID as the previous project. This causes subsequent queries on pUUID to find two matches. That is bad.
To Reproduce:
Expected behavior Prior to creating a new project, query existing projects for a matching pUUID. That is generated by gems, and gets added to the Django db after the fact. If it already exists, just use it.