Skip to content

First Elections PR#63

Merged
EarthenSky merged 43 commits into
mainfrom
dev-issue-25
Apr 7, 2025
Merged

First Elections PR#63
EarthenSky merged 43 commits into
mainfrom
dev-issue-25

Conversation

@EarthenSky
Copy link
Copy Markdown
Collaborator

@EarthenSky EarthenSky commented Aug 9, 2024

elections PR, woo!

@EarthenSky EarthenSky linked an issue Aug 9, 2024 that may be closed by this pull request
Comment thread src/elections/models.py Outdated
@EarthenSky EarthenSky changed the title Issue 25 First Elections PR Aug 18, 2024
@DerpyWasHere DerpyWasHere marked this pull request as ready for review September 27, 2024 01:48
Copy link
Copy Markdown
Collaborator Author

@EarthenSky EarthenSky left a comment

Choose a reason for hiding this comment

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

I'll do another review round after, but 99% looks good!

Comment thread src/alembic/versions/243190df5588_create_election_tables.py Outdated
Comment thread src/elections/tables.py
Comment thread src/elections/tables.py Outdated
Comment thread src/elections/urls.py Outdated
Comment thread src/elections/urls.py Outdated
Comment thread src/elections/crud.py Outdated
Comment thread src/elections/crud.py Outdated
Comment thread src/elections/crud.py Outdated
Comment thread src/elections/tables.py Outdated
Comment thread src/permission/types.py Outdated
Comment thread src/elections/crud.py Outdated
Comment thread src/elections/crud.py Outdated
@DerpyWasHere
Copy link
Copy Markdown
Member

Alright, brief high level summary. This PR introduces the following:

  • CRUD functions for creating, getting, updating, and deleting elections.
  • SQLAlchemy tables for elections, nominees, and nominee applications (election paired with nominee)
  • Endpoints for creating, deleting, and updating elections.

This still needs to introduce/do the following:

  • Endpoint for getting/viewing an election's data (public and private).
  • Test user validation.

I'll work on these in my next PR.

As of this comment, all of the above comments should have been addressed.

Comment thread src/elections/tables.py Outdated
Comment thread src/elections/tables.py
Copy link
Copy Markdown
Collaborator Author

@EarthenSky EarthenSky left a comment

Choose a reason for hiding this comment

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

Oops, since I made this PR originally I can't request changes. However, consider this "request changes".

The biggest issue is the uniqueness of the slug, the rest are medium level.

Mostly the logic is good!

Comment thread src/elections/urls.py
Comment thread src/elections/urls.py Outdated
Comment thread src/alembic/versions/243190df5588_create_election_tables.py Outdated
Comment thread src/elections/urls.py
Comment thread src/elections/crud.py Outdated
Comment thread src/elections/urls.py Outdated
Comment thread src/elections/urls.py Outdated
Comment thread src/main.py Outdated
Comment thread src/permission/types.py Outdated
Comment thread src/permission/types.py Outdated
@EarthenSky
Copy link
Copy Markdown
Collaborator Author

This PR creates tables for elections and nominees, while introducing tested endpoints just for the elections (C,R,U,D)

@EarthenSky EarthenSky merged commit f765ac9 into main Apr 7, 2025
3 checks passed
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.

Elections Info

3 participants