Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate template seems to create db entries even when cancel #8600

Closed
scolapasta opened this issue Apr 12, 2022 · 3 comments · Fixed by #8706
Closed

Duplicate template seems to create db entries even when cancel #8600

scolapasta opened this issue Apr 12, 2022 · 3 comments · Fixed by #8706
Milestone

Comments

@scolapasta
Copy link
Contributor

I noticed this strange db behavior - clone a template, click cancel and then look in db. A new row is still added to template table (but with no dataverse_id). Looking at prod, there are many of these orphaned templates.

We need to fix this logic and clean up the db.

@mreekie
Copy link

mreekie commented Apr 25, 2022

Prio meeting:
Came up while testing 500 server error when adding a a dataset in dataverse where default template has no associated terms. Leaving this in will add to cruft in the databvase

The def of done:

  • Write a script to cleanup/fix older templates.
  • May not require a new release to use the script, but will likely be documented as part of the release notes.

@mreekie mreekie moved this from Next Sprint 🏃 to This Sprint 🏃‍♀️ in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) Apr 27, 2022
@pdurbin pdurbin moved this from This Sprint 🏃‍♀️ to IQSS Team - In Progress 💻 in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) May 10, 2022
@pdurbin pdurbin self-assigned this May 10, 2022
@pdurbin
Copy link
Member

pdurbin commented May 10, 2022

Huh, from a quick test it looks like two copies are created when you copy/clone:

dvndb=> select id,createtime,name,dataverse_id from template;
 id |       createtime        |       name        | dataverse_id 
----+-------------------------+-------------------+--------------
  1 | 2022-05-10 15:19:35.767 | template1         |            1
  2 | 2022-05-10 15:20:50.841 | Copy of template1 |             
  3 | 2022-05-10 15:20:50.841 | Copy of template1 |             
(3 rows)

@mreekie
Copy link

mreekie commented May 11, 2022

sprint:

  • Still small
  • Been reproduced.

@sekmiller sekmiller self-assigned this May 12, 2022
@pdurbin pdurbin removed their assignment May 13, 2022
sekmiller added a commit that referenced this issue May 16, 2022
sekmiller added a commit that referenced this issue May 17, 2022
sekmiller added a commit that referenced this issue May 17, 2022
sekmiller added a commit that referenced this issue May 17, 2022
sekmiller added a commit that referenced this issue May 17, 2022
sekmiller added a commit that referenced this issue May 17, 2022
sekmiller added a commit that referenced this issue May 18, 2022
sekmiller added a commit that referenced this issue May 18, 2022
sekmiller added a commit that referenced this issue May 19, 2022
@pdurbin pdurbin added this to the 5.11 milestone Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants