Repository navigation
fix(cli): the TUI writes the applicable updates; CLI, server and report facts decided once - #229
Merged
Merged
Conversation
- Window { cron, zone } lives in patchula_words; config and report
re-export it and the field-by-field converters are gone.
- report::Location builds from manager::Location through one From impl.
- OSV advisory URLs come from one helper; images reuse it.
- --type choices, the TUI filter and Update::ALL share one vocabulary;
kind colours and the current-declaration display are shared too.
- PATCHULA_RECHECK parses once; remote flags derive from REMOTE_POLICY.
- Server webhook, public and installations payloads are typed serde
structs; public redaction rebuilds credentialed metadata exhaustively.
- Batch report names have one grammar; copier's git runs through
patchula_process with GIT_TIMEOUT.
- The TUI applies the same applicable-subset plan as patchula apply.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
There was a problem hiding this comment.
All reported issues were addressed across 31 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Merged
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.
Lookup, report, CLI and server leftovers from the post-refactor sweep.
Behaviour changes
patchula applyalready did. It used to refuse the whole batch. Both shareplan::outcomes. The TUI guide page is updated.patchula_processwithGIT_TIMEOUT, so a hung git no longer stallsapplyor the TUI.One place for each fact
Window { cron, zone }lives inpatchula_words. config and report re-export it, and the two converters are gone. Report JSON is unchanged.Locationis still the wire DTO, now built through oneFromimpl in manager (manager gains apatchula-reportdependency; report depends only on words).lookup::advisories::osv_url.--typechoices come fromUpdate::RANKED(anUpdateTypenewtype in cli), and the TUI filter wrapsOption<Update>and cycles in rank order.Update::rank()is derived fromRANKED. Declaration order (Ord) is unchanged, so sorted output and report JSON stay the same. Help output is byte-identical.remote_flags()derives fromREMOTE_POLICY.PATCHULA_RECHECKis parsed once.Server
withheld()fails closed by construction: credentialed metadata is rebuilt by exhaustive destructuring, so a new metadata field does not compile until it is classified as kept or withheld. A new test covers it.Values.Tests and comments
Left alone on purpose:
evaluate_with's per-manager branches, the settings 1 Hz poll,apply's rejected flags. The lookup functions staypubbecause the lookup integration tests call them.