Skip to content

add train.delete to delete a model by model_id - #997

Merged
ebhills merged 4 commits into
mainfrom
991-enhancement-delete_wrangle-wrangle
Jul 28, 2026
Merged

add train.delete to delete a model by model_id#997
ebhills merged 4 commits into
mainfrom
991-enhancement-delete_wrangle-wrangle

Conversation

@mborodii-prog

Copy link
Copy Markdown
Contributor

Must be merged after API-Core changes https://github.com/wrangleworks/API-Core/pull/111

Summary

  • Adds wrangles.train.delete(model_id) as a static method on the train class in wrangles/train.py
  • Accepts only model_id — no wrangle type required
  • Raises RuntimeError if the API returns a non-OK response
  • Not placed in recipe_wrangles/main.py, so it is never auto-discovered as a recipe wrangle or bound as a DataFrame accessor

@mborodii-prog mborodii-prog linked an issue May 26, 2026 that may be closed by this pull request
2 tasks
@mborodii-prog
mborodii-prog requested a review from thomasstvr May 26, 2026 12:53

@thomasstvr thomasstvr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We are going to need more tests, at least one for each type of wrangle the train connector can create. At the same time, (if I remember correctly) there aren't very many tests that train new models. Can you make sure each train connector is properly tested for creating a new model and add this delete to each one? That would take care of both cases with one test.

@mborodii-prog
mborodii-prog force-pushed the 991-enhancement-delete_wrangle-wrangle branch from fa905f1 to 6cbcc51 Compare June 30, 2026 19:42
The delete endpoint is /model/content (consistent with all other model
operations), not /model/delete. Tests now mock the HTTP delete call since
the backend endpoint is gated on API-Core PR #111.

Co-Authored-By: Mariia Borodii <mborodii@binariks.com>
@mborodii-prog
mborodii-prog marked this pull request as ready for review June 30, 2026 20:20
@mborodii-prog mborodii-prog added this to the v1.20 milestone Jul 6, 2026
@ebhills
ebhills marked this pull request as draft July 27, 2026 14:03
@ebhills
ebhills removed request for ebhills and thomasstvr July 27, 2026 14:03

ebhills commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Queue triage (2026-07-27)

  • Disposition: Draft — delivery-owner action
  • Delivery owner: @mborodii-prog
  • Next action: Add the requested delete-path coverage and answer the requested changes, then re-request one primary reviewer. Keep the public API change focused here.

GitHub is the status record; update this PR rather than the external spreadsheet.

@mborodii-prog
mborodii-prog marked this pull request as ready for review July 27, 2026 14:24
@mborodii-prog
mborodii-prog requested a review from thomasstvr July 28, 2026 08:28
@ebhills
ebhills merged commit e590205 into main Jul 28, 2026
44 of 45 checks passed
@ebhills
ebhills deleted the 991-enhancement-delete_wrangle-wrangle branch July 28, 2026 11: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.

[ENHANCEMENT] delete_wrangle wrangle

3 participants