Bug 1502631 - Unable to delete schedule
Summary: Unable to delete schedule
Keywords:
Status: CLOSED DUPLICATE of bug 1466710
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: GA
: cfme-future
Assignee: Dan Clarizio
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-16 11:24 UTC by Imaan
Modified: 2017-10-16 20:17 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-16 20:17:31 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Imaan 2017-10-16 11:24:25 UTC
Description of problem:

Unable to delete the schedule present under Reports through UI.

Version-Release number of selected component (if applicable):

Version 5.8.1.5.20170725160636_e433fc0

How reproducible:

Always

Steps to Reproduce:

1. Login to cloudforms operational portal.

2. Add a new schedule 

  Go to Cloud Intel -> Reports -> Schedules -> Configuration -> Add a new schedule

3. Delete the schedule
   
     Go to Cloud Intel -> Reports -> Schedules -> Select the schedule you want to delete -> Configuration -> Delete this schedule 

4. Whenever I try to delete a schedule, it returns the following error and does not erase it:

[----] I, [2017-10-16T05:54:21.321186 #42172:11600d4]  INFO -- : Started POST "/report/x_button/10000000000025?pressed=miq_report_schedule_delete" for 127.0.0.1 at 2017-10-16 05:54:21 -0400
[----] I, [2017-10-16T05:54:21.345839 #42172:11600d4]  INFO -- : Processing by ReportController#x_button as JS
[----] I, [2017-10-16T05:54:21.346033 #42172:11600d4]  INFO -- :   Parameters: {"refresh"=>"y", "pressed"=>"miq_report_schedule_delete", "id"=>"10000000000025"}
[----] F, [2017-10-16T05:54:21.419671 #42172:11600d4] FATAL -- : Error caught: [NoMethodError] undefined method `push' for #<ActiveRecord::Relation []>
Did you mean?  puts
/opt/rh/cfme-gemset/gems/activerecord-5.0.3/lib/active_record/relation/delegation.rb:126:in `method_missing'
/opt/rh/cfme-gemset/gems/activerecord-5.0.3/lib/active_record/relation/delegation.rb:96:in `method_missing'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-ed1f7171072a/app/controllers/report_controller/schedules.rb:81:in `miq_report_schedule_delete'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-ed1f7171072a/app/controllers/application_controller/explorer.rb:180:in `generic_x_button'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-ed1f7171072a/app/controllers/report_controller.rb:60:in `x_button'
/opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/abstract_controller/base.rb:188:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:455:in `call'


Logs: production log**


Actual results:

Unable to delete the schedule.

Expected results:

Schedule should be deleted.

Comment 3 Harpreet Kataria 2017-10-16 20:17:31 UTC

*** This bug has been marked as a duplicate of bug 1466710 ***


Note You need to log in before you can comment on or make changes to this bug.