Skip to content

Commit

Permalink
feat: SRS-512 - fetch sites + places autocomplete options (#253)
Browse files Browse the repository at this point in the history
* SRS-512: Places entity + seed data, findSitesAndPlaces query

* WIP: SRS-512 - fetch sites + places autocomplete options

* fix tests

* move `typeorm-seeding` from devDeps to deps

* typo

* add findSitesAndPlaces tests

* generated

* add autocomplete option icons

* findSitesAndPlaces: prioritize ID matches in sites query

* nope

* make generic responses work

* fix query, move data formatting into a separate function

* generated files

* revert packages.json change
  • Loading branch information
anton-bcgov authored Jan 16, 2025
1 parent 7a680cf commit d87d973
Show file tree
Hide file tree
Showing 13 changed files with 506 additions and 167 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ describe('ParcelDescriptionsService', () => {
srAction: 'approved',
userAction: 'approved',
apiAction: 'updated',
srValue: false
srValue: false,
};
parcelDescriptionToAdd = {
id: idForAddedParcelDescription,
Expand All @@ -563,7 +563,7 @@ describe('ParcelDescriptionsService', () => {
srAction: 'pending',
userAction: 'pending',
apiAction: 'added',
srValue: false
srValue: false,
};
parcelDescriptionToDelete = {
id: idForDeletedParcelDescription,
Expand All @@ -574,7 +574,7 @@ describe('ParcelDescriptionsService', () => {
srAction: 'pending',
userAction: 'pending',
apiAction: 'deleted',
srValue: false
srValue: false,
};

siteId = '100';
Expand Down Expand Up @@ -784,7 +784,7 @@ describe('ParcelDescriptionsService', () => {
srAction: 'pending',
userAction: 'pending',
apiAction: 'added',
srValue: false
srValue: false,
},
];
userInfo = { givenName: 'test' };
Expand Down Expand Up @@ -1016,7 +1016,7 @@ describe('ParcelDescriptionsService', () => {
srAction: 'approved',
userAction: 'approved',
apiAction: 'updated',
srValue: true
srValue: true,
},
];
userInfo = { givenName: 'test' };
Expand Down Expand Up @@ -1312,7 +1312,7 @@ describe('ParcelDescriptionsService', () => {
srAction: 'approved',
userAction: 'approved',
apiAction: 'deleted',
srValue: true
srValue: true,
},
];

Expand Down
2 changes: 1 addition & 1 deletion backend/src/app/services/site/site.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ describe('SiteService', () => {
displayName: 'SAGER, J.',
srAction: 'false',
userAction: 'pending',
srValue: true
srValue: true,
},
],
},
Expand Down
Loading

0 comments on commit d87d973

Please sign in to comment.