Skip to content

"Remove" vs "Delete" vs "Drop" in UI and code #872

Closed Answered by kgodey
seancolsen asked this question in Developer Q&A
Discussion options

You must be logged in to vote

Final answer (modified from #872 (comment), based on discussion).

  • We're building the db module with the intent of eventually spinning it off to be a standalone library that can be used to automate database tasks. We should follow database terminology in code here, so it should be drop for DDL operations and delete for DML operations.
  • The API follows REST conventions, so it should use delete for everything. I think that any functions etc. defined in the Django service code should follow this pattern as well (to comply with Django conventions).
  • The UI should also use delete for everything.
  • We should not use remove for anything.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@mathemancer
Comment options

@ghislaineguerin
Comment options

@kgodey
Comment options

@mathemancer
Comment options

@seancolsen
Comment options

seancolsen Dec 10, 2021
Maintainer Author

Comment options

You must be logged in to vote
0 replies
Answer selected by kgodey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants