Repository navigation
Bug 2085143 - #2843
Merged
Merged
Bug 2085143#2843
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the change adding warnings for mentioned users who cannot access a bug.
No open issues 🎉
What changed in this PR
Addresses Bug 2085143 by warning commenters when mentioned users cannot see a bug and therefore will not be CC’d or receive a needinfo request. Existing access safeguards remain unchanged.
Changes:
- Separates inaccessible mentioned users into a
no_accessresult. - Displays those users in the comment editor’s live warning.
- Adds unit and REST tests for visibility and privacy handling.
| File | Description |
|---|---|
template/en/default/global/text-editor-include.html.tmpl |
Adds warning text for inaccessible mentioned users. |
qa/t/rest_needinfo_mentions.t |
Tests REST responses for restricted and public bugs. |
js/text-editor.js |
Displays the new access warning in the comment editor. |
extensions/Needinfo/t/mentions.t |
Tests separate access results and existing notification safeguards. |
extensions/Needinfo/lib/API/V1/Mentions.pm |
Returns both mentions and no_access lists. |
extensions/Needinfo/Extension.pm |
Separates notification-eligible users from users lacking access and updates callers. |
Review effort: Balanced
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.
Review+ carried over from private pull request.
https://bugzilla.mozilla.org/show_bug.cgi?id=2085143