Skip to content

feat: Add DEL endpoint for versions and related tests#19

Merged
mtruj013 merged 2 commits into
mainfrom
delete-version-endpoint
Apr 23, 2026
Merged

feat: Add DEL endpoint for versions and related tests#19
mtruj013 merged 2 commits into
mainfrom
delete-version-endpoint

Conversation

@mtruj013
Copy link
Copy Markdown
Collaborator

@mtruj013 mtruj013 commented Apr 23, 2026

Done

  • Added delete endpoint for versions and related tests

QA

  • See that tests are passing
  • For a more thorough QA:
    • Run the site using the command dotrun
    • Delete a version and see that everything passes as intended, sample curls here

Issue / Card

https://warthogs.atlassian.net/browse/WD-35419

Copy link
Copy Markdown

@britneywwc britneywwc left a comment

Choose a reason for hiding this comment

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

Thanks this looks good! Left a couple minor comments



class TestDeleteProductDeploymentVersion(BaseTestCase):
def test_delete_product_deployment_version_returns_200_with_deleted_payload(
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we shorted this function name? It exceeds flake8 tests

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Oof, this should've been caught by the linter. I've updated package.json

{"product_slug": "does-not-exist"},
)

def test_delete_product_deployment_version_deployment_not_found_returns_404(
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same comment on the function name here

Comment thread webapp/views.py
}
}, 404

deleted = {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do we want to include parent_product in the delete response as well?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense for consistency, added

@mtruj013 mtruj013 force-pushed the delete-version-endpoint branch from 6043ecb to aa0716e Compare April 23, 2026 22:52
@mtruj013 mtruj013 merged commit 64eb7c2 into main Apr 23, 2026
4 checks passed
@mtruj013 mtruj013 deleted the delete-version-endpoint branch April 23, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants