view votes can't see HC elections #49

Closed
opened 2024-01-09 09:05:16 -05:00 by imcompiling · 8 comments
Owner

When I am selecting election to view from, I am only looking at the election information for elections. This is incorrect now since I added the highcouncil elections. They are not added as a new election, rather just adding an affix to the current election name and adding votes to it.

Easiest solution will be to modify the statement for retrieving the election names to be all unique names within the Votes table.

When I am selecting election to view from, I am only looking at the election information for elections. This is incorrect now since I added the highcouncil elections. They are not added as a new election, rather just adding an affix to the current election name and adding votes to it. Easiest solution will be to modify the statement for retrieving the election names to be all unique names within the Votes table.
imcompiling added the bug label 2024-01-09 09:05:16 -05:00
Author
Owner

Alternative solution would be to modify the Votes table to track whether it is a HC vote outside of the election name. This would solve this issue but also that the foreign key in Votes doesn't exist for HC election names. This would require a bit more work (modifying the existing election information) but would be better design.

Alternative solution would be to modify the Votes table to track whether it is a HC vote outside of the election name. This would solve this issue but also that the foreign key in Votes doesn't exist for HC election names. This would require a bit more work (modifying the existing election information) but would be better design.
imcompiling added a new dependency 2024-01-09 20:02:35 -05:00
Author
Owner

Threw in the quick bandaid fix mentioned above in main.

The main action of this issue will be to design the Votes table better so that the HC votes are linked properly to each ElectionInformation entry.

Work will have to be done to convert the old data into the new table.

Threw in the quick bandaid fix mentioned above in main. The main action of this issue will be to design the Votes table better so that the HC votes are linked properly to each ElectionInformation entry. Work will have to be done to convert the old data into the new table.
imcompiling added reference 49--view-votes-can't-see-HC-elections 2024-05-18 15:39:22 -04:00
Author
Owner

Refitting the Votes table to have a field that determines the type of vote from [Council, DiscordManager, ClanLeader]. Still need to convert old data along with editing the high council voting actions.

Refitting the Votes table to have a field that determines the type of vote from [Council, DiscordManager, ClanLeader]. Still need to convert old data along with editing the high council voting actions.
Author
Owner

Also need to update the view command to be able to use the new type.

Also need to update the view command to be able to use the new type.
Author
Owner

I am using an enum within python to define the type. Python 3.11 introduced String Enums, so now I would like to upgrade python versions to 3.12.

I am using an enum within python to define the type. Python 3.11 introduced String Enums, so now I would like to upgrade python versions to 3.12.
Author
Owner

After upgrading, need to edit the database to add back the check for Type, and change the variable type.

After upgrading, need to edit the database to add back the check for Type, and change the variable type.
imcompiling added a new dependency 2024-05-18 16:33:46 -04:00
imcompiling changed reference from 49--view-votes-can't-see-HC-elections to 49-view-votes-can't-see-HC-elections 2024-05-18 23:14:02 -04:00
imcompiling changed reference from 49-view-votes-can't-see-HC-elections to 49-view-votes-cant-see-HC-elections 2024-05-18 23:15:15 -04:00
Author
Owner

Updated all database definitions to current. Just need to edit the data (election name and vote types) once done with the development.

Updated all database definitions to current. Just need to edit the data (election name and vote types) once done with the development.
Author
Owner

It worked first try surprisingly.

Updated all data on dakiny server.

It worked first try surprisingly. Updated all data on dakiny server.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Blocks
#48 Revamp view votes command
imcompiling/dakiny-bot
Depends on
Reference: imcompiling/dakiny-bot#49