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

Don't coerce numerical strings of CampaignActivities #1658

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

iamacook
Copy link
Member

Summary

After discussion, due to large numbers the coercion of boost, totalPoints and totalBoostedPoints (#1657) may cause issues. This reverts the change, validating that the values are numerical string.

Changes

  • Ensure boost, totalPoints and totalBoostedPoints of CampaignActivites are numerical string
  • Propagate the type
  • Update tests

@iamacook iamacook self-assigned this Jun 17, 2024
@iamacook iamacook requested a review from a team as a code owner June 17, 2024 08:29
@coveralls
Copy link

coveralls commented Jun 17, 2024

Pull Request Test Coverage Report for Build 9544432688

Details

  • 1 of 4 (25.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 92.316%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/routes/community/entities/campaign-activity.entity.ts 0 3 0.0%
Totals Coverage Status
Change from base Build 9543538523: 0.06%
Covered Lines: 6894
Relevant Lines: 7182

💛 - Coveralls

@iamacook iamacook merged commit 8308ec6 into main Jun 17, 2024
16 checks passed
@iamacook iamacook deleted the numerical-strings-campaign-activities branch June 17, 2024 10:53
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