CentreForDigitalHumanities / CentreForDigitalHumanities/microcontact

Fix the constant values in recordings.models.Recording

Open
#86 0 comments 0 reactions 0 assignees View on GitHub
bug documentation
Dominant language
Python
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The single-character constants (choice values for the enum type fields) are a bit of a mess right now. The first eight (up to `SECOND_GEN`) were chosen alphabetically by @jaapjorisjaap and @JelmerVNuss while the other four (`*_EDU`) were chosen as abbreviations of their meaning. It would be much neater to have all values generated in the same style, but this requires a data migration.

See also https://github.com/UUDigitalHumanitieslab/microcontact/pull/83#pullrequestreview-68608293.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating recordings.models.Recording and its single-character enum choice constants. Review the related discussion in pull request 83 before determining the consistent value scheme and the required data migration. Done means all twelve constants follow one scheme and existing data is migrated safely.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, databases
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 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.