Skip to content

Commit

Permalink
sqlc: user and organization (#585)
Browse files Browse the repository at this point in the history
* sqlc: user

* CreateUser

* refactor: CreateUser

* fix: CreateUser tests

* refactor: remove unnecessary query

* ReadPublicProfile

* HandleUserUpdatedEvent

* remove unnecessary files

* configure organization repo

* CreateOrganization and CreateOrganizationForUser

CreateOrganization and CreateOrganizationForUser

* make AvatarUrl optional in GetOrganizationResponse

* GetOrganization

* style: GetOrganization

* GetOrganizationsByUser

* make AvatarUrl optional in GetOrganizationsByUserResponse

* refactor: GetOrganization

* GetOrganizationsForUser

* make AvatarUrl optional in GetOrganizationsForUserResponse

* UpdateOrganization

* DeleteOrganization

* AddRemoveInviteMember

* GetInvitationsByOrganization

* fix: getInvitationsByOrganization tests

* GetInvitationsByUser

* AvatarUrl optional in getInvitationsByUser response

* GetMembersByOrganization

* fix: members

* AcceptInvitation

* DeclineInvitation

* RevokeInvitation

* remove gorm

* style: lint

* cleanup

* refactor: tests

* fix: nil dereferenciation

* refactor: getOrganizationsById

* refactor querys

* add rollback

* tests: remove request headers

* fix: rollback error handling

* style: query names
  • Loading branch information
PaulKalho authored Jan 3, 2024
1 parent e5456ef commit a46166c
Show file tree
Hide file tree
Showing 45 changed files with 2,483 additions and 1,461 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ gen/**/helpers.go linguist-generated=false
services/impulse_svc/gen/** linguist-generated=true
services/**/schema.sql linguist-generated=true
**/*.expected linguist-generated=true
services/user-svc/repos/**/ linguist-generated=true

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions gen/dart/lib/proto/services/user_svc/v1/user_svc.pbjson.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a46166c

Please sign in to comment.