`repowise uninstall` prints a configured database URL with a backslash on Windows
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #4380 by @Ei-Ayw — closed without merging
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start with packages/cli/src/repowise/cli/uninstall/inventory.py at _store_item and trace how Item.path flows through Result.path into JSON and the uninstall table. Run the named test, tests/unit/cli/test_uninstall_cmd.py::test_a_configured_database_is_listed_as_kept_with_a_reason, on Windows. Done means the database locator prints with / in JSON and the table while the SQLite path and kept-row behavior remain intact.
Written by the indexing model from the issue text.
Description
Summary
Under REPOWISE_DB_URL, uninstall lists the configured database as a kept row. Its locator host:port/database is a URL fragment but is stored as a Path, so on Windows db.example:5432/wiki prints as db.example:5432\wiki.
packages/cli/src/repowise/cli/uninstall/inventory.py:470
path=Path(locator),
Mechanism
_store_item(inventory.py:433-477) buildslocatorfrommake_url(raw): host,:port,/database(:460-464).Item.pathis typedPath(:66) andas_dictrendersstr(self.path)(:85);WindowsPathrewrites the/.- The same value flows into
Result.path: Path(runner.py:41) when_remove_treereports the row as kept (runner.py:252-259), and into the table (commands/uninstall_cmd.py:118).
Repro
.venv\Scripts\python.exe -m pytest "tests/unit/cli/test_uninstall_cmd.py::test_a_configured_database_is_listed_as_kept_with_a_reason" -q
tests\unit\cli\test_uninstall_cmd.py:592: in test_a_configured_database_is_listed_as_kept_with_a_reason
assert "db.example:5432/wiki" in rows[0]["path"]
E AssertionError: assert 'db.example:5432/wiki' in 'db.example:5432\wiki'
Impact
Windows users see a malformed database location, and the suite has a standing red test on Windows.
Done looks like
- The server locator stays a string on every platform:
Item.pathandResult.pathacceptPath | str(or the row carries the locator in its own field), and_store_itemdrops thePath(...)wrap. - JSON and table both print
db.example:5432/wiki. - Unchanged: the SQLite case (a real file path), redaction of user and password, the row staying blocked and kept.
Tests
test_a_configured_database_is_listed_as_kept_with_a_reason passes on Windows; test_a_real_run_keeps_the_database_and_exits_with_leftovers still passes.
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 756
- Avg merge
- 21h 5m
- Merged PRs (30d)
- 797
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from repowise-dev/repowise
-
[Bug] Elixir `.formatter.exs`, `.credo.exs`, `config/*.exs` and `priv/**/*.exs` are reported as unreachable filesPossibly taken @ZYZ666-RGB claimed this 1 day ago. Openbug good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#6296 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] Coverage stack detection omits Swift, Dart, and Scala, falling through to UNKNOWN in evidence setupPossibly taken @RishabhIIITD claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
repowise-dev/repowise#5838 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] PR-mined decisions store the decision sentence again as their rationalePossibly taken @suyashgitt claimed this 11 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#5702 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] CICS CSD `DEFINE _PGMLIST` startup programs (`_PGMPH`) are not rootsPossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#4477 ·
Maintainers usually reply within 1 day
-
[Bug] COBOL listing directives EJECT, SKIP1/SKIP2/SKIP3 and TITLE fail to parse and drop the rest of the filePossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
repowise-dev/repowise#4474 ·
Maintainers usually reply within 1 day
All issues in repowise-dev/repowise
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day