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

Fix: Account for deleted parties #68

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Fix: Account for deleted parties #68

merged 1 commit into from
Jul 1, 2024

Conversation

Adnan-cds
Copy link
Contributor

@Adnan-cds Adnan-cds commented Jun 27, 2024

Account for the possibility that one or more electoral parties could be deleted. This is particularly a possibility during testing and training.

Resolved #37

Account for the possibility that one or more parties could be deleted.  This is
a possibility during testing and training.

Resolved #37
@Adnan-cds Adnan-cds marked this pull request as ready for review June 27, 2024 22:28
@dedavidson
Copy link
Contributor

I'm not comfortable with this approach as it means a taxonomy term could be deleted and impact a historical election. I think it is much better to prevent deletion if a term is in use.

@Adnan-cds
Copy link
Contributor Author

I think it is much better to prevent deletion if a term is in use.

Good morning :) I think that's somewhat of a feature request which can be implemented in a different ticket. What I have done in this change is to apply some defensive programming to prevent WSOD when Editors are practising to get a taste of this module.

Copy link
Member

@finnlewis finnlewis left a comment

Choose a reason for hiding this comment

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

I think this is the right way to prevent the wsod in the case where we delete party terms.

@finnlewis
Copy link
Member

I think it is much better to prevent deletion if a term is in use.

@dedavidson let's track that here #75

@Adnan-cds
Copy link
Contributor Author

Thanks. Merging...

@Adnan-cds Adnan-cds merged commit 003ff3e into 1.x Jul 1, 2024
8 checks passed
@chriswales95 chriswales95 deleted the fix/37-deleted-party branch July 1, 2024 16:28
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.

Deleted party causes WSOD
3 participants