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(#9194): add api support for getting place by uuid #9177

Merged
merged 83 commits into from
Jul 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
de6b864
Move cht-script-api to cht-datasource
jkuester May 2, 2024
b429273
Clean up auth.js to fix Sonar
jkuester May 2, 2024
b63981e
Switch cht-datasource to be built with tsc
jkuester May 3, 2024
1701082
Use cht-datasource as TS lib in webapp
jkuester May 3, 2024
1f1961a
Fix up the -watch commands to listen for changes to cht-datasource
jkuester May 3, 2024
eb7e4b2
Clean up index code for cht-datasource
jkuester May 3, 2024
463f002
Tweak up tsconfig options. Generating source maps for debugging and e…
jkuester May 3, 2024
c2dc2df
Add cht-datasource support for getting a person
jkuester May 7, 2024
b00c298
Get ambient types working - tests broken
jkuester May 10, 2024
af16a8c
Make hard separation between local and remote
jkuester May 10, 2024
b508bc9
Take the parallel route where functions are available, but the base d…
jkuester May 13, 2024
c743fb2
Clean up cht-datasource based on Mokhtar's suggestions
jkuester May 13, 2024
149dcde
Clean up cht-datasource based on Mokhtar's suggestions
jkuester May 13, 2024
6b5e32c
Merge remote-tracking branch 'origin/9065_get_contact_by_id' into 906…
jkuester May 13, 2024
0a5e7f6
Refactor cht-datasource to support different access methodologies and…
jkuester May 14, 2024
f4cc564
Merge branch 'refs/heads/master' into 9065_get_contact_by_id
jkuester May 14, 2024
b2b3585
Fix linking issue with @medic/logger
jkuester May 14, 2024
ef8b511
Add cht-datasource unit tests
jkuester May 15, 2024
c87de8a
Fix webapp tests
jkuester May 15, 2024
5196de4
Clean everything up
jkuester May 15, 2024
640abab
Remove unnecessary eslint config
jkuester May 15, 2024
2a53e9d
Add eslint-plugin-jsdoc and require all exported entities have doc
jkuester May 17, 2024
fcd0c21
Update jsdocs to remove redundant documentation and expand other docs…
jkuester May 20, 2024
2039d74
Move Local Data Context code to be in `./local`
jkuester May 20, 2024
e5730b6
Move Remote Data Context code to be in `./remote`
jkuester May 20, 2024
6f8c428
Restructure data context code and add logging
jkuester May 22, 2024
266a9e8
Refactor V1 namespace to v1
jkuester May 22, 2024
6f7e3ff
Merge branch 'refs/heads/master' into 9065_get_contact_by_id
jkuester May 22, 2024
f4174ac
Remove request-promise-native from cht-datasouce since it broke webapp.
jkuester May 22, 2024
871c1ea
Update sentinel to use local data context
jkuester May 22, 2024
5c5469d
Update cht-datasource README to point to TSDoc
jkuester May 22, 2024
c454405
Add some development instructions to the cht-datasource README docs
jkuester May 22, 2024
1b81b78
Include doc on backwards compatibility of the API
jkuester May 22, 2024
d95beaa
Update cht-datasource DataContext to be able to run provided function…
jkuester May 24, 2024
738e4b4
Add support for /api/v1/person/:uuid endpoint
jkuester May 24, 2024
bbeece8
Add integration tests for /api/v1/person/:uuid api
jkuester May 24, 2024
9110233
Clean things up
jkuester May 24, 2024
815f920
Rename CHTScriptApiService to CHTDatasourceService
jkuester Jun 10, 2024
fa3e041
Rename getApi to just get
jkuester Jun 10, 2024
3128337
Rename cht-script-api.service file to be cht-datasource.service
jkuester Jun 10, 2024
d3b9532
Change DataContext.get to DataContext.bind
jkuester Jun 10, 2024
9ab853d
Merge branch 'refs/heads/master' into 9065_get_contact_by_id
jkuester Jun 10, 2024
45411d3
Watch cht-datasource when running dev-api
jkuester Jun 10, 2024
a22df65
Fix sonar issues
jkuester Jun 10, 2024
9dac6fe
Merge branch 'refs/heads/master' into 9065_get_contact_by_id
jkuester Jun 11, 2024
a76ebe7
Initial implementation for getting person with lineage.
jkuester May 30, 2024
8b24d26
Add support to cht-datasource for getting a person with lineage
jkuester Jun 11, 2024
7555619
Add unit tests for getting person with lineage for person api controller
jkuester Jun 11, 2024
af5afa9
Add integration test for get-person-with-lineage
jkuester Jun 11, 2024
13a80db
Add core DataValue union type
jkuester Jun 11, 2024
7d8f853
Finish building out imperative implementation and tests
jkuester Jun 11, 2024
deccb8f
Make getWithLineage doc more consistent
jkuester Jun 11, 2024
94a0a56
Add some logging around getting lineage
jkuester Jun 12, 2024
4964957
Change query param from withLineage to with_lineage
jkuester Jun 12, 2024
2f88512
Merge branch 'refs/heads/master' into 9065_get_person_with_lineage
jkuester Jun 12, 2024
06ed347
Clean up based on review comments
jkuester Jun 14, 2024
79503d8
Merge branch 'refs/heads/master' into 9065_get_person_with_lineage
jkuester Jun 14, 2024
b6314c2
Support getting place from local adapter
jkuester Jun 12, 2024
db4a14e
Support getting place from remote adapter. Expose via public APIs.
jkuester Jun 12, 2024
27d81f8
Support getting place from REST api
jkuester Jun 12, 2024
7360ce2
Add integration tests for getting place
jkuester Jun 12, 2024
a376778
Add support to cht-datasource for getting place with lineage
jkuester Jun 12, 2024
887f84b
Add support to api for getting place with lineage
jkuester Jun 12, 2024
5d45b98
Add integration test for getting place with lineage
jkuester Jun 12, 2024
5c5c066
Fix linting problem
jkuester Jun 12, 2024
cb65f92
Change query param from withLineage to with_lineage
jkuester Jun 12, 2024
ed081c7
Update user-contact service to use cht-datasource to load person for …
jkuester Jun 14, 2024
efd4c14
Clean up based on review comments
jkuester Jun 14, 2024
07870cb
Update create-user-for-contacts transtion to use cht-datasource
jkuester Jun 14, 2024
55a5dd1
Merge branch 'refs/heads/master' into 9065_get_place
jkuester Jun 14, 2024
f34e12e
Avoid validating anything about the parent of returned person/place
jkuester Jun 14, 2024
fbe278b
Inject datacontext into shared-libs/transitions
jkuester Jun 17, 2024
cb158f2
Remove unused DataContext
jkuester Jun 17, 2024
e24b47f
Consume cht-datasource from other transitions
jkuester Jun 17, 2024
fefe4a9
Consume cht-datasource user-management
jkuester Jun 17, 2024
c2e0ec5
Consume cht-datasource in contacts
jkuester Jun 18, 2024
c4c88c5
Clean up tests to use Qualifier.byUuid (and avoid mocking/faking)
jkuester Jun 18, 2024
c49697b
Clean up death_reporting transition to throw error if person not found
jkuester Jun 18, 2024
ea9252a
Clean up users getPlace to throw error if place not found
jkuester Jun 18, 2024
a5e5b4c
Fix linting
jkuester Jun 18, 2024
9d724cd
Block offline users from using api/v1/place endpoint
jkuester Jun 24, 2024
74a354c
Merge remote-tracking branch 'origin/master' into 9065_get_place
m5r Jun 26, 2024
d66297b
document structuredClone
m5r Jun 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused DataContext
  • Loading branch information
jkuester committed Jun 17, 2024
commit cb158f2c589240f3c8345e7495eaefbb3051ed9c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { DataContext, Person, Place, Qualifier } from '@medic/cht-datasource';
import { Person, Place, Qualifier } from '@medic/cht-datasource';

import { Doc, Transition } from '@mm-services/transitions/transition';
import { CreateUserForContactsService } from '@mm-services/create-user-for-contacts.service';
Expand Down
Loading