mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3175] [MERGED] HBE-152 refactor: team invitation module in pseudo fp-ts #4266
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4266
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3175
Author: @mirarifhasan
Created: 7/7/2023
Status: ✅ Merged
Merged: 7/13/2023
Merged by: @AndrewBastin
Base:
release/2023.4.8← Head:refactor/team-invitation📝 Commits (5)
54bef30refactor: team invitation moduleb58acfefeat: added all feedbacke0cc143chore: input-arg file added1d93745chore: improved code readability089f682chore: removed stated return type📊 Changes
10 files changed (+291 additions, -444 deletions)
View changed files
📝
packages/hoppscotch-backend/src/admin/admin.service.ts(+2 -2)📝
packages/hoppscotch-backend/src/auth/auth.service.ts(+1 -1)📝
packages/hoppscotch-backend/src/mailer/mailer.service.ts(+3 -23)➕
packages/hoppscotch-backend/src/team-invitation/input-type.args.ts(+20 -0)📝
packages/hoppscotch-backend/src/team-invitation/team-invitation.resolver.ts(+37 -81)📝
packages/hoppscotch-backend/src/team-invitation/team-invitation.service.ts(+159 -213)📝
packages/hoppscotch-backend/src/team-invitation/team-invite-team-owner.guard.ts(+23 -41)📝
packages/hoppscotch-backend/src/team-invitation/team-invite-viewer.guard.ts(+29 -44)📝
packages/hoppscotch-backend/src/team-invitation/team-invitee.guard.ts(+16 -38)📝
packages/hoppscotch-backend/src/team-invitation/team-teaminvite-ext.resolver.ts(+1 -1)📄 Description
Closes HBE-152
Description
This PR introduces code refactoring that improves the consistency of coding patterns for
team invitationmodule across the other modules. Previouslyteam invitationmodule was written in fp-ts way, and now it's being converted into pseudo fp-ts way.Showing a general difference between fp-ts and pseudo fp-ts:
Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.