Skip to content

Conversation

@jochen
Copy link

@jochen jochen commented Jun 17, 2025

what

If the api is called for plan and policies are activated, the commentCommand is shorter than the count of cmds. This leads to a 500.
The check prevents a crash here and a warning is issued.
I could not find out why there is a discrepancy here.

why

First of all to prevent the crash and thus prevent the 500. The warning can then help to recognize the cases when both counts deviate from each other.

tests

Tests were carried out manually, after the change there were no more api/plan 500s with activated policies.

references

It may alsocloses a GitHub issue #4318, but you cannot see whether policies are active.

@github-actions github-actions bot added the go Pull requests that update Go code label Jun 17, 2025
@dosubot dosubot bot added the bug Something isn't working label Jun 17, 2025
@jochen jochen force-pushed the try-fix-api-500-with-policies branch from 5f55833 to d1fc0a5 Compare July 15, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants