bcgov / bcgov/lcfs

LCFS - Ensure compliance units placed in reserve are properly released

Open
#4,143 1 comment 0 reactions 1 assignee Claimed by @AlexZorkin View on GitHub
Compliance Reporting Medium Task
Dominant language
Python
Stars
6
Forks
6
Avg merge
2d 7h
Merged PRs (30d)
87

Description

**Describe the task**
Investigate and fix the behavior when deleting a **Reassessment** to ensure that any compliance units placed in **reserve** are properly released. Additionally, confirm whether the same behavior applies to **Analyst adjustments** and ensure consistency across both scenarios.

**Purpose**
Ensures that compliance unit balances remain accurate and that reserved units are not incorrectly held after a reassessment or analyst adjustment is deleted.

**Acceptance Criteria**
- [ ] Confirm whether deleting a Reassessment correctly releases any compliance units held in reserve.
- [ ] If not functioning correctly, implement a fix to release reserved units upon deletion.
- [ ] Verify whether Analyst adjustments follow the same reserve/release logic.
- [ ] Ensure consistent behavior between Reassessments and Analyst adjustments.
- [ ] Validate that compliance unit balances are accurate after deletion actions.
- [ ] No unintended side effects occur to other transaction or ledger processes.

**Additional context**
- Focus on both data integrity and transaction consistency in the credit ledger.
- May require reviewing how reserve transactions are created, tracked, and reversed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.