Repository navigation
feat: implement per-dataset collaborator access - #6
Merged
Merged
Conversation
Add CLI commands for per-dataset collaborator access: - nemar dataset request-access <id>: request access to public repos - nemar dataset invite <user> <id>: invite user (owner/admin only) - nemar dataset collaborators <id>: list collaborators Includes API client methods in src/lib/api.ts
- Backend now returns {message, user, api_key} on approve
- Update CLI approve/revoke messages to reflect new access model
- Fixes #3: CLI approve showing success then failure
- Add dataset_collaborators table migration - Remove auto-add all users on dataset creation - Add POST /datasets/:id/request-access endpoint - Add POST /datasets/:id/invite endpoint - Add GET /datasets/:id/collaborators endpoint
Contributor
Author
PR Review SummaryComprehensive review completed using multiple specialized agents. Critical Issues (Must Fix Before Merge)
Important Issues (Should Fix)
Strengths
Action PlanWill fix in order:
|
- Add defensive checks for github_repo format (prevents undefined errors) - Add try-catch around DB inserts after GitHub operations - Use 409 Conflict for already-exists/conflict scenarios - Track and report failed GitHub removals in revoke response - Report email delivery status in approve/revoke responses - Update tests to expect 409 for conflicts and handle spinner output
…dev env - Add pull-requests: read permission for dorny/paths-filter to access PR files - Enable workers_dev in wrangler dev environment for CI tests
- Add explicit type annotations to avoid implicit any lint errors - Fix getDataset to properly extract dataset from API response wrapper - Make root path test accept 200 or 404 (env-dependent) - Make webhook tests accept 500 for missing secrets configuration - Sort imports per biome rules
2 of 3 tasks
This was referenced Apr 27, 2026
This was referenced May 11, 2026
This was referenced May 23, 2026
This was referenced Jun 17, 2026
This was referenced Nov 4, 2026
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.
Summary
Changes
Backend
dataset_collaboratorstable to track which users have access to which datasetsdataset_collaboratorsPOST /datasets/:id/request-access- auto-grants for public reposPOST /datasets/:id/invite- owner/admin can invite usersGET /datasets/:id/collaborators- list dataset collaboratorsCLI
nemar dataset request-access <dataset-id>nemar dataset invite <username> <dataset-id>nemar dataset collaborators <dataset-id>Documentation
docs/commands/dataset.mdwith new commandsMigration Note
After deployment, run the migration:
Test plan