mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8228] [Issue]: Personal extension list API returns unnecessary revision source code #8166
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @minikkeuen on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8228
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The
GET /api/personal-extensionsendpoint includes the fullcss,js, andserverJssource code of every historical extension revision, even though the extension list UI only requires revision metadata.This causes unnecessarily large API responses, especially when multiple extensions have accumulated revision histories.
Expected behavior
The extension list endpoint should return only the metadata required to display historical revisions and support rollback.
Historical revision source code should remain stored on the server but should not be included in list responses.
Current extension source code and existing update/rollback behavior should remain unchanged.
Actual behavior
The endpoint returns full historical revision source code alongside current extension data.
In a local dataset containing 25 extensions and 150 historical revisions:
These values were calculated by serializing the response using local extension data. They are not direct HTTP transfer measurements.
Steps to reproduce
GET /api/personal-extensionsin the browser's Network panel.css,js, andserverJsfields.Environment
Logs, screenshots, or video
No errors are required to reproduce this issue.
The issue can be observed by inspecting the JSON response from
GET /api/personal-extensions.A local serialization comparison showed an approximately 84% reduction when historical revision source fields were omitted.
Additional context
The revision history UI uses metadata such as timestamps and content hashes. Rollback is handled server-side using the revision's
contentHash, so returning historical source code in the list response is unnecessary.A minimal optimization has been implemented and validated locally:
pnpm checkpass.The implementation is prepared as a separate PR targeting
staging.Template check