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: route for editing team member role #155

Merged
merged 20 commits into from
Jan 22, 2024
Merged

Feat: route for editing team member role #155

merged 20 commits into from
Jan 22, 2024

Conversation

e11sy
Copy link
Contributor

@e11sy e11sy commented Jan 8, 2024

  • added route for editing team member role
  • added test for this route
  • added test data for note-teams
  • added function to write test data into database

e11sy added 3 commits January 10, 2024 23:06
- added route for editing team member role
- added test for this route
- added test data for note-teams
- added function to write test data into database
- new tests added
- enum with no strings
- changed id in test data
@e11sy e11sy force-pushed the edit-team-member-role branch from 583915d to 7e8722d Compare January 10, 2024 20:33
e11sy added 5 commits January 10, 2024 23:34
- added route for editing team member role
- added test for this route
- added test data for note-teams
- added function to write test data into database
- new tests added
- enum with no strings
- type of role changed to typeof keyof MemberRole
- fixed some test data
- deleted unwanted output
src/presentation/http/router/noteSettings.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.ts Outdated Show resolved Hide resolved
- changed tests description
- deleted unwanted semicolon
src/domain/service/noteSettings.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.ts Show resolved Hide resolved
src/presentation/http/router/noteSettings.ts Outdated Show resolved Hide resolved
e11sy added 2 commits January 14, 2024 12:44
- parameters now pass in Params, not in body
- now we dont use noteInternalId
- added schema to validate notePublicId
- added todo for new policy for this route
- deleted unwanted spaces in output
src/presentation/http/router/noteSettings.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteSettings.ts Outdated Show resolved Hide resolved
e11sy added 2 commits January 15, 2024 15:06
- keyof typeof MemberRole now is MemberRoleKeys
- comments changed
- todo changed
e11sy added 2 commits January 18, 2024 19:19
added new comments for note teams test
- switched back to memberRole because newRole passing is 0 | 1
- moved newRole to body
- changed url for route
- added comments
e11sy added 2 commits January 20, 2024 15:24
- moved userId to body in route
- changed tests
- added comments
- test description updated
- added docs
@e11sy e11sy merged commit 727b50f into main Jan 22, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants