Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix(bridge): Fix missing evaluation score of sequence (#8032)
Browse files Browse the repository at this point in the history
* fix(bridge): Fix missing evaluation score of sequence

Signed-off-by: Klaus Strießnig <k.striessnig@gmail.com>

* fixed unit test

Signed-off-by: Klaus Strießnig <k.striessnig@gmail.com>
  • Loading branch information
Kirdock authored Jun 8, 2022
1 parent 592d97f commit 3fe27e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bridge/server/services/api-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ApiService {
traceOptions: TraceOptions
): Promise<AxiosResponse<EventResult>> {
const resultString = traceOptions.result ? ` AND data.result:${traceOptions.result}` : '';
const sourceString = traceOptions.source ? ` AND data.source:${traceOptions.source}` : '';
const sourceString = traceOptions.source ? ` AND source:${traceOptions.source}` : '';
const params = {
filter: `data.project:${traceOptions.project} AND data.service:${traceOptions.service} AND data.stage:${traceOptions.stage}${sourceString}${resultString}`,
excludeInvalidated: 'true',
Expand Down
2 changes: 1 addition & 1 deletion bridge/server/test/project.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ describe('Test project resources', () => {
axiosMock
.onGet(`${global.baseUrl}/mongodb-datastore/event/type/${EventTypes.EVALUATION_FINISHED}`, {
params: {
filter: `data.project:${projectName} AND data.service:carts AND data.stage:dev AND data.source:${KeptnService.LIGHTHOUSE_SERVICE}`,
filter: `data.project:${projectName} AND data.service:carts AND data.stage:dev AND source:${KeptnService.LIGHTHOUSE_SERVICE}`,
excludeInvalidated: 'true',
limit: '1',
},
Expand Down

0 comments on commit 3fe27e0

Please # to comment.