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

feat(utils): add scoring logic #133

Merged
merged 17 commits into from
Oct 25, 2023
Merged

feat(utils): add scoring logic #133

merged 17 commits into from
Oct 25, 2023

Conversation

BioPhoton
Copy link
Collaborator

@BioPhoton BioPhoton commented Oct 19, 2023

This is the first of a couple of PR's to implement scoring.
It includes the logic to calculate the score as as well as the tests from the portal project.
Additionally I introduced a scoreReport function and ScoredReport type which should be used in the reporting logic

Potential improvements to this PR are listed here #132 and research here #137

@BioPhoton BioPhoton self-assigned this Oct 19, 2023
@BioPhoton BioPhoton added ➕ enhancement new feature or request 🧩 utils labels Oct 20, 2023
@BioPhoton BioPhoton changed the title refactor: add scoring logic feat(utils): add scoring logic Oct 22, 2023
Copy link
Collaborator

@matejchalk matejchalk left a comment

Choose a reason for hiding this comment

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

I have some nitpicks, but overall I really like this PR 🙂

e2e/cli-e2e/tests/__snapshots__/collect.spec.ts.snap Outdated Show resolved Hide resolved
packages/utils/src/lib/scoring.spec.ts Show resolved Hide resolved
packages/utils/src/lib/scoring.ts Outdated Show resolved Hide resolved
packages/utils/src/lib/scoring.ts Outdated Show resolved Hide resolved
packages/models/src/lib/category-config.ts Outdated Show resolved Hide resolved
packages/utils/src/lib/scoring.ts Show resolved Hide resolved
BioPhoton and others added 6 commits October 24, 2023 23:28
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
packages/models/src/lib/category-config.ts Outdated Show resolved Hide resolved
packages/utils/src/lib/scoring.ts Outdated Show resolved Hide resolved
packages/utils/src/lib/scoring.ts Show resolved Hide resolved
BioPhoton and others added 5 commits October 25, 2023 12:59
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
@BioPhoton BioPhoton merged commit 89fecbb into main Oct 25, 2023
6 checks passed
@BioPhoton BioPhoton deleted the add-scoring-logic branch October 25, 2023 12:51
@BioPhoton BioPhoton mentioned this pull request Oct 29, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ enhancement new feature or request 🧩 utils
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants