Skip to content

Show MR tags in review pane without requiring a refresh#2851

Draft
CollinBeczak wants to merge 1 commit into
mainfrom
fix/mr-tags-on-review
Draft

Show MR tags in review pane without requiring a refresh#2851
CollinBeczak wants to merge 1 commit into
mainfrom
fix/mr-tags-on-review

Conversation

@CollinBeczak

Copy link
Copy Markdown
Collaborator

Request includeTags=true when fetching a task for review (both fetchTaskForReview and loadNextReviewTask) so the tags arrive with the task payload from the matching backend change.

Also fix a state-tracking bug in ReviewTaskControls.componentDidUpdate: the task-switch branch could set state.tags to "" (empty string) when the next task arrived without tags, after which the state.tags === null guard prevented later-arriving tags from ever populating. Use !state.tags and tags || null so empty-string state is treated the same as null.

Request `includeTags=true` when fetching a task for review (both
`fetchTaskForReview` and `loadNextReviewTask`) so the tags arrive with
the task payload from the matching backend change.

Also fix a state-tracking bug in `ReviewTaskControls.componentDidUpdate`:
the task-switch branch could set `state.tags` to `""` (empty string)
when the next task arrived without tags, after which the
`state.tags === null` guard prevented later-arriving tags from ever
populating. Use `!state.tags` and `tags || null` so empty-string state
is treated the same as null.

Fixes rdar://120004366.
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.

1 participant