Description:
This feature allows allocators to undo a pending DataCap allocation before the proposal. It helps correct any mistakes and ensures the accuracy of the allocation process.
The verifier/application/remove_pending_allocation endpoint receives query parameters (VerifierActionsQueryParams) to check if the caller is an allocator. Based on these query parameters, the endpoint performs the following checks:
The current state of the application.
The existence of an active pull request.
Whether it is a first allocation or a refill allocation.
If the conditions are met, the endpoint performs the following actions:
For the First Allocation:
Reverts the application to the state it was in before starting the allocation.
Comments on the relevant GitHub issue and sets the label to validated.
Updates the record in the database.
For the Refill Allocation:
Deletes the active branch for the application.
Deletes the active pull request for the application.
Comments on the relevant GitHub issue and sets the label to Granted.
Deletes the record in the database for the new allocation.
Deployment Considerations:
No special actions are required.
Remove Pending Allocation
Endpoint: [POST] verifier/application/remove_pending_allocation
Description: This feature allows allocators to undo a pending DataCap allocation before the proposal. It helps correct any mistakes and ensures the accuracy of the allocation process.
The
verifier/application/remove_pending_allocation
endpoint receives query parameters (VerifierActionsQueryParams
) to check if the caller is an allocator. Based on these query parameters, the endpoint performs the following checks:If the conditions are met, the endpoint performs the following actions:
For the First Allocation:
validated
.For the Refill Allocation:
Granted
.Deployment Considerations: No special actions are required.