feat: fetch all/more reviewers + show “suggested” (code owner) reviewers too#728
feat: fetch all/more reviewers + show “suggested” (code owner) reviewers too#728dlvhdr merged 3 commits intodlvhdr:mainfrom
Conversation
dlvhdr
left a comment
There was a problem hiding this comment.
Looks really good! Just small comments
6e48078 to
d7c50b5
Compare
…ers too Move ReviewRequests and Reviews from PullRequestData to EnrichedPullRequestData, increasing the limit from 5 to 100. Show a "Loading…" state while enriched data is being fetched. Show reviewers who only left a COMMENTED review (not just APPROVED or CHANGES_REQUESTED). Show suggestedReviewers (code owners who haven't been requested yet) via GitHub's GraphQL API, displayed in faint style with the owner icon.
|
@sideshowbarker I did a bit more testing and it seems there's a small bug. PR for example: charmbracelet/bubbles#639 |
hmm yeah, you’re right — when we are looping there, we just need to continue for any COMMENT we reach when the previous state is a non-comment. So I will make it do that
Pretty sure that is how they are ordered already. I think the only problem with that is, for a comment which in creation order comes in after a non-comment, we just want that to be a no-op (like discussed above). But for anything else, we do want to just take them as-is as they are — in creation-date order, But I will test it and make sure. |
Make a COMMENTED state never override an APPROVED or CHANGES_REQUESTED state, for the purposes of the state indicator we show in Reviewers. Make the indicator stay at the most-significant state. Fixes dlvhdr#728 (comment)
Made it so.
So after looking and thinking, I believe we’re doing the right thing — with ordering y UPDATED_AT. Treating the “follow up” comments as more-significant than the actual actions just had kind of thrown a wrench in that. But with the follow-up-comment handling made right now, I think the basic handling/ordering is how we want it to be. |
Make a COMMENTED state never override an APPROVED or CHANGES_REQUESTED state, for the purposes of the state indicator we show in Reviewers. Make the indicator stay at the most-significant state. Fixes dlvhdr#728 (comment)
dlvhdr
left a comment
There was a problem hiding this comment.
looks great! thx again for the work!
Summary
This change implements two follow-ups in response to #724 review comments:
#724 (comment)
#724 (comment)
Specifically:
How did you test this change?
Updated internal/tui/components/prview/reviewers_test.go with new tests.