mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3857] [MERGED] feat: full text search for TeamCollections and TeamRequests #4558
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#4558
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/3857
Author: @balub
Created: 2/25/2024
Status: ✅ Merged
Merged: 3/5/2024
Merged by: @AndrewBastin
Base:
release/2024.3.0← Head:feat/full-text-search📝 Commits (10+)
391499cfeat: added a new route to handle search queries02b395dchore: made a team member guard for rest routesde36929chore: created new search results query response type50496a5feat: implemented FTS for team-collections42ab512feat: implemented FTS for team-requestsfb22a11chore: removed unused typecastdec0f59chore: added private keyword to helper functions3f3134achore: created new error const for FTS8c7e427chore: fixed issue with incorrect object in tree generation7d15532feat: created new migration file for fts additions to database tables📊 Changes
19 files changed (+474 additions, -45 deletions)
View changed files
📝
docker-compose.yml(+3 -3)➕
packages/hoppscotch-backend/prisma/migrations/20240226053141_full_text_search_additions/migration.sql(+17 -0)📝
packages/hoppscotch-backend/prisma/schema.prisma(+11 -11)📝
packages/hoppscotch-backend/src/auth/auth.controller.ts(+2 -6)📝
packages/hoppscotch-backend/src/auth/auth.service.ts(+4 -4)📝
packages/hoppscotch-backend/src/auth/guards/github-sso.guard.ts(+2 -1)📝
packages/hoppscotch-backend/src/auth/guards/google-sso.guard.ts(+2 -1)📝
packages/hoppscotch-backend/src/auth/guards/microsoft-sso-.guard.ts(+2 -1)📝
packages/hoppscotch-backend/src/auth/helper.ts(+0 -10)📝
packages/hoppscotch-backend/src/errors.ts(+26 -0)📝
packages/hoppscotch-backend/src/infra-config/infra-config.controller.ts(+4 -4)➕
packages/hoppscotch-backend/src/team-collection/helper.ts(+14 -0)➕
packages/hoppscotch-backend/src/team-collection/team-collection.controller.ts(+38 -0)📝
packages/hoppscotch-backend/src/team-collection/team-collection.module.ts(+2 -0)📝
packages/hoppscotch-backend/src/team-collection/team-collection.service.ts(+270 -1)➕
packages/hoppscotch-backend/src/team/guards/rest-team-member.guard.ts(+47 -0)➕
packages/hoppscotch-backend/src/types/CollectionSearchNode.ts(+17 -0)📝
packages/hoppscotch-backend/src/types/RESTError.ts(+2 -2)📝
packages/hoppscotch-backend/src/utils.ts(+11 -1)📄 Description
Closes HSB-322
Description
In this PR we introduce a new route that allows for full-text search to be performed over saved team collections and requests.
GET http://localhost:3170/v1/team-collection/search/:teamID/:searchQuery?take=5&skip=2We also have simple offset pagination available using the
takeandskipquery params.An example response to the above query may be like the following:
Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.