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

Relax validation for loan funding data #71

Merged
merged 4 commits into from
May 12, 2023

Conversation

rpatel-figure
Copy link
Collaborator

Context

Relaxing multiple data validations made for specific fields in the funding field, particularly around effective times, to only check for a valid (AKA non-future) timestamp if the field itself is set to a non-default value. This supports cases where

  • times are not set on individual disbursement entries, in favor of setting the top-level start & end times
  • when funding is cancelled, unstarted, or incomplete

Changes

  • Update funding contract's input validation to only validate specific time fields if they are set
  • Treat a funding status string of "COMPLETE" the same as "COMPLETED" or "FUNDED"

@rpatel-figure rpatel-figure added patch Bug fixes or other non-breaking configuration changes fix A fix for a bug or other problem labels May 12, 2023
@github-actions
Copy link

github-actions bot commented May 12, 2023

Test Results

  14 files  ±0    14 suites  ±0   13m 21s ⏱️ + 4m 33s
  55 tests ±0    50 ✔️ ±0    5 💤 ±0  0 ±0 
159 runs  ±0  149 ✔️ ±0  10 💤 ±0  0 ±0 

Results for commit df5e6d4. ± Comparison against base commit 34351d4.

♻️ This comment has been updated with latest results.

@rpatel-figure rpatel-figure marked this pull request as ready for review May 12, 2023 21:50
Copy link
Contributor

@dkneisly-figure dkneisly-figure left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 46.66% and project coverage change: -0.85 ⚠️

Comparison is base (34351d4) 80.39% compared to head (0055793) 79.54%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #71      +/-   ##
==========================================
- Coverage   80.39%   79.54%   -0.85%     
==========================================
  Files          19       19              
  Lines         704      709       +5     
  Branches      162      170       +8     
==========================================
- Hits          566      564       -2     
  Misses         70       70              
- Partials       68       75       +7     
Impacted Files Coverage Δ
...enance/scope/loan/utility/FundingDataValidation.kt 82.14% <46.66%> (-5.71%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rpatel-figure rpatel-figure force-pushed the ravipatel/adjust-funding-data-validation branch from 0055793 to df5e6d4 Compare May 12, 2023 22:07
@rpatel-figure rpatel-figure merged commit 74bccab into main May 12, 2023
@rpatel-figure rpatel-figure deleted the ravipatel/adjust-funding-data-validation branch May 12, 2023 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for a bug or other problem patch Bug fixes or other non-breaking configuration changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants