Skip to content

Add get_mealplan, update_mealplan and delete_mealplan endpoints - #736

Merged
joostlek merged 3 commits into
joostlek:mainfrom
domodom30:feature/mealplan-crud
Jun 22, 2026
Merged

joostlek merged 3 commits into
joostlek:mainfrom
domodom30:feature/mealplan-crud

Conversation

@domodom30

Copy link
Copy Markdown
Contributor

Proposed Changes

Add the missing CRUD endpoints for individual mealplan entries.

  • get_mealplan(mealplan_id) — GET /api/households/mealplans/{id}
  • update_mealplan(id, at, entry_type, *, recipe_id, note_title, note_text) — PUT /api/households/mealplans/{id}
  • delete_mealplan(mealplan_id) — DELETE /api/households/mealplans/{id}

update_mealplan fetches the existing entry first to carry forward its group_id, which is required by the API. It also caches the current user's ID to avoid repeated calls.

Tests included for all new endpoints.

Related Issues

Splits out the mealplan CRUD part of #730.

@domodom30
domodom30 force-pushed the feature/mealplan-crud branch from 9ea883a to 6bbaaaa Compare June 4, 2026 11:49
Resolve conflicts in tests by keeping both the mealplan CRUD tests and
the favorites/ratings tests (joostlek#738), and drop the duplicate _get_user_id
helper now provided by main.
Resolve conflicts in tests by keeping both the mealplan CRUD tests and
the shopping-list/favorites tests now present in main (joostlek#737, joostlek#738).
@joostlek
joostlek merged commit da25369 into joostlek:main Jun 22, 2026
12 checks passed
domodom30 added a commit to domodom30/python-mealie that referenced this pull request Jun 22, 2026
Resolve conflicts in tests by keeping both the organizers tests and the
mealplan tests now merged into main (joostlek#736), alongside the shopping-list
and favorites tests (joostlek#737, joostlek#738).
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

new-feature New features or options.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants