Repository navigation
fix(server): honor the project's ignore: in the project dashboard - #991
Merged
Merged
Conversation
`skillshare ui -p` builds its config from the project, and the reload that runs before each API request refreshed the sources and targets but not `ignore:`. Dashboard sync therefore copied files the project's `ignore:` lists into copy-mode targets, and diff checksummed them, while `skillshare sync -p` and `diff -p` left them out. The reload now carries the project's `ignore:` too, so the dashboard's sync, diff and diff stream match the CLI, and an edit to `ignore:` applies on the next request.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
No issue.
What was wrong
In project mode, the dashboard (
skillshare ui -p) ignored the project config'signore:(copy-mode file ignores):ignore:lists into copy-mode targets.skillshare sync -pandskillshare diff -pleave those files out.The project dashboard runs on a config built from the project. The reload that runs before each API request refreshed its sources and targets from
.skillshare/config.yaml, but notignore:, which stayed empty.Fix
The reload also copies the project's
ignore:(internal/server/server.go). Dashboard sync,/api/diffand/api/diff/streamread it from there, as the CLI does. Because the reload runs before each API request, an edit toignore:applies on the next one.Tests
TestProjectDashboard_AppliesIgnoreserves a project with a copy-mode target andignore: [notes.md].notes.mdis not copied. This fails onmain.notes.mdgets a newer mtime, the skill is not listed as changed. This fails when only the diff handler drops the project's patterns.Checks
make checkpasses in the devcontainer.Checklist
make check) — for code changes