Skip to content

OpenConceptLab/ocl_online#517 | exact group-name matching - #66

Merged
snyaggarwal merged 3 commits into
mainfrom
ocl_online#517
Oct 19, 2026
Merged

snyaggarwal merged 3 commits into
mainfrom
ocl_online#517

Conversation

@snyaggarwal

@snyaggarwal snyaggarwal commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Ref OpenConceptLab/ocl_online#517

hasAuthGroup matched group names by substring, so a check for one group was also true for any group whose name contained it: server matched ocl_servers. It now matches exactly. The unused canSwitchServer helper and its server-group check are removed, since server switching is a legacy oclweb2 feature.

Lint passes. This repo has no unit test script, and I haven't checked the UI in a browser.

🤖 Generated with Claude Code

snyaggarwal and others added 3 commits October 16, 2026 14:08
hasAuthGroup matched by substring, so `pro` would match `mapper-approved`.
It now matches the group name exactly. canSwitchServer checks the three server
groups by name, which keeps its current behaviour.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
oclweb3 doesn't use the server groups; server switching is a legacy oclweb2 feature.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

@snyaggarwal snyaggarwal left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Approve

The exact group-name change satisfies the oclweb3 portion of OpenConceptLab/ocl_online#517. The live callers pass complete names (mapper-approved, core_user, and operations_panel), and the removed canSwitchServer export has no callers in this repository.

Verification: full npm run eslint passes; PR ESLint and Snyk checks are green. This repository has no unit-test script.
Security blockers: none.

GitHub does not allow authors to formally approve their own PR, so this verdict is posted as a review comment.

(snyaggarwal • Codex/GPT-5)

@snyaggarwal
snyaggarwal merged commit 41488d6 into main Oct 19, 2026
2 checks passed
@snyaggarwal
snyaggarwal deleted the ocl_online#517 branch October 19, 2026 02:13
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