Repository navigation
feat: list online account ads - #1321
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe ChangesOnline listing
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to The online listing command appears ready to merge after normal checks; no actionable issue remains identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The command reuses existing account permissions and browser cleanup without modifying listings. Remaining uncertainty concerns how remote text is displayed and whether exceptional pagination responses can produce an incomplete listing. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1321 +/- ##
==========================================
+ Coverage 92.15% 92.18% +0.03%
==========================================
Files 50 50
Lines 7546 7579 +33
Branches 1304 1322 +18
==========================================
+ Hits 6954 6987 +33
+ Misses 392 391 -1
- Partials 200 201 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
## ℹ️ Description Follow-up to #1321. The CLI help text is the one place that keeps a complete English and a complete German text block in the code, so `list` belongs into both blocks instead of using a gettext lookup with a temporary locale switch. Related issue: none. ## 📋 Changes Summary - Write the `list` help line literally into the English and German blocks of `help_text()` and drop the locale switch and the `help_text` entry in `translations.de.yaml`. - Replace the locale-preservation test with a simple check of the `list` line per language. - Document the exception for the CLI help text in `CONTRIBUTING.md`. No dependencies or configuration changes. ### ⚙️ Type of Change - [ ] 🐞 Bug fix (non-breaking change which fixes an issue) - [ ] ✨ New feature (adds new functionality without breaking existing usage) - [ ] 💥 Breaking change (changes that might break existing user setups, scripts, or configurations) Refactoring only, no user-visible change: the help output is identical. ## ✅ Checklist - [x] I have reviewed my changes to ensure they meet the project's standards. - [x] I have tested my changes and ensured that all tests pass (`pdm run utest` locally, the full suite runs in CI). - [x] I have formatted the code (`pdm run format`). - [x] I have verified that linting passes (`pdm run lint`). - [x] I have updated documentation where necessary. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * CLI help now displays the complete English or German text for the `list` command, regardless of the currently active language setting. * **Documentation** * Updated translation guidance to clarify that CLI help text should include complete English and German wording. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
ℹ️ Description
Add a
listcommand to inspect the authenticated account's online ads, including IDs, titles, status and expiry dates. It fetches account pages without loading local ad definitions or modifying listings.Split from #1309 as the independent online-listing feature. No separate issue.
📋 Changes Summary
list, and document it in CLI help and README.No dependencies on the other contributions and no new project dependencies.
⚙️ Type of Change
✅ Checklist
pdm run testdescribed below.pdm run format).pdm run lint).Standalone
pdm run formatandpdm run lintpass. Listing, CLI and translation tests pass: 60 tests. The generated schema, default configuration and README verification passes.Full combined-series validation on upstream main
e4bca13with Python 3.12 and Windows/Edge:pdm run format,pdm run lint,pdm run testand generated-artifact verification pass; 1,976 tests passed, 2 skipped, 93.81% coverage. This full-suite evidence belongs to the integration of all seven contributions. Standalone targeted evidence for this PR is listed above. Browser fixtures and account responses are local or mocked; tests do not contact Kleinanzeigen.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Summary by CodeRabbit
listcommand to view online ads with their ID, title, status, and expiry date. The command does not download or modify listings or local ad files.