VoteIT / VoteIT/voteit

Left-over database relations must be cleaned up (Probably 'messaging_connection' from refactored messaging system)

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
2
Forks
0
Avg merge
1d 2h
Merged PRs (30d)
1

Description

IntegrityError at /admin/core/user/XXXX/delete/
update or delete on table "core_user" violates foreign key constraint "messaging_connection_user_id_XXXX_fk_core_user_id" on table "messaging_connection"
DETAIL: Key (id)=(XXXXX) is still referenced from table "messaging_connection".

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the IntegrityError at /admin/core/user/XXXX/delete/ and inspect the messaging_connection relation to core_user, especially messaging_connection_user_id_XXXX_fk_core_user_id. Done means deleting a user no longer fails because of the leftover messaging_connection reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.