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

[TM-1439] add delayed job for hectares restored controller #547

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

LimberHope
Copy link
Collaborator

@LimberHope LimberHope marked this pull request as draft November 4, 2024 14:19
@LimberHope LimberHope marked this pull request as ready for review November 4, 2024 14:52
}

public function polygonToOutputHectares($indicatorId, $polygonsUuids)
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

There has been many cases where polygonsUuids can be empty.
Which then makes the query to have a in () with a empty parenthesis.
Please add a validation to handle this cases.

];
}

public function getProjectsPolygons($projects)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as below, please add a check for empty projects.

@LimberHope LimberHope merged commit b7e95b1 into staging Nov 4, 2024
1 check passed
@LimberHope LimberHope deleted the TM-1439_add_delayed_job_for_hectares_restored branch November 4, 2024 15:33
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