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

fix: compliance report fuel supply end use logic #1587

Merged
merged 6 commits into from
Jan 6, 2025

Conversation

kevin-hashimoto
Copy link
Collaborator

  • fix: end use validation not triggering when empty value set
  • feat: auto select end use when it is the only option

note: will need to add the new seed values to migration in #1503 pr: #1565

@kevin-hashimoto kevin-hashimoto changed the title fix: end use logic fix: compliance report fuel supply end use logic Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

Frontend Test Results

  1 files  ±0  121 suites  ±0   41s ⏱️ ±0s
419 tests ±0  399 ✅ ±0  20 💤 ±0  0 ❌ ±0 
421 runs  ±0  401 ✅ ±0  20 💤 ±0  0 ❌ ±0 

Results for commit 1168a92. ± Comparison against base commit 9e2a069.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 2, 2025

Backend Test Results

503 tests  ±0   503 ✅ ±0   1m 42s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 1168a92. ± Comparison against base commit 9e2a069.

♻️ This comment has been updated with latest results.

}
}

if (params.column.colId === 'fuelCategory') {
Copy link
Collaborator

@dhaselhan dhaselhan Jan 3, 2025

Choose a reason for hiding this comment

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

Do you think its cleaner for column specific logic to live in a value setter or value getter for that column rather than a big if else in handle cell changed? I believe we kinda have a mix of both.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea I was debating this as well. The thing I don't like about ag grid is that they don't provide a clean validation schema that's separated from row/column/cell logic. I'm going to look to rework some of this logic in a refactor ticket

Copy link
Collaborator

@dhaselhan dhaselhan left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kevin-hashimoto kevin-hashimoto merged commit 23eec01 into release-0.2.0 Jan 6, 2025
11 checks passed
@kevin-hashimoto kevin-hashimoto deleted the fix/kevin-1545 branch January 6, 2025 20:17
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.

2 participants