Bug 1753682
Summary: | [RFE] Automating the generation of widget content Via RESTAPI | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> |
Component: | API | Assignee: | drew uhlmann <duhlmann> |
Status: | CLOSED ERRATA | QA Contact: | Parthvi Vala <pvala> |
Severity: | low | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> |
Priority: | medium | ||
Version: | 5.7.0 | CC: | dmetzger, duhlmann, gmccullo, gtanzill, JAyissi, jocarter, lavenel, obarenbo, pvala, simaishi, smallamp, tfitzger |
Target Milestone: | GA | Keywords: | FutureFeature, RFE, ZStream |
Target Release: | 5.10.12 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.10.12.0 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | 1623607 | Environment: | |
Last Closed: | 2019-11-06 08:58:33 UTC | Type: | --- |
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: | |||
Bug Depends On: | 1623607 | ||
Bug Blocks: |
Comment 2
CFME Bot
2019-09-19 15:07:21 UTC
Hi Drew, Can you tell me what parameters must be passed while performing action `generate_content`? It looks like it needs some 3-4 parameters and I am passing none, so it is not generating content successfully. Thanks, Parthvi May I please have a reproducer? also needs https://github.com/ManageIQ/manageiq-api/pull/679 mea maxima culpa Hey Satoe, this needs in before Monday and I'm on vacation tomorrow. Is there anything you need from me? No, you're all set on this one. When "devel whiteboard" contains "waiting_for_backport", it means nothing developer need to do and it's just waiting for the right time for the PR to be backported. New commit detected on ManageIQ/manageiq-api/hammer: https://github.com/ManageIQ/manageiq-api/commit/7d7a00c76541045b496b177ad8d31d9f230ceb4d commit 7d7a00c76541045b496b177ad8d31d9f230ceb4d Author: Libor Pichler <lpichler> AuthorDate: Tue Oct 1 12:18:40 2019 -0400 Commit: Libor Pichler <lpichler> CommitDate: Tue Oct 1 12:18:40 2019 -0400 Merge pull request #679 from d-m-u/fixing_widget_args Include user info in widget generation (cherry picked from commit 2382951d2e10a6f6e53d9c7f0e594d3b0f0de593) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1753682 app/controllers/api/widgets_controller.rb | 2 +- spec/requests/widgets_spec.rb | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) Tested on 5.10.12 and it seems to be working fine. Query: POST /api/widgets/:id { "action": "generate_content" } Task runs successfully and the date is updated on UI, but when I perform a GET query on the widget, it doesn't seem to update "last_generated_content_on". "last_generated_content_on" is same as it was earlier. Putting this back to Assigned. Marking this BZ as Verified since the bug is not exactly related to the code changes. Will raise a separate BZ for the rest bug after investigating it some more. sounds great, thanks! please go ahead and assign the new one to me BZ for the `last_generated_content_on` attribute - https://bugzilla.redhat.com/show_bug.cgi?id=1761836 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/RHBA-2019:3268 |