fix(miners): filter open discovery issues to gittensor tracked repos#966
Open
cleanjunc wants to merge 1 commit intoentrius:testfrom
Open
fix(miners): filter open discovery issues to gittensor tracked repos#966cleanjunc wants to merge 1 commit intoentrius:testfrom
cleanjunc wants to merge 1 commit intoentrius:testfrom
Conversation
Contributor
Author
|
@anderdc Could you please review this PR? Thanks! |
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
The miner discovery issues page was rendering items from repositories outside the gittensor tracked set, because
fetchGithubIssuesByAuthorinMinerOpenDiscoveryIssuesByRepo.tsxqueriesapi.github.com/search/issuesdirectly and the result was never intersected with the allowlist.This change introduces a small reusable hook,
useTrackedRepoSet, that returns a memoized lowercase set built fromGET /dash/repos(the same source the/repositoriespage already uses). The discovery component reads the set, gates the GitHub search query on it, and passes it into the fetcher so the filter runs before the per issue timeline enrichment fan out. Everything downstream (authoredRepos, the secondary issues fetch, and the grouping logic) becomes correct without any further changes.Notable effects:
Related Issues
Fixes #965
Type of Change
Screenshots
Before: untracked repositories listed in the discovery issues sections.

After: only repositories present in

GET /dash/reposare shown.Checklist
npm run formatandnpm run lint:fixhave been runnpm run buildpasses