Bug 1530952
| Summary: | [QEDevCollab] Queue Chargeback Report via REST API | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Pete Savage <psavage> |
| Component: | API | Assignee: | Gregg Tanzillo <gtanzill> |
| Status: | CLOSED ERRATA | QA Contact: | Nandini Chandra <nachandr> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.9.0 | CC: | gtanzill, nachandr, obarenbo, simaishi |
| Target Milestone: | GA | ||
| Target Release: | 5.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.10.0.19 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-02-07 23:00:53 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | CFME Core | Target Upstream Version: | |
| Embargoed: | |||
New commit detected on ManageIQ/manageiq-api/master: https://github.com/ManageIQ/manageiq-api/commit/4d4f92a0858e00d7e9f0cc150e769ff77bd4b69e commit 4d4f92a0858e00d7e9f0cc150e769ff77bd4b69e Author: Jillian Tullo <jtullo> AuthorDate: Thu Jan 25 14:14:27 2018 -0500 Commit: Jillian Tullo <jtullo> CommitDate: Thu Jan 25 14:14:27 2018 -0500 Allow queueing of chargeback reports for individual services or all services Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530952 app/controllers/api/services_controller.rb | 8 + config/api.yml | 4 + spec/requests/services_spec.rb | 44 +- 3 files changed, 54 insertions(+), 2 deletions(-) New commit detected on ManageIQ/manageiq-api/master: https://github.com/ManageIQ/manageiq-api/commit/8d6a86257656d7cf7c0e3c669cf768927f1faa52 commit 8d6a86257656d7cf7c0e3c669cf768927f1faa52 Author: Gregg Tanzillo <gtanzill> AuthorDate: Tue Sep 25 17:39:41 2018 -0400 Commit: Gregg Tanzillo <gtanzill> CommitDate: Tue Sep 25 17:39:41 2018 -0400 Pass `User#userid` instead of `User#id` to queue chargeback report The method expects the user's login and not the integer id https://bugzilla.redhat.com/show_bug.cgi?id=1530952 app/controllers/api/services_controller.rb | 2 +- spec/requests/services_spec.rb | 11 + 2 files changed, 12 insertions(+), 1 deletion(-) New commit detected on ManageIQ/manageiq-api/hammer: https://github.com/ManageIQ/manageiq-api/commit/2098e69f26485286511f5ae80283a8fe04bf3d88 commit 2098e69f26485286511f5ae80283a8fe04bf3d88 Author: Brandon Dunne <brandondunne> AuthorDate: Wed Sep 26 15:56:49 2018 -0400 Commit: Brandon Dunne <brandondunne> CommitDate: Wed Sep 26 15:56:49 2018 -0400 Merge pull request #480 from gtanzillo/fix-queue_chargeback_report_resource Pass `User#userid` instead of `User#id` to queue chargeback report (cherry picked from commit 5722fb80066666f6802dff95fe46d4b32c0c0357) https://bugzilla.redhat.com/show_bug.cgi?id=1530952 app/controllers/api/services_controller.rb | 2 +- spec/requests/services_spec.rb | 11 + 2 files changed, 12 insertions(+), 1 deletion(-) Marking this as VERIFIED. Verified in 5.10.0.23 I'll report a BZ to address the task issue. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:0212 |
We currently need to run this snippet via SSH, can we have this function added to the REST API please run_rails_command('Service.queue_chargeback_reports')