Skip to content

docs: fix broken code, command, and link examples#9012

Open
emmayusufu wants to merge 1 commit into
mattermost:masterfrom
emmayusufu:docs-fix-code-and-command-examples
Open

docs: fix broken code, command, and link examples#9012
emmayusufu wants to merge 1 commit into
mattermost:masterfrom
emmayusufu:docs-fix-code-and-command-examples

Conversation

@emmayusufu
Copy link
Copy Markdown

While reading through the admin and deployment guides I found several examples that don't run or render as written. Each is a small, self-contained fix:

  • comply/electronic-discovery: the curl example's closing single quote was after the URL, so the URL ended up inside the Authorization header value and no request URL was passed. Moved the quote to right after the token.
  • configure/CJK search: missing semicolon after CREATE EXTENSION zhparser (the next statement on the following line has one).
  • manage/health-check-probes: the Go import used a github.com/.../tree/master/... web URL with an unbalanced quote; replaced with the real import path "github.com/mattermost/mattermost/server/public/model".
  • onboard/sso-entraid: the Microsoft Entra ID hyperlink was missing its opening backtick, so it rendered as literal text instead of a link.
  • scale/enterprise-search: opensearch used triple backticks; reStructuredText inline literals are double backticks (the adjacent elasticsearch uses double).
  • upgrade/admin-onboarding-tasks: the cross-reference display text read mmctl user deletall; the command is deleteall (the ref target itself spells it that way).
  • upgrade/upgrading-postgres: the PostgreSQL catalog is pg_statistic, not pg_statistics.
  • desktop/linux-install: the rpm upgrade flag is -U, not -u (-u isn't a valid rpm option).
  • server/linux/deploy-tar: rm - rf had a stray space inside the flag.

9 files, all one-line fixes. I'll sign the CLA so this can be merged.

Several examples across the admin and deployment guides don't run or render
as written:

- comply/electronic-discovery: the curl example had the closing single quote
  after the URL, putting the URL inside the Authorization header value. Moved
  it to right after the token.
- configure/CJK search: missing semicolon after CREATE EXTENSION zhparser.
- manage/health-check-probes: the Go import used a github.com/.../tree/master
  web URL and an unbalanced quote; replaced with the real import path.
- onboard/sso-entraid: the Microsoft Entra ID hyperlink was missing its
  opening backtick, so it didn't render as a link.
- scale/enterprise-search: opensearch used triple backticks; reStructuredText
  inline literals are double backticks (elasticsearch on the same line is).
- upgrade/admin-onboarding-tasks: cross-reference display text read
  'mmctl user deletall'; the command is deleteall (the ref target spells it).
- upgrade/upgrading-postgres: the catalog is pg_statistic, not pg_statistics.
- desktop/linux-install: rpm upgrade flag is -U, not -u.
- server/linux/deploy-tar: 'rm - rf' had a stray space inside the flag.
@mattermost-build
Copy link
Copy Markdown
Contributor

Hello @emmayusufu,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Per the Mattermost Contribution Guide, we need to add you to the list of approved contributors for the Mattermost project.

Please help complete the Mattermost contribution license agreement?
Once you have signed the CLA, please comment with /check-cla and confirm that the CLA check is green.

This is a standard procedure for many open source projects.

Please let us know if you have any questions.

We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 5, 2026

Too much diff to scan? Review this PR in Change Stack to start with the highest-impact changes.

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: e75c9bb6-505f-42f8-83df-2252eaac46b5

📥 Commits

Reviewing files that changed from the base of the PR and between 60081c0 and f3f518c.

📒 Files selected for processing (9)
  • source/administration-guide/comply/electronic-discovery.rst
  • source/administration-guide/configure/enabling-chinese-japanese-korean-search.rst
  • source/administration-guide/manage/configure-health-check-probes.rst
  • source/administration-guide/onboard/sso-entraid.rst
  • source/administration-guide/scale/enterprise-search.rst
  • source/administration-guide/upgrade/admin-onboarding-tasks.rst
  • source/administration-guide/upgrade/upgrading-postgres.rst
  • source/deployment-guide/desktop/linux-desktop-install.rst
  • source/deployment-guide/server/linux/deploy-tar.rst

📝 Walkthrough

Walkthrough

This pull request corrects nine isolated documentation issues across administration and deployment guides: fixing curl header formatting in API examples, updating code imports and markup syntax, adding missing SQL statement terminators, correcting PostgreSQL table references, updating CLI command parameters and references, and fixing malformed command syntax.

Changes

Documentation corrections across administration and deployment guides

Layer / File(s) Summary
API and integration example fixes
source/administration-guide/comply/electronic-discovery.rst, source/administration-guide/manage/configure-health-check-probes.rst, source/administration-guide/onboard/sso-entraid.rst
Fixed curl Authorization header formatting in eDiscovery REST API example, updated Go import path from .../tree/master/... to canonical form in health check probe documentation, and corrected reStructuredText inline link syntax for Microsoft Entra ID tenant reference.
Database and search configuration corrections
source/administration-guide/configure/enabling-chinese-japanese-korean-search.rst, source/administration-guide/scale/enterprise-search.rst, source/administration-guide/upgrade/upgrading-postgres.rst
Added missing semicolon to PostgreSQL CREATE EXTENSION zhparser command in Chinese search setup, corrected inline code formatting for opensearch migration value in Elasticsearch upgrade steps, and fixed PostgreSQL system view reference from pg_statistics to pg_statistic.
Administration and deployment command corrections
source/administration-guide/upgrade/admin-onboarding-tasks.rst, source/deployment-guide/desktop/linux-desktop-install.rst, source/deployment-guide/server/linux/deploy-tar.rst
Updated mmctl command documentation to reference mmctl user delete and mmctl user deleteall in admin onboarding warnings, changed CentOS/RHEL desktop RPM upgrade parameter from rpm -u to rpm -U, and corrected malformed rm invocation syntax in server uninstall instructions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title accurately summarizes the main objective: fixing broken code, command, and link examples across multiple documentation files.
Description check ✅ Passed The pull request description is directly related to the changeset, providing clear explanations of each of the nine one-line fixes made across documentation files.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Stopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a @coderabbit review after the pipeline has finished.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@emmayusufu
Copy link
Copy Markdown
Author

/check-cla

1 similar comment
@emmayusufu
Copy link
Copy Markdown
Author

/check-cla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants