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

fix: Save who created admin and teacher accounts #63

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

PedroChaparro
Copy link
Member

Includes 📋

  • Add new field in users table
  • Create a view to join the creator fullname
  • Update repository queries

Related Issues 🔎

Fixes #61

Notes 📝

  • By default, the new user UUID is saved as the account creator, so, it's needed to explicitly define the creator UUID in the queries to save the admins and teachers account.

@PedroChaparro PedroChaparro added the bug 🐞 Something isn't working label Oct 5, 2023
@PedroChaparro PedroChaparro self-assigned this Oct 5, 2023
@PedroChaparro PedroChaparro merged commit 313d795 into dev Oct 5, 2023
3 checks passed
@PedroChaparro PedroChaparro deleted the fix/#61_who_created_admin branch October 5, 2023 13:19
@PedroChaparro PedroChaparro mentioned this pull request Oct 6, 2023
PedroChaparro added a commit that referenced this pull request Oct 6, 2023
* fix: Use case insensitive text for emails (#62)

* fix(accounts): Use case insensitive text to store emails

* chore(deps): Bump dependencies

* fix: Save who created admin and teacher accounts (#63)

* feat(db): Add created by column in users table

* fix(accounts): Save who created teachers and admin accounts

* feat: Rename course (#64)

* feat(courses): Add repository implementation to rename course

* feat(courses): Add endpoint to rename a course

* test(courses): Rename course

* feat: Search students by full name (#65)

* docs(openapi): Add new endpoint to the spec

* feat(db): Add nex indexes to optimize search queries

* feat(accounts): Add repository implementation to search students

* feat(accounts): Add endpoint to search students by full name

* test(accounts): Search students by full name

* feat: Enroll student (#66)

* docs(openapi): Add new endpoint to spec

* feat(courses): Endpoint to enroll an student to a course

* test(courses): Enroll student to course

* feat: List enrolled students (#68)

* docs(openapi): Update spec

* refactor(db): Update enrolled students view name

* feat(courses): Repository implementation to get enrolled students

* feat(courses): Endpoint to get enrolled students

* test(courses): Get enrolled students
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant