Repository navigation
OpenConceptLab/ocl_online#652, OpenConceptLab/ocl_online#654 | A place for a private package in Edit Members, and the import page checks a file against the most any owner allows - #128
Open
paynejd wants to merge 1 commit into
Conversation
…ate package can add to Edit Members, and the import page checks a file against the most any owner allows - A private package can show something under the title of an organization's Edit Members. Without one, the window is as it was. - An import may write to repositories of owners with different limits. The API can send the highest as `highest_limit`, and the page refuses a file only over that one. A package still goes by `limit`, the person's own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qTEw8c6qZh5C69F1V4
Member
Author
|
Codex review, pass 1 (codex-cli 0.171.0, commit 665c39f): two findings, both on the import page. Neither is changed: each is how
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "full",
"commit": "665c39fb3",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "F1.1",
"severity": "P1",
"tag": null,
"file": "src/components/imports/NewImport.jsx",
"line": 84,
"claim": "Switching to npm keeps the file selected under the bulk import limit and bypasses the npm size check.",
"scenario": "With a 5 MiB personal limit and a 20 MiB highest limit, select a 6 MiB ZIP in bulk upload mode, then switch to npm. Upload remains enabled and sends the ZIP as an npm package. The API rejects it after transfer, although selecting the same ZIP directly in npm mode rejects it immediately.",
"action": "Clear or revalidate the retained file when the import type changes, and check the active size limit before submitting it.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.2",
"severity": "P2",
"tag": null,
"file": "src/components/imports/NewImport.jsx",
"line": 285,
"claim": "The upload picker still rejects files over 95 MiB even when the API allows a larger import.",
"scenario": "If the API returns a 100 MiB highest limit, the page advertises 100 MiB, but a valid 96 MiB NDJSON file is rejected by FileUploader before NewImport can apply that limit.",
"action": "Configure the import picker so its default size cap cannot override the API limit. Keep that default for other FileUploader callers.",
"lines_delta": null,
"confidence": "high"
}
]
}Simplification review (a fresh Claude agent): nothing to cut. |
snyaggarwal
approved these changes
Dec 4, 2026
snyaggarwal
left a comment
Contributor
There was a problem hiding this comment.
Approve. It can merge and release on its own, as the PR says. Without the private package, and with an API that doesn't send highest_limit, both pages behave as before.
Open core
- The Edit Members slot is neutral:
loadOrgMembersExtensiongivesOrgMembersExtension, ornullfrom the stub. The component renders nothing without it and passes only the organization, the members, the user andAPIService. There's no plan wording and no new locale strings. - The import page:
highest_limitis the neutral input that OpenConceptLab/oclapi2#1117 sends: the largest size a request may carry before its lines are read. The per-owner decision stays behindget_import_refusal()on the server. This page only picks which of the API's two numbers to compare a file against, by import type, and works out no allowance. The comment carries no plan detail.
Already raised in Jon's review pass, and I agree:
- F1.1: a file stays chosen when the import type changes.
- F1.2:
FileUploader's own 95 MB limit.
Both are how main behaves today, and the API checks the file anyway.
No new findings.
This branch has not been deployed
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.
Two small changes, one for each ticket.
A private package can add to Edit Members (OpenConceptLab/ocl_online#652). The usage package already renders something on a person's profile. It can now do the same under the title of an organization's Edit Members.
PluginExtensiondoes the loading, and passes the organization, the members on the page and who's signed in. Without the package, the window is as it was.The import page checks a file against the most any owner allows (OpenConceptLab/ocl_online#654). The API can send
highest_limitnext tolimitfor the size of an import: an import may write to repositories of owners with different limits. The page refuses a file before upload only if it's over that one, and the server checks it against the owners its lines name. A package still goes bylimit, the person's own. An API that doesn't sendhighest_limitworks as before.How to check
limit5 MB andhighest_limit20 MB, an 8 MB JSON file can be chosen, and a package of 8 MB is refused.410 tests pass and ESLint is clean. No new words. It can merge and be released on its own.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qTEw8c6qZh5C69F1V4