Skip to content

Added docs for exposure report - #9133

Merged
harshilsharma63 merged 5 commits into
masterfrom
data_spillage_exposure_radius_docs
Aug 11, 2026
Merged

Added docs for exposure report#9133
harshilsharma63 merged 5 commits into
masterfrom
data_spillage_exposure_radius_docs

Conversation

@harshilsharma63

Copy link
Copy Markdown
Member

Summary

Added docs for post exposure radius report.

Ticket Link

Fixes https://mattermost.atlassian.net/browse/MM-70063

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds administrator documentation for the new post exposure report within the Data Spillage/content-flagging workflow, to help reviewers understand how to generate the report and interpret its results.

Changes:

  • Adds a new “Generate a post exposure report” section describing report purpose, access points, contents, and limitations.
  • Updates quarantined message report documentation to include an embedded exposure_report.csv file and describe its role.
  • Adds cross-references from the quarantine review actions list to the new exposure report documentation.
Suppressed comments (1)

source/administration-guide/manage/admin/content-flagging.rst:118

  • Editor Evie (Blocker): Under “Generate a quarantined message report”, the sentence “Each report is a ZIP archive …” is now misleading because the post exposure report is a standalone CSV download. This can cause readers to think the exposure report downloads as a ZIP. Clarify that the ZIP applies to the quarantined message report, and that it includes exposure_report.csv.
Each report is a ZIP archive containing YAML metadata files, a CSV exposure report, and the original file attachments. YAML is used for the metadata files because it's both human-readable and machine-parseable, which makes the report suitable for manual review and for ingestion by downstream compliance or incident-response tooling. The exposure report is CSV so that reviewers can open it directly in a spreadsheet.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread source/administration-guide/manage/admin/content-flagging.rst Outdated
Comment thread source/administration-guide/manage/admin/content-flagging.rst Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fd98232a-40c8-4c95-a499-fe1217a88c8b

📥 Commits

Reviewing files that changed from the base of the PR and between 7becb38 and 7d14792.

📒 Files selected for processing (1)
  • source/administration-guide/manage/admin/content-flagging.rst
🚧 Files skipped from review as they are similar to previous changes (1)
  • source/administration-guide/manage/admin/content-flagging.rst

📝 Walkthrough

Walkthrough

The content flagging guide documents exposure reports, including access points, CSV structure, interpretation, limitations, and generation behaviour. Quarantined-message ZIP reports now include exposure_report.csv and use report format version 1.1.

Changes

Content flagging reports

Layer / File(s) Summary
Quarantined-message report updates
source/administration-guide/manage/admin/content-flagging.rst
The guide documents exposure_report.csv, report format version 1.1, archive contents, and generation notifications.
Exposure report guidance
source/administration-guide/manage/admin/content-flagging.rst
The guide documents access points, CSV fields, metadata, interpretation, localization, exposure scope, and report limitations.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: adding documentation for the exposure report.
Description check ✅ Passed The description accurately relates the changes to documenting the post-exposure radius report and references the relevant ticket.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch data_spillage_exposure_radius_docs

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@source/administration-guide/manage/admin/content-flagging.rst`:
- Line 224: Update the public-channel coverage bullet in the content-flagging
documentation to remove the “browsing and joining the channel” example, since
users who join during the reporting window are covered by membership history.
Keep only non-membership access paths, such as permalink previews and
public-channel search without membership.
- Around line 207-214: Update the exposure-classification guidance near the
report metadata comparison to define the message’s valid visibility interval and
classify exposure only when the live “Last viewed channel at” timestamp falls
within that interval; preserve the existing uncertainty guidance for values
outside or missing from the interval. At
source/administration-guide/manage/admin/content-flagging.rst lines 216-216,
limit reproducibility claims to deterministic row ordering and do not describe
live read-state values as immutable report output.
- Line 223: Remove the stray “Ad” text after the email notification contents
reference in the notification delivery paragraph so the sentence ends with
“settings.”
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7ad906a8-b81d-46e5-8213-0eb77c1cda23

📥 Commits

Reviewing files that changed from the base of the PR and between cdef019 and 27b475a.

📒 Files selected for processing (1)
  • source/administration-guide/manage/admin/content-flagging.rst

Comment thread source/administration-guide/manage/admin/content-flagging.rst
Comment thread source/administration-guide/manage/admin/content-flagging.rst Outdated
Comment thread source/administration-guide/manage/admin/content-flagging.rst Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 27b475a

@harshilsharma63

Copy link
Copy Markdown
Member Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 7becb38

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA c815d74

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
source/administration-guide/manage/admin/content-flagging.rst (1)

138-138: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Name the archive and CSV versions separately.

Line 138 documents archive format version 1.1, while the CSV example at Line 181 uses # Report version: 1.0. Without scope labels, readers and importers can treat these values as contradictory. Verify the emitted metadata and document distinct names such as Archive format version and Exposure report version.

Suggested wording
-... report format version ...
+... archive format version ...

-   # Report version: 1.0
+   # Exposure report version: 1.0

Also applies to: 181-181

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@source/administration-guide/manage/admin/content-flagging.rst` at line 138,
Update the report version documentation near report_metadata.yaml and the
exposure_report.csv example to distinguish archive format version from exposure
report version, using explicit scope labels. Verify the emitted metadata and
ensure the documented values and names match the actual archive and CSV output
without implying they are the same version.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@source/administration-guide/manage/admin/content-flagging.rst`:
- Around line 165-168: Add a warning directive immediately after the exposure
report download instructions, stating that reports must be accessible only to
authorised personnel, stored in an approved access-controlled location, and
retained according to the organisation’s retention policy.
- Line 118: Update the report-format description near the ZIP archive statement
to distinguish quarantined message reports from standalone post exposure
reports. State that ZIP archives apply only to quarantined message reports, and
identify the standalone post exposure report as CSV so readers understand the
separate download formats.

---

Nitpick comments:
In `@source/administration-guide/manage/admin/content-flagging.rst`:
- Line 138: Update the report version documentation near report_metadata.yaml
and the exposure_report.csv example to distinguish archive format version from
exposure report version, using explicit scope labels. Verify the emitted
metadata and ensure the documented values and names match the actual archive and
CSV output without implying they are the same version.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 14c3a904-afe5-4069-bf3e-5f6761ee66fa

📥 Commits

Reviewing files that changed from the base of the PR and between cdef019 and 7becb38.

📒 Files selected for processing (1)
  • source/administration-guide/manage/admin/content-flagging.rst

Comment thread source/administration-guide/manage/admin/content-flagging.rst Outdated
Comment thread source/administration-guide/manage/admin/content-flagging.rst
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 7d14792

@davidkrauser davidkrauser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👏

@Combs7th

Combs7th commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

LGTM! Thanks, @harshilsharma63! Is this also for v11.11?

@harshilsharma63

Copy link
Copy Markdown
Member Author

@Combs7th yes, its for v11.11

@harshilsharma63 harshilsharma63 added this to the v11.11.0 milestone Aug 11, 2026
@harshilsharma63
harshilsharma63 merged commit 8f0f8c6 into master Aug 11, 2026
4 of 5 checks passed
@harshilsharma63
harshilsharma63 deleted the data_spillage_exposure_radius_docs branch August 11, 2026 06:02
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA f1b9f9d

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.

4 participants