Skip to content
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

Merged
merged 46 commits into from
Apr 7, 2020
Merged

Bench mark report #280

merged 46 commits into from
Apr 7, 2020

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
src/tests/models/manager.js Outdated Show resolved Hide resolved
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

@@ -215,7 +215,6 @@ paths:
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

docs/openapi3.yaml Outdated Show resolved Hide resolved
@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.

None yet

2 participants