Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Register endpoint #39

Merged
merged 6 commits into from
Oct 9, 2023
Merged

feat: Register endpoint #39

merged 6 commits into from
Oct 9, 2023

Conversation

AndreaVelasquezA
Copy link
Member

  • Creation and test of the register endpoint
  • Adding command for debug mode in the readme

Implementation of the registration endpoint, 57% coverage is achieved
@PedroChaparro PedroChaparro changed the title Feat/register endpoint feat: Register endpoint Oct 9, 2023
@PedroChaparro
Copy link
Contributor

Note that I made the following changes to your Pull Request:

  1. The target branch was changed from main to dev.
  2. The name of the Pull Request was changed from "Feat/register endpoint" to "feat: Register endpoint" to follow the conventional commits convention.
  3. The endpoint was changed from /account_register to /account/register, and the jwt field in the response was changed to token according to the .net proxy.
  4. Your tests were updated to use random data (which is a new feature from refactor: Update endpoints #37)

Copy link
Contributor

@PedroChaparro PedroChaparro left a comment

Choose a reason for hiding this comment

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

Good job, squash and merge :octocat:. It seems that the coverage of your controllers is at 84% instead of 57% 🚀.

Feel free to ask me or @MiguelMRojas if you have any questions about the squash and merge

src/controllers/_account_controllers.py Show resolved Hide resolved
@AndreaVelasquezA AndreaVelasquezA merged commit 38392d4 into dev Oct 9, 2023
3 checks passed
@PedroChaparro PedroChaparro deleted the feat/register_endpoint branch October 10, 2023 01:47
@PedroChaparro PedroChaparro mentioned this pull request Oct 10, 2023
MiguelMRojas added a commit that referenced this pull request Oct 10, 2023
* fix: Enable CORS (#40)

* feat: Register endpoint (#39)

* feat: enpoint registration coverage 57%

Implementation of the registration endpoint, 57% coverage is achieved

* style: Fix formatter and linter warnings

* test: Use random data in register tests

* refactor: Update register endpoint according to the `.net` spec

* test: Fix broken test

---------

Co-authored-by: Antonio Donis <[email protected]>
Co-authored-by: Pedro Andrés Chaparro Quintero <[email protected]>
Co-authored-by: Pedro Andrés Chaparro Quintero <[email protected]>
Co-authored-by: Andrea Velasquez <[email protected]>
Co-authored-by: Andvelavi <[email protected]>
MiguelMRojas added a commit that referenced this pull request Oct 14, 2023
* feat: Register endpoint (#39)

* feat: enpoint registration coverage 57%

Implementation of the registration endpoint, 57% coverage is achieved

* style: Fix formatter and linter warnings

* test: Use random data in register tests

* refactor: Update register endpoint according to the `.net` spec

* test: Fix broken test

---------

Co-authored-by: Andvelavi <[email protected]>
Co-authored-by: Pedro Andrés Chaparro Quintero <[email protected]>


* fix: Enable all CORS origins (#44)

* chore: Remove origins environment variable

* fix: Enable all origins in CORS config

* ci: Fix tagging pipeline (#48)

* ci: Fix typo

* feat: update docs openapi (#41)

* feat: Endpoint to get the file status (#49)

* refactor: Remove exception from responses

* ci: Remove unnecessary field in tagging pipeline

* fix: Update metadata base url in docker-compose

* feat(file): Endpoint to get the state of a file

* test(file): Add tests to the endpoint to get file state

* chore: Set current version

* feat: Endpoint to rename a file (#50)

* feat: Update password (#51)

* feat: Endpoint to update password + tests

Endpoint to update password, with 42% coverage.  Problems when querying with an invalid token

* fix(account): Update endpoint to change the password

* test(account): Update tests related to update password

Increment coverage to 83%

---------

Co-authored-by: Andvelavi <[email protected]>
Co-authored-by: Pedro Andrés Chaparro Quintero <[email protected]>

* feat: create a folder (#52)

* feat: file upload (#53)

* feat: file upload endpoint.

Start of file upload endpoint , testing is still pending, in addition to possible changes according to the API update

* feat: Progress and small corrections in upload_endpoint

Progress is made in the endpoint in addition to correcting syntax and .py file creation problems

* fix: upload file endpont corrections

Corrections are made to the endpoint upload_file according to API update

* fix: error message

* fix: error messages in upload controller

* feat: Create helper function to check if an UUID is valid

* fix(files): Use multipart form data instead of JSON

* test(files): Add success case test to the endpoint to upload files

---------

Co-authored-by: Andvelavi <[email protected]>
Co-authored-by: Pedro Andrés Chaparro Quintero <[email protected]>


* fix(files): Keep files extension (#56)

* test: Increment save file endpoint coverage (#54)

* refactor(files): Remove unreachable block

Since JSON is not being used in the endpoint, the block is unreachable

* test(files): Increment upload handler coverage to 88%

All lines, except the `500` status code error, are covered now

---------

Co-authored-by: Antonio Donis <[email protected]>
Co-authored-by: Pedro Andrés Chaparro Quintero <[email protected]>
Co-authored-by: Pedro Andrés Chaparro Quintero <[email protected]>
Co-authored-by: Andrea Velasquez <[email protected]>
Co-authored-by: Andvelavi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants