Repository navigation
Remove unused FetchCord 3.0 API that production no longer calls - #253
Draft
BlivionIaG wants to merge 1 commit into
Draft
BlivionIaG wants to merge 1 commit into
BlivionIaG wants to merge 1 commit into
Conversation
Drop Fetch.fetch and its cache, unread provider names, the ignored cycle wait interval, the unused run_command shell flag, an unreachable GPU formatter branch, orphan id tables, and command entries that never produce a displayed field. Co-authored-by: BlivionIaG <BlivionIaG@users.noreply.github.com>
This was referenced Oct 7, 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
Deletes FetchCord 3.0 rewrite code (from 5bbd936 / #229) that nothing in production calls or displays, plus tests that existed only to exercise that dead API. User-visible presence is unchanged. No new functions, flags, or files.
Every listed finding checked out. Nothing was dropped.
Fetch.fetchandFetch._cache. Production readssnapshot()and the returned dict (__main__.py,scripts/validate.py). Removedtest_fetch_missing_field_returns_not_foundand thefetch.fetchasserts intest_fetch_snapshot_first_provider_wins(snapshot asserts kept).FieldProvider.nameand thename =assignments on the providers and test fakes. Nothing reads the attribute.WAIT_INTERVAL_SECONDS, the ignoredinterval_durationparameter onCycle.wait, andtest_cycle_wait_with_interval.test_cycle_wait_returns_promptly_when_stoppedstill covers the early return.run_command(..., shell=...)andtest_run_command_with_shell. Production passes argument lists;exec_bashis the shell path.subprocess.runkeeps its defaultshell=False._format_module.parse_fastfetch_jsonalready routes GPU through_format_gpu, which stays.fetch_cord/resources/desktop.jsonandwindowmanager.json.get_infoscallers andRESOURCE_FILESnever load them. Package-data globs left as they are.host:block infetchcord_cmds.yml(the host cycle displays motherboard, resolution, and system type; the report has nohostrow) and the Darwinfontentry whose command istrue(prints nothing, so it never yields a value). Linuxfontstill ends with|| true, which is a shell fallback, not that entry.The only docstring edits are the sentences on
FetchandCycle.waitthat named the deleted methods. No other comment or docstring cleanup.Left alone
fetch_cord/native/Windows/host.pystill fetches ahostvalue into the snapshot on Windows. Nothing displays it. Left untouched because it belongs to another contributor; possible follow-up.Explicitly out of this PR: the Windows
system_typescript, the provider list inscripts/validate.py, packaging (requirements.txt, black config,MANIFEST.in, Formula), and comment/docstring trims.Proof
This environment has Python 3.12.3 (
pythonis not onPATH; 3.12 is in the CI test matrix). Commands from.github/workflows/ci.yml:python3 -m pip install -e ".[dev]"— succeeded.rgafter the deletion (no matches means the symbol is gone):That hit is the mypy cache exclude, not
Fetch._cache.Those are the provider methods.
Fetch.fetch(self, field)is gone. Nofetch.fetch(calls remain.No caller passes
shell=. The remainingshell=Trueisexec_bash.GPU formatting stays on the
parse_fastfetch_jsonpath._format_moduleno longer has a GPU branch.