[PR #4440] [MERGED] Fix redundant docs served-language initialization #6381

Closed
opened 2026-10-23 04:09:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4440
Author: @SpicyMarinara
Created: 8/1/2026
Status: ✅ Merged
Merged: 8/1/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/docs-served-language-assignment


📝 Commits (1)

  • a5cc979 fix(docs): remove redundant language initializer

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 packages/server/src/routes/docs.routes.ts (+1 -1)

📄 Description

Linked issue

Closes #4439

Why this change

  • Resolve the sole outstanding review thread blocking the v2.4.0 staging-to-main promotion.
  • Avoid assigning a fallback value that is always overwritten before use.

What changed

  • Declare servedLanguage without a redundant initializer; the successful resolution path still assigns fileLanguage before the response is built.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Automated proof run: pnpm regression:docs.
  • Full baseline run: pnpm check.
  • No user-facing behavior or UI changed.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not applicable; server-only cleanup with no behavior change.

Summary by CodeRabbit

  • Bug Fixes
    • Improved content language handling when resolving requested documents.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4440 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/1/2026 **Status:** ✅ Merged **Merged:** 8/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/docs-served-language-assignment` --- ### 📝 Commits (1) - [`a5cc979`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a5cc97986e6fa5e72808c1e92cc2fd29d0ef8b8c) fix(docs): remove redundant language initializer ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/docs.routes.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #4439 ## Why this change - Resolve the sole outstanding review thread blocking the v2.4.0 staging-to-main promotion. - Avoid assigning a fallback value that is always overwritten before use. ## What changed - Declare `servedLanguage` without a redundant initializer; the successful resolution path still assigns `fileLanguage` before the response is built. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated proof run: `pnpm regression:docs`. - Full baseline run: `pnpm check`. - No user-facing behavior or UI changed. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not applicable; server-only cleanup with no behavior change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved content language handling when resolving requested documents. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:09:54 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6381
No description provided.