Repository navigation
Infrastructure: a closed fix pull request says who closed it, and the fix is offered again - #412
Merged
Merged
Conversation
… fix is offered again On the Infrastructure tab a finding kept the link to its pull request after a person closed it, with the bare word "closed" and no button, so the fix could not be asked for again. - The row says who closed the pull request and when, and that a new one can be opened. - "Open fix PR" shows again for an open finding whose pull request was closed without merging. An open, merged or draft pull request, and a finding that fell back to its runbook, get no button, as before. - `closedWords` takes any pull request record with the closed fields, so both tabs word it the same way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On the Infrastructure tab, a finding whose fix pull request was closed without merging kept the link with the bare word "closed" and no button, so the fix could not be asked for again. This is the page's half of CoderHelm/coderhelm-platform#666, which releases the record and sends who closed the pull request and when. The page works with older servers: the new fields are optional.
Changes
closedWordsaccepts any pull request record with the closed fields, so the Dependencies and Infrastructure tabs word it the same way.Verification
npm run lint,npm run typecheck,npm run check:openapiandnpm run buildpass indashboard/.e2e/infra-security.spec.tsande2e/security.spec.tsin full, with the other infrastructure specs: 58 passed, 2 new (the closed pull request for an admin, including an older server with no closer and the open, merged, draft and runbook cases; and for a member).