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

Soft delete xform from legacy UI #2503

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Conversation

FrankApiyo
Copy link
Member

@FrankApiyo FrankApiyo commented Nov 9, 2023

Don't call xform.delete() method which soft deletes

Before submitting this PR for review, please make sure you have:

  • Included tests
  • Updated documentation

@FrankApiyo FrankApiyo force-pushed the soft-delete-xform-in-legacy-ui branch 2 times, most recently from fc80e9a to 06bc8c3 Compare November 9, 2023 06:23
"submission.xml",
)
self._make_submission(path)
x += 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we increment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need for, this, I've removed this line

Don't call xform.delete() method which soft deletes
@FrankApiyo FrankApiyo force-pushed the soft-delete-xform-in-legacy-ui branch from 06bc8c3 to 3329c5f Compare November 9, 2023 07:18
@@ -504,8 +503,8 @@ def delete_xform(request, username, id_string):
{"user__username__iexact": username, "id_string__iexact": id_string}
)

# delete xform and submissions
remove_xform(xform)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also delete the function remove_xform since it is no longer required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@FrankApiyo FrankApiyo merged commit 0853379 into main Nov 10, 2023
7 of 8 checks passed
@FrankApiyo FrankApiyo deleted the soft-delete-xform-in-legacy-ui branch November 10, 2023 06:55
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 this pull request may close these issues.

2 participants