Skip to content

fix: remove unused scores field from DealtCard schema and database#2711

Open
Adarshkumar0509 wants to merge 2 commits intoOWASP:masterfrom
Adarshkumar0509:fix/remove-scores-field-dealt-card-v2
Open

fix: remove unused scores field from DealtCard schema and database#2711
Adarshkumar0509 wants to merge 2 commits intoOWASP:masterfrom
Adarshkumar0509:fix/remove-scores-field-dealt-card-v2

Conversation

@Adarshkumar0509
Copy link
Contributor

Resolves #2499

Description

Remove unused scores boolean field from the DealtCard schema and database.

The :scores field existed in both dealt_card.ex and the original
create_dealt_cards migration but was never read, written, or referenced
anywhere in the codebase. Scoring is calculated dynamically via vote
counting in scoring_cards/2 in cornucopia.ex — the field was never
needed.

Changes:

  • Remove field :scores, :boolean from lib/copi/cornucopia/dealt_card.ex
  • Add migration to drop the scores column from the dealt_cards table

Resolved or fixed issue: #2499

AI Tool Disclosure

  • My contribution does not include any AI-generated content

Affirmation

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.

Bug: scores field in DealtCard schema and database is never read or written

1 participant