Skip to content

Proposal: ScoreCard model #1398

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

Merged
merged 3 commits into from
Jun 28, 2018
Merged

Proposal: ScoreCard model #1398

merged 3 commits into from
Jun 28, 2018

Conversation

isoos
Copy link
Collaborator

@isoos isoos commented Jun 21, 2018

This is the first step for #1352:

ScoreCard would be the new all-unifying Datastore entity that holds PackageVersion score and other details (the current AnalysisExtract), while ScoreCardReport would be the new place for detailed reports for: pana (the current AnalysisView), dartdoc (coverage report and score), and possible further ones like runtime analysis.

I've opted to not having a two-level structure (like Package and PackageVersion), rather having a single entry for a given combination of that.

A long-term aspect: this should make the items in lib/analysis/models.dart obsolete.

@isoos isoos requested a review from sortie June 21, 2018 14:12
Copy link

@sortie sortie left a comment

Choose a reason for hiding this comment

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

lgtm

List<String> panaPlatformTags;

@db.DoubleProperty()
double documentationScore;
Copy link

Choose a reason for hiding this comment

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

Document the fields in this key data class? For instance, is the values in documentationScore between 0.0 and 1.0, or 0.0 and 100.0?


void updateOverallScore() {
// TODO: use documentationScore too
overallScore = calculateOverallScore(
Copy link

Choose a reason for hiding this comment

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

Suggestion: Can overallScore be a getter that dynamically returns the score? Or can healthScore, maintenanceScore, popularityScore, and documentationScore be setters that also automatically regenerates the score?

@isoos isoos merged commit f77a7e3 into dart-lang:master Jun 28, 2018
@isoos isoos deleted the scorecard_model branch June 28, 2018 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants