Skip to content

Conversation

@OrFrenkelZooz
Copy link
Collaborator

No description provided.

# Conflicts:
#	docs/openapi3.yaml
#	src/tests/models/database/cassandra/cassandraConnector.js
#	src/tests/models/manager.js
#	src/tests/routes/testsRoute.js
#	tests/integration-tests/tests/tests-test.js
#	tests/unit-tests/tests/models/manager-test.js
# Conflicts:
#	docs/devguide/docs/swagger-docs.yaml
#	docs/openapi3.yaml
#	src/database/cassandra-handler/init-scripts/18__bench_mark_data_tests.cql
#	src/reports/models/database/cassandra/cassandraConnector.js
#	src/tests/controllers/testsController.js
#	src/tests/models/database.js
#	src/tests/models/database/cassandra/cassandraConnector.js
#	src/tests/models/manager.js
#	src/tests/routes/testsRoute.js
if (testBenchMarkData) {
const reportAggregate = await aggregateReportManager.aggregateReport(report);
const reportBenchMark = benchmarkCalculator.calculate(testBenchMarkData, reportAggregate.aggregate);
const { data, score } = reportBenchMark;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

benchmarkCalculator.calculate returns data, but data is the input
need to change that.

i would suggest the function
benchmarkCalculator.calculate will be called benchmarkCalculator.calculateReportScore and return number

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was only temp, it will return the score, and data is the way we got to this score it will not be the same data as input

application/json:
schema:
$ref: '#/components/schemas/error_response'
# Tests
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert (# Tests

@enudler enudler merged commit e467f57 into master Apr 7, 2020
@enudler enudler deleted the bench-mark-report branch April 9, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants