Skip to content

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
mainfrom
OpenConceptLab/ocl_online#652-edit-members-place
Open

paynejd wants to merge 1 commit into
mainfrom
OpenConceptLab/ocl_online#652-edit-members-place

Conversation

@paynejd

@paynejd paynejd commented Dec 4, 2026

Copy link
Copy Markdown
Member

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. PluginExtension does 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_limit next to limit for 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 by limit, the person's own. An API that doesn't send highest_limit works as before.

How to check

  • Without the package: Edit Members and the import page look and work as before.
  • With it: see the private package's pull request.
  • Import page: with limit 5 MB and highest_limit 20 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

…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
@paynejd
paynejd requested a review from snyaggarwal December 4, 2026 08:25
@paynejd

paynejd commented Dec 4, 2026

Copy link
Copy Markdown
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 main works, and the API checks the file.

  • F1.1 (P1) A file chosen for one type of import stays chosen when the type changes, and a package's limit can be lower. I tried checking it again, and that was worse: it dropped a file that was fine for the other type, or blocked a package given by name. The API refuses it with the same message.
  • F1.2 (P2) FileUploader has a limit of its own, 95 MB. A larger file can go through the API.
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 snyaggarwal 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.

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: loadOrgMembersExtension gives OrgMembersExtension, or null from the stub. The component renders nothing without it and passes only the organization, the members, the user and APIService. There's no plan wording and no new locale strings.
  • The import page: highest_limit is 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 behind get_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

No deployments
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.

2 participants