Improve README with comprehensive project documentation#1168
Improve README with comprehensive project documentation#1168chris1984 wants to merge 1 commit intotheforeman:developfrom
Conversation
Reviewer's GuideREADME.md is overhauled into a full project guide, adding detailed feature description, operating modes, usage examples, cloud endpoint documentation, development and testing workflows, and contributing instructions, while cleaning up outdated sections and fixing minor formatting and copyright details. Flow diagram for development and testing workflow from READMEflowchart TD
A[Start working on foreman_rh_cloud] --> B[Clone Foreman repository]
B --> C[Clone foreman_rh_cloud plugin]
C --> D[Install Ruby dependencies in Foreman root using bundle install]
D --> E[Install JavaScript dependencies in plugin directory using npm install]
E --> F[Run Ruby plugin test suite from Foreman root using bundle exec rake test:foreman_rh_cloud]
F --> G[Optionally run a single Ruby test file with bundle exec rake test TEST=path]
E --> H[Run JavaScript tests in plugin directory using npm test]
H --> I[Optionally use npm run test:watch]
H --> J[Optionally use npm run test:current]
F --> K[Run Ruby linter in Foreman root using bundle exec rubocop --parallel]
H --> L[Run JavaScript linter in plugin directory using npm run lint]
K --> M[Optionally start development server from Foreman root using bundle exec foreman start]
L --> M
M --> N[Open UI and exercise Inventory Upload, Insights Recommendations, and Inventory Status Sync]
Flow diagram for contributing process from READMEflowchart TD
A[Decide to contribute to foreman_rh_cloud] --> B[Fork the repository]
B --> C[Create a feature branch]
C --> D[Make code or documentation changes]
D --> E[Run Ruby and JavaScript tests]
E --> F[Run Ruby and JavaScript linters]
F --> G[Ensure all checks pass]
G --> H[Submit a Pull Request]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue, and left some high level feedback:
- In the Cloud Endpoints table, consider aligning the descriptions with the previous design section by either including or explicitly omitting query parameters so it’s clear whether the base URL or a fully parameterized endpoint is expected.
- The README now mixes generic
/path/to/foremaninstructions with concrete system locations used earlier (/usr/sbin/foreman-rake); it may help readers if you briefly note when distro-specific paths (e.g., Satellite packages) differ from development setups and how to adapt the commands.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the Cloud Endpoints table, consider aligning the descriptions with the previous design section by either including or explicitly omitting query parameters so it’s clear whether the base URL or a fully parameterized endpoint is expected.
- The README now mixes generic `/path/to/foreman` instructions with concrete system locations used earlier (`/usr/sbin/foreman-rake`); it may help readers if you briefly note when distro-specific paths (e.g., Satellite packages) differ from development setups and how to adapt the commands.
## Individual Comments
### Comment 1
<location path="README.md" line_range="35-37" />
<code_context>
+
+The default mode. Communicates directly with Red Hat cloud services to upload inventory, download recommendations, and forward client requests.
+
+### IoP Mode (On-Premise)
+
+When an Insights on Premise (IoP) Smart Proxy is configured, all cloud communication is routed through the local proxy instead. HTTP proxy settings are disabled, and scheduled sync tasks are skipped.
+
+Check the current mode: `ForemanRhCloud.with_iop_smart_proxy?`
</code_context>
<issue_to_address>
**suggestion (typo):** Use the standard term "on-premises" instead of "on-premise/on Premise" for accuracy and consistency.
For example, update the heading to `IoP Mode (On-Premises)` and the sentence to `When an Insights on-premises (IoP) Smart Proxy is configured, ...` for consistent terminology.
```suggestion
### IoP Mode (On-Premises)
When an Insights on-premises (IoP) Smart Proxy is configured, all cloud communication is routed through the local proxy instead. HTTP proxy settings are disabled, and scheduled sync tasks are skipped.
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Add proper project description, requirements, operating modes, development setup, testing instructions, and contributing guidelines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@nofaralfasi @jeremylenz feedback addressed |
| foreman-rake rh_cloud_inventory:report:generate organization_id=1 target=/var/lib/foreman/red_hat_inventory/generated_reports/ | ||
|
|
||
| # Upload a previously generated report | ||
| foreman-rake rh_cloud_inventory:report:upload organization_id=1 target=/var/lib/foreman/red_hat_inventory/generated_reports/ |
There was a problem hiding this comment.
I'm unable to successfully run this command.
First run: Task d8fa0338... started, successfully moved the file from generated_reports/ to uploads/, but the rake command timed out waiting for the upload to Red Hat cloud to finish.
Second run: Failed with ENOENT because the file is no longer in generated_reports/ - the first task already moved it.
Add proper project description, requirements, operating modes, development setup, testing instructions, and contributing guidelines.
Summary by Sourcery
Update the README with comprehensive user and contributor documentation for the ForemanRhCloud plugin, including usage, development, and architecture references.
Documentation:
Chores: