Skip to content

Refactor/crud - #355

Open
Gonzom wants to merge 10 commits into
PythonFreeCourse:developfrom
Gonzom:refactor/crud
Open

Refactor/crud#355
Gonzom wants to merge 10 commits into
PythonFreeCourse:developfrom
Gonzom:refactor/crud

Conversation

@Gonzom

@Gonzom Gonzom commented Mar 20, 2021

Copy link
Copy Markdown
Contributor

Creating a version 2 system of the current user and event schemas and models and connecting them with CRUD operations.
Tests are included.

The version 2 is not integrated in the system and is segregated to allow easier implementation.

Gonzom added 2 commits March 20, 2021 12:46
Creating a version 2 system of the current user and event schemas and models and connecting them with CRUD operations. Tests are included.

The version 2 is not integrated in the system and is segregated.
Updated relevant code and tests.

@yammesicka yammesicka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome work!! Great code, well tested. Kudos

Comment thread app/database/models_v2.py Outdated
Comment thread app/database/schemas_v2.py Outdated
Comment thread app/internal/languages.py Outdated
Comment thread app/internal/languages.py Outdated
Gonzom added 8 commits March 21, 2021 10:58
This constraint makes it so a user can only be added once to an event.
* Added missing test for base attributes.
* Renamed get_set tests to only get_, as they don't preform any setting of values.
* Fixed a bug with test_get_change_owner()
* Added an additional test to test_get_add_delete_members() to check that the unique constraint works.
* Added new util function.
This change better reflects the data it represents as the data is not a date object, but a complete datetime object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants