-
-
Notifications
You must be signed in to change notification settings - Fork 219
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(9586): implement freetext search in cht datasource #9625
Open
sugat009
wants to merge
73
commits into
master
Choose a base branch
from
9586-implement-freetext-search-in-cht-datasource
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
ac0ab67
Initial setup
sugat009 cd11adc
add /api/v1/contacts/:uuid endpoint
sugat009 b7c5d1f
add /api/v1/contact/:uuid?with_lineage=<option> endpoint
sugat009 f91e393
add missing files
sugat009 52ac11b
add missing files
sugat009 c1b68cf
add endpoint /api/v1/report
sugat009 45c0ccf
add additional checks for report validity
sugat009 acf903a
add /api/contact/id endpoint (not tested yet)
sugat009 89927b1
add endpoint /api/v1/report/id --untested
sugat009 45abf58
implement search feature in /api/contact/id endpoint
sugat009 6f5c326
add search functionality to /api/report/id endpoint
sugat009 192af16
add async API Contact.v1.getIdsAll
sugat009 bb98dcf
add async API Report.v1.getIds
sugat009 43efbef
add JSDocs for functions
sugat009 ede85fd
Merge remote-tracking branch 'origin/master' into 9586-implement-free…
sugat009 2b33c07
add unit tests for index.ts, qualifier.ts and contact.ts
sugat009 3bfcace
add unit tests for report.ts
sugat009 074b0c1
add tests for local/contact.js
sugat009 1907907
add some additional tests in local/contact.spec.ts
sugat009 a629116
add tests for local/report.ts
sugat009 c45cee8
add unit tests for remote/contact.ts
sugat009 5400736
add unit tests for remote/report.ts
sugat009 bf46e4a
add unit tests for contact-types.ts
sugat009 b1cf669
remove unused variables
sugat009 98fd4e2
add unit tests for api/src/controllers/contact.js
sugat009 ee32262
add tests for api/src/controllers/report.js
sugat009 b5bc6e6
Merge remote-tracking branch 'origin/master' into 9586-implement-free…
sugat009 4a18fc8
Merge remote-tracking branch 'origin/master' into 9586-implement-free…
sugat009 eba1b61
add integration test for api/src/controller/contact.js
sugat009 9157059
add integration tests for api/src/controllers/report.js
sugat009 d5fed9c
fix eslint issues
sugat009 30d058e
changes missed during copy-paste
sugat009 662598c
change title of tests
sugat009 89eb816
fix indentation
sugat009 3ea31ef
fix max-line 120 issue
sugat009 a7a9272
rename getIdsAll functions to getIds
sugat009 ef8b93f
add tests in controller unit tests for when limit is undefined or null
sugat009 43c3896
add page limits and end of alphabet marker to separate constants file
sugat009 f97f928
add function in qualifier.ts to check for key-value based freetext qu…
sugat009 2065125
separate out the endpoints integration tests and cht-datasource integ…
sugat009 f8087b9
remove unused variables
sugat009 e6aea4f
move src/constants.ts to src/libs/constants.ts
sugat009 c21e52a
change limit to number and stringified number in cht-datasource
sugat009 c487a7e
Update shared-libs/cht-datasource/src/qualifier.ts
sugat009 ce1013a
Update shared-libs/cht-datasource/test/contact.spec.ts
sugat009 19143b4
Update shared-libs/cht-datasource/src/remote/contact.ts
sugat009 8dc7de3
addressing PR review comments
sugat009 91a0125
Merge branch '9586-implement-freetext-search-in-cht-datasource' of gi…
sugat009 49553b7
address most of the comments
sugat009 22da4b9
fix integration tests
sugat009 4a0d2bb
fix api unit tests
sugat009 bfa0a57
refactor getWithLineage contacts logic
sugat009 eab5877
listen to eslint
sugat009 1cca39c
complete a round of feedbacks
sugat009 abff459
remove assertions in afterEach
sugat009 9673d78
almost done
sugat009 6f1280a
implement getDocUUids functions
sugat009 a79d93f
Merge remote-tracking branch 'origin/master' into 9586-implement-free…
sugat009 be48c13
fix some stuff
sugat009 e523a25
add temp auth setters in cht-datasource specific integration tests
sugat009 d4bc934
feat: refactor contact code to remove contact-types.ts (#9753)
jkuester 783d9d6
Update shared-libs/cht-datasource/src/contact.ts
sugat009 d7f8ca1
Update shared-libs/cht-datasource/src/contact.ts
sugat009 9fc41d9
Update shared-libs/cht-datasource/src/qualifier.ts
sugat009 423ee0a
Update shared-libs/cht-datasource/src/qualifier.ts
sugat009 2641477
qualifier.ts changes
sugat009 faac438
Merge branch '9586-implement-freetext-search-in-cht-datasource' of gi…
sugat009 6878952
Update shared-libs/cht-datasource/src/local/libs/doc.ts
sugat009 70e0db5
Update shared-libs/cht-datasource/src/local/libs/doc.ts
sugat009 f8c7be5
Update shared-libs/cht-datasource/src/local/libs/doc.ts
sugat009 760e916
feedback implementation
sugat009 91ef121
Merge branch '9586-implement-freetext-search-in-cht-datasource' of gi…
sugat009 bac5e2c
remove unused imports
sugat009 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So ... this endpoint .. if it doesn't get neither a
freetext
query param or alimit
query param, it will end up returning ALL reports?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope. it returns a
400 - Bad request
error becausefreetext
is required whereaslimit
is set to a default of 10000.