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

Courses migration of create, delete and get course by id #341

Merged
merged 3 commits into from
Mar 14, 2025

Conversation

VictorAKang
Copy link
Contributor

Proposed Changes

Start of courses migration. Migrated create, delete, and get course by id.

Coverage of new files is at 33% however most of the branches that are being missed are the ones that test for sanity checking (e.g. if default roles are created) or for disastrous cases (i.e. database is broken) so unless requested to test this scenarios I will keep the low test coverage.

Still missing transforming the functions into APIs. Will do in next PR.

Copy link
Collaborator

@armintalaie armintalaie left a comment

Choose a reason for hiding this comment

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

Looks good @VictorAKang.

I pushed some changes:

  • API had some type issues
  • moved default roles to seed.sql
  • left some comments that can be later addressed. look for @victor in code (ideally it would be a PR comment but I wanted to get this in asap)

everything else looks really good!! thanks

@armintalaie armintalaie merged commit 8a6108b into posts Mar 14, 2025
1 check passed
@armintalaie armintalaie deleted the courses-migration branch March 14, 2025 21:21
armintalaie added a commit that referenced this pull request Mar 14, 2025
* server code checkpoint

* shared package update

* users api tests

* Initial migration of courses APIs. Create course, get course by id, and add user to course migrated. Still require tests and a bit of refactoring

* Fix bug

* test

* Add post test setup

* Courses migration of create, delete and get course by id (#341)

* Added deffault roles and fixed bug on course creation

* Added tests for create, delete, get, get all courses

* moved init data to seed; syntax fixes; notes

---------

Co-authored-by: Armin T <[email protected]>

---------

Co-authored-by: Victor Akita Kang <[email protected]>
Co-authored-by: Boris Wang <[email protected]>
Co-authored-by: Victor Akita Kang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants