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

[BUG] - Can't delete group with partial data remaining #5007

Open
5 of 6 tasks
matthewkdies opened this issue Feb 2, 2025 · 1 comment
Open
5 of 6 tasks

[BUG] - Can't delete group with partial data remaining #5007

matthewkdies opened this issue Feb 2, 2025 · 1 comment
Labels
bug Something isn't working triage

Comments

@matthewkdies
Copy link

matthewkdies commented Feb 2, 2025

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

I added a new household + group to Mealie with an admin account for some new users. Prior to them creating their accounts in the household/group, I exported the recipes in my household to add to their household via a migration. I did this by creating a temporary admin account in their household, creating a migration using the zipfile, and then deleting the account.

The problem is that once that user is deleted, the recipes remain but no one seems to be their owner, so they don't show up for the new users. The fix for them is to have them create their accounts first and then do the migration later on, but now I'm unable to delete the leftover groups with "An unexpected error occurred".

Steps to Reproduce

  1. Use existing account to export recipes (Settings -> Data Management -> Recipes -> Export All -> Download)
  2. Use Admin account to create new household/group
  3. Use Admin account to create new admin user in that household/group
  4. Log in with new account and migrate with newly generated migration file
  5. Log out + log in to original Admin account and delete new admin account
  6. Delete new household (this works)
  7. Attempt to delete new group (this fails)

Please provide relevant logs

Long log output ERROR 2025-02-02T17:16:05 - (psycopg2.errors.NotNullViolation) null value in column "group_id" of relation "recipes" violates not-null constraint DETAIL: Failing row contains (2023-12-30 17:46:06.682692, 2025-02-02 22:16:05.484581, 0051f556-2e77-4652-a54b-462649cb7c9a, salsa-verde-enchiladas-with-poblano-pepper-black-beans-and-monte..., null, 67c6159b-6c7f-4ff9-aa2d-7cc9c8fcf81d, Salsa Verde Enchiladas with Poblano Pepper, Black Beans, and Mon..., Saucy, smothered, hearty, and delicious: this enchilada bake has..., isyM, 35 Minutes, null, null, null, , null, 5, https://www.hellofresh.com/recipes/salsa-verde-enchiladas-5d56f4..., 2023-12-30, 2025-02-01 16:13:15.005831, f, null, salsa verde enchiladas with poblano pepper, black beans, and mon..., saucy, smothered, hearty, and delicious: this enchilada bake has..., 0, 2).

[SQL: UPDATE recipes SET group_id=%(group_id)s::UUID, update_at=%(update_at)s WHERE recipes.id = %(recipes_id)s::UUID]
[parameters: [{'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484581), 'recipes_id': '0051f556-2e77-4652-a54b-462649cb7c9a'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484584), 'recipes_id': '00bd6f79-43dc-4839-b772-46d8c0510770'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '00f30364-4390-4e81-8553-a93aeba7dc63'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '01529e40-1050-4362-838f-d6e6dfb71198'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '019fc6fc-fc65-4d38-ba1b-285c5902de63'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '01ecab69-0079-4c2d-95b1-fa9350a3bc7e'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '0219f308-d193-4506-a1a6-29afe01428ca'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '02295aeb-5da9-4b8f-8b6d-f883fdcd1b68'} ... displaying 10 of 188 total bound parameter sets ... {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484650), 'recipes_id': 'fc89ae07-1525-4aa2-9aab-48ecae616132'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484650), 'recipes_id': 'ff862cc9-f5a3-48c3-95fd-a99215b910da'}]]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1933, in _exec_single_context
self.dialect.do_executemany(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 800, in do_executemany
cursor.executemany(statement, parameters)
psycopg2.errors.NotNullViolation: null value in column "group_id" of relation "recipes" violates not-null constraint
DETAIL: Failing row contains (2023-12-30 17:46:06.682692, 2025-02-02 22:16:05.484581, 0051f556-2e77-4652-a54b-462649cb7c9a, salsa-verde-enchiladas-with-poblano-pepper-black-beans-and-monte..., null, 67c6159b-6c7f-4ff9-aa2d-7cc9c8fcf81d, Salsa Verde Enchiladas with Poblano Pepper, Black Beans, and Mon..., Saucy, smothered, hearty, and delicious: this enchilada bake has..., isyM, 35 Minutes, null, null, null, , null, 5, https://www.hellofresh.com/recipes/salsa-verde-enchiladas-5d56f4..., 2023-12-30, 2025-02-01 16:13:15.005831, f, null, salsa verde enchiladas with poblano pepper, black beans, and mon..., saucy, smothered, hearty, and delicious: this enchilada bake has..., 0, 2).

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/app/mealie/routes/_base/mixins.py", line 127, in delete_one
item = self.repo.delete(item_id)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/mealie/repos/repository_generic.py", line 260, in delete
raise e
File "/app/mealie/repos/repository_generic.py", line 257, in delete
self.session.commit()
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2032, in commit
trans.commit(_to_root=True)
File "", line 2, in commit
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 1313, in commit
self._prepare_impl()
File "", line 2, in _prepare_impl
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 1288, in _prepare_impl
self.session.flush()
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4353, in flush
self._flush(objects)
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4488, in _flush
with util.safe_reraise():
^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py", line 146, in exit
raise exc_value.with_traceback(exc_tb)
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4449, in _flush
flush_context.execute()
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/unitofwork.py", line 466, in execute
rec.execute(self)
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/unitofwork.py", line 642, in execute
util.preloaded.orm_persistence.save_obj(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/persistence.py", line 85, in save_obj
_emit_update_statements(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/persistence.py", line 912, in _emit_update_statements
c = connection.execute(
^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1416, in execute
return meth(
^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
return connection._execute_clauseelement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1638, in _execute_clauseelement
ret = self._execute_context(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1843, in _execute_context
return self._exec_single_context(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1983, in _exec_single_context
self._handle_dbapi_exception(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2352, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1933, in _exec_single_context
self.dialect.do_executemany(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 800, in do_executemany
cursor.executemany(statement, parameters)
sqlalchemy.exc.IntegrityError: (psycopg2.errors.NotNullViolation) null value in column "group_id" of relation "recipes" violates not-null constraint
DETAIL: Failing row contains (2023-12-30 17:46:06.682692, 2025-02-02 22:16:05.484581, 0051f556-2e77-4652-a54b-462649cb7c9a, salsa-verde-enchiladas-with-poblano-pepper-black-beans-and-monte..., null, 67c6159b-6c7f-4ff9-aa2d-7cc9c8fcf81d, Salsa Verde Enchiladas with Poblano Pepper, Black Beans, and Mon..., Saucy, smothered, hearty, and delicious: this enchilada bake has..., isyM, 35 Minutes, null, null, null, , null, 5, https://www.hellofresh.com/recipes/salsa-verde-enchiladas-5d56f4..., 2023-12-30, 2025-02-01 16:13:15.005831, f, null, salsa verde enchiladas with poblano pepper, black beans, and mon..., saucy, smothered, hearty, and delicious: this enchilada bake has..., 0, 2).

[SQL: UPDATE recipes SET group_id=%(group_id)s::UUID, update_at=%(update_at)s WHERE recipes.id = %(recipes_id)s::UUID]
[parameters: [{'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484581), 'recipes_id': '0051f556-2e77-4652-a54b-462649cb7c9a'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484584), 'recipes_id': '00bd6f79-43dc-4839-b772-46d8c0510770'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '00f30364-4390-4e81-8553-a93aeba7dc63'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '01529e40-1050-4362-838f-d6e6dfb71198'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '019fc6fc-fc65-4d38-ba1b-285c5902de63'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '01ecab69-0079-4c2d-95b1-fa9350a3bc7e'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '0219f308-d193-4506-a1a6-29afe01428ca'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '02295aeb-5da9-4b8f-8b6d-f883fdcd1b68'} ... displaying 10 of 188 total bound parameter sets ... {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484650), 'recipes_id': 'fc89ae07-1525-4aa2-9aab-48ecae616132'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484650), 'recipes_id': 'ff862cc9-f5a3-48c3-95fd-a99215b910da'}]]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
ERROR 2025-02-02T17:16:05 - (psycopg2.errors.NotNullViolation) null value in column "group_id" of relation "recipes" violates not-null constraint
DETAIL: Failing row contains (2023-12-30 17:46:06.682692, 2025-02-02 22:16:05.484581, 0051f556-2e77-4652-a54b-462649cb7c9a, salsa-verde-enchiladas-with-poblano-pepper-black-beans-and-monte..., null, 67c6159b-6c7f-4ff9-aa2d-7cc9c8fcf81d, Salsa Verde Enchiladas with Poblano Pepper, Black Beans, and Mon..., Saucy, smothered, hearty, and delicious: this enchilada bake has..., isyM, 35 Minutes, null, null, null, , null, 5, https://www.hellofresh.com/recipes/salsa-verde-enchiladas-5d56f4..., 2023-12-30, 2025-02-01 16:13:15.005831, f, null, salsa verde enchiladas with poblano pepper, black beans, and mon..., saucy, smothered, hearty, and delicious: this enchilada bake has..., 0, 2).

[SQL: UPDATE recipes SET group_id=%(group_id)s::UUID, update_at=%(update_at)s WHERE recipes.id = %(recipes_id)s::UUID]
[parameters: [{'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484581), 'recipes_id': '0051f556-2e77-4652-a54b-462649cb7c9a'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484584), 'recipes_id': '00bd6f79-43dc-4839-b772-46d8c0510770'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '00f30364-4390-4e81-8553-a93aeba7dc63'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '01529e40-1050-4362-838f-d6e6dfb71198'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '019fc6fc-fc65-4d38-ba1b-285c5902de63'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '01ecab69-0079-4c2d-95b1-fa9350a3bc7e'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '0219f308-d193-4506-a1a6-29afe01428ca'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '02295aeb-5da9-4b8f-8b6d-f883fdcd1b68'} ... displaying 10 of 188 total bound parameter sets ... {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484650), 'recipes_id': 'fc89ae07-1525-4aa2-9aab-48ecae616132'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484650), 'recipes_id': 'ff862cc9-f5a3-48c3-95fd-a99215b910da'}]]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1933, in _exec_single_context
self.dialect.do_executemany(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 800, in do_executemany
cursor.executemany(statement, parameters)
psycopg2.errors.NotNullViolation: null value in column "group_id" of relation "recipes" violates not-null constraint
DETAIL: Failing row contains (2023-12-30 17:46:06.682692, 2025-02-02 22:16:05.484581, 0051f556-2e77-4652-a54b-462649cb7c9a, salsa-verde-enchiladas-with-poblano-pepper-black-beans-and-monte..., null, 67c6159b-6c7f-4ff9-aa2d-7cc9c8fcf81d, Salsa Verde Enchiladas with Poblano Pepper, Black Beans, and Mon..., Saucy, smothered, hearty, and delicious: this enchilada bake has..., isyM, 35 Minutes, null, null, null, , null, 5, https://www.hellofresh.com/recipes/salsa-verde-enchiladas-5d56f4..., 2023-12-30, 2025-02-01 16:13:15.005831, f, null, salsa verde enchiladas with poblano pepper, black beans, and mon..., saucy, smothered, hearty, and delicious: this enchilada bake has..., 0, 2).

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/app/mealie/routes/_base/mixins.py", line 127, in delete_one
item = self.repo.delete(item_id)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/mealie/repos/repository_generic.py", line 260, in delete
raise e
File "/app/mealie/repos/repository_generic.py", line 257, in delete
self.session.commit()
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2032, in commit
trans.commit(_to_root=True)
File "", line 2, in commit
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 1313, in commit
self._prepare_impl()
File "", line 2, in _prepare_impl
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 1288, in _prepare_impl
self.session.flush()
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4353, in flush
self._flush(objects)
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4488, in _flush
with util.safe_reraise():
^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py", line 146, in exit
raise exc_value.with_traceback(exc_tb)
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 4449, in _flush
flush_context.execute()
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/unitofwork.py", line 466, in execute
rec.execute(self)
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/unitofwork.py", line 642, in execute
util.preloaded.orm_persistence.save_obj(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/persistence.py", line 85, in save_obj
_emit_update_statements(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/orm/persistence.py", line 912, in _emit_update_statements
c = connection.execute(
^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1416, in execute
return meth(
^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
return connection._execute_clauseelement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1638, in _execute_clauseelement
ret = self._execute_context(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1843, in _execute_context
return self._exec_single_context(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1983, in _exec_single_context
self._handle_dbapi_exception(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2352, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1933, in _exec_single_context
self.dialect.do_executemany(
File "/opt/pysetup/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 800, in do_executemany
cursor.executemany(statement, parameters)
sqlalchemy.exc.IntegrityError: (psycopg2.errors.NotNullViolation) null value in column "group_id" of relation "recipes" violates not-null constraint
DETAIL: Failing row contains (2023-12-30 17:46:06.682692, 2025-02-02 22:16:05.484581, 0051f556-2e77-4652-a54b-462649cb7c9a, salsa-verde-enchiladas-with-poblano-pepper-black-beans-and-monte..., null, 67c6159b-6c7f-4ff9-aa2d-7cc9c8fcf81d, Salsa Verde Enchiladas with Poblano Pepper, Black Beans, and Mon..., Saucy, smothered, hearty, and delicious: this enchilada bake has..., isyM, 35 Minutes, null, null, null, , null, 5, https://www.hellofresh.com/recipes/salsa-verde-enchiladas-5d56f4..., 2023-12-30, 2025-02-01 16:13:15.005831, f, null, salsa verde enchiladas with poblano pepper, black beans, and mon..., saucy, smothered, hearty, and delicious: this enchilada bake has..., 0, 2).

[SQL: UPDATE recipes SET group_id=%(group_id)s::UUID, update_at=%(update_at)s WHERE recipes.id = %(recipes_id)s::UUID]
[parameters: [{'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484581), 'recipes_id': '0051f556-2e77-4652-a54b-462649cb7c9a'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484584), 'recipes_id': '00bd6f79-43dc-4839-b772-46d8c0510770'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '00f30364-4390-4e81-8553-a93aeba7dc63'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '01529e40-1050-4362-838f-d6e6dfb71198'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484585), 'recipes_id': '019fc6fc-fc65-4d38-ba1b-285c5902de63'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '01ecab69-0079-4c2d-95b1-fa9350a3bc7e'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '0219f308-d193-4506-a1a6-29afe01428ca'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484586), 'recipes_id': '02295aeb-5da9-4b8f-8b6d-f883fdcd1b68'} ... displaying 10 of 188 total bound parameter sets ... {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484650), 'recipes_id': 'fc89ae07-1525-4aa2-9aab-48ecae616132'}, {'group_id': None, 'update_at': datetime.datetime(2025, 2, 2, 22, 16, 5, 484650), 'recipes_id': 'ff862cc9-f5a3-48c3-95fd-a99215b910da'}]]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
INFO 2025-02-02T17:16:05 - [192.168.1.32:0] 400 Bad Request "DELETE /api/admin/groups/39e49534-f661-447b-b09e-fc2cc4ab8d72 HTTP/1.1"

Mealie Version

Version: develop (though it's practically 2.5.0, I've built a custom image using 2.5.0 to resolve this issue)
Build: N/A (not shown)

Deployment

Docker (Linux)

Additional Deployment Details

No response

@matthewkdies matthewkdies added bug Something isn't working triage labels Feb 2, 2025
@matthewkdies
Copy link
Author

It appears that this actually may be possible to replicate on the demo site. I had assumed that creating an admin user would be blocked there, but that doesn't appear to be the case. I will see if I can replicate later and post a video here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant