6 Commits

Author SHA1 Message Date
Sylvain Briat
fef0779aaa 1.4.2 2023-11-06 17:27:56 +01:00
Sylvain Briat
fb3f1cf4df updateProto 2023-11-06 17:27:49 +01:00
Sylvain Briat
703865dc38 Merge branch 'fixReadme' into 'main'
Fix readme

See merge request v3/service/matcher!19
2023-11-06 09:10:22 +00:00
Sylvain Briat
75bb82094d 1.4.1 2023-11-06 10:05:24 +01:00
Sylvain Briat
8d2964659b remove match id from doc 2023-11-06 10:05:10 +01:00
Sylvain Briat
8eb1b51457 Merge branch 'removeMatchId' into 'main'
Remove useless match id from matching in proto file

See merge request v3/service/matcher!18
2023-11-06 08:59:54 +00:00
5 changed files with 6 additions and 7 deletions

View File

@@ -181,7 +181,6 @@ If the matching is successful, you will get a result, containing :
- **page**: the number of the page that is returned (may be different than the number of the required page, if number of results does not match with perPage parameter) - **page**: the number of the page that is returned (may be different than the number of the required page, if number of results does not match with perPage parameter)
- **perPage**: the number of results per page (as it may not be specified in the request) - **perPage**: the number of results per page (as it may not be specified in the request)
- **data**: an array of the results themselves, each including: - **data**: an array of the results themselves, each including:
- **id**: an id for the result
- **adId**: the id of the ad that matches - **adId**: the id of the ad that matches
- **role**: the role of the ad owner in that match - **role**: the role of the ad owner in that match
- **distance**: the distance in metres of the resulting carpool - **distance**: the distance in metres of the resulting carpool

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@mobicoop/matcher", "name": "@mobicoop/matcher",
"version": "1.4.0", "version": "1.4.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@mobicoop/matcher", "name": "@mobicoop/matcher",
"version": "1.4.0", "version": "1.4.2",
"license": "AGPL", "license": "AGPL",
"dependencies": { "dependencies": {
"@grpc/grpc-js": "^1.9.9", "@grpc/grpc-js": "^1.9.9",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@mobicoop/matcher", "name": "@mobicoop/matcher",
"version": "1.4.0", "version": "1.4.2",
"description": "Mobicoop V3 Matcher", "description": "Mobicoop V3 Matcher",
"author": "sbriat", "author": "sbriat",
"private": true, "private": true,

View File

@@ -32,6 +32,7 @@ export class MatchGrpcController {
@UseInterceptors(CacheInterceptor) @UseInterceptors(CacheInterceptor)
@GrpcMethod('MatcherService', 'Match') @GrpcMethod('MatcherService', 'Match')
async match(data: MatchRequestDto): Promise<MatchingPaginatedResponseDto> { async match(data: MatchRequestDto): Promise<MatchingPaginatedResponseDto> {
console.log(data);
try { try {
const matchingResult: MatchingResult = await this.queryBus.execute( const matchingResult: MatchingResult = await this.queryBus.execute(
new MatchQuery(data, this.routeProvider), new MatchQuery(data, this.routeProvider),

View File

@@ -24,9 +24,8 @@ message MatchRequest {
int32 azimuthMargin = 15; int32 azimuthMargin = 15;
float maxDetourDistanceRatio = 16; float maxDetourDistanceRatio = 16;
float maxDetourDurationRatio = 17; float maxDetourDurationRatio = 17;
int32 identifier = 18; optional int32 page = 18;
optional int32 page = 19; optional int32 perPage = 19;
optional int32 perPage = 20;
} }
message ScheduleItem { message ScheduleItem {