-
Notifications
You must be signed in to change notification settings - Fork 16
feat(instrument-repos): add GitHub-hosted instrument repositories #1383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f1fba80
feat(instrument-repos): add GitHub-hosted instrument repositories
thomasbeaudry 3cc4b41
fix(instrument-repos): avoid ReDoS-prone regex in normalizeUrl
thomasbeaudry 78cea14
fix(instrument-repos): address PR review comments
thomasbeaudry 4e9ad51
ci: stop Playwright install from hanging the job
thomasbeaudry 6a52c4f
ci: retry Playwright browser download to defeat CDN hang
thomasbeaudry 1c5cad1
fix(e2e): upgrade @playwright/test to ^1.60.0 for Node 24
thomasbeaudry 9d050d1
fix(instrument-repos): node-based download, i18n, default repo seed
thomasbeaudry b524e11
fix(instrument-repos): harden GitHub URL parsing against SSRF
thomasbeaudry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,3 +76,6 @@ storybook-static | |
|
|
||
| # playwright | ||
| testing/e2e/.playwright | ||
|
|
||
| # tanstack router generated temp files | ||
| .tanstack | ||
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,11 @@ | ||
| import { Module } from '@nestjs/common'; | ||
|
|
||
| import { InstrumentsModule } from '@/instruments/instruments.module'; | ||
|
|
||
| import { GroupsController } from './groups.controller'; | ||
| import { GroupsService } from './groups.service'; | ||
|
|
||
| @Module({ | ||
| controllers: [GroupsController], | ||
| exports: [GroupsService], | ||
| imports: [InstrumentsModule], | ||
| providers: [GroupsService] | ||
| }) | ||
| export class GroupsModule {} |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't standard user also need to be able to read this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, could cause problems. Did you verify everything works for standard users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified — standard users don't need
read InstrumentRepo. The provenance shown in the UI (sourceRepo) is denormalized onto each Instrument record and served via/instruments/info, which is gated only byread Instrument(standard users have that unconstrained).buildInstrumentSourceMapreadssourceRepoId/sourceRepoNamestraight off the Instrument — it never queriesInstrumentRepoor checks that ability. The/instrument-reposendpoints are consumed solely by the two admin-only pages (useInstrumentReposQueryis imported only there), so standard users never hit them. I checked the manage-group / datahub / accessible-instruments flows and they work for standard users. Granting standard users repo read would just be over-permissive, so I left the ability as-is.