-
Notifications
You must be signed in to change notification settings - Fork 111
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
Bench mark report #280
Bench mark report #280
Conversation
# 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
src/database/cassandra-handler/init-scripts/19__bench_mark_data_reports.cql
Outdated
Show resolved
Hide resolved
src/reports/models/reportsManager.js
Outdated
if (testBenchMarkData) { | ||
const reportAggregate = await aggregateReportManager.aggregateReport(report); | ||
const reportBenchMark = benchmarkCalculator.calculate(testBenchMarkData, reportAggregate.aggregate); | ||
const { data, score } = reportBenchMark; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
docs/openapi3.yaml
Outdated
@@ -215,7 +215,6 @@ paths: | |||
application/json: | |||
schema: | |||
$ref: '#/components/schemas/error_response' | |||
# Tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert (# Tests
No description provided.