Skip to content

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

Merged
CollinBeczak merged 1 commit into
mainfrom
fix/mr-tags-on-review
Jul 10, 2026
Merged

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

Conversation

@CollinBeczak

@CollinBeczak CollinBeczak commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Backend pr: maproulette/maproulette-backend#1249
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.
@CollinBeczak CollinBeczak marked this pull request as ready for review July 10, 2026 17:32
@CollinBeczak CollinBeczak merged commit 4a89edf into main Jul 10, 2026
6 checks passed
@CollinBeczak CollinBeczak deleted the fix/mr-tags-on-review branch July 10, 2026 17: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.

1 participant