You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the following test in a non-0-region (taken from the service dialog specs, modified to use compressed ids in the request body), it fails:
it'POST /api/service_dialogs/:id updates a service dialog'doapi_basic_authorizecollection_action_identifier(:service_dialogs,:edit)dialog_tab=dialog.dialog_tabs.firstdialog_group=dialog_tab.dialog_groups.firstdialog_field=dialog_group.dialog_fields.firstupdated_dialog={'label'=>'updated label','content'=>{'dialog_tabs'=>['id'=>dialog_tab.compressed_id,'label'=>'updated tab label','dialog_groups'=>[{'id'=>dialog_group.compressed_id,'dialog_fields'=>[{'id'=>dialog_field.compressed_id}]}]]}}expected={'href'=>a_string_including(service_dialogs_url(dialog.id)),'id'=>dialog.compressed_id,'label'=>'updated label'}expectdorun_post(service_dialogs_url(dialog.id),gen_request(:edit,updated_dialog))dialog.reloadend.tochange(dialog,:content)expect(response).tohave_http_status(:ok)expect(response.parsed_body).toinclude(expected)end
...with the error:
error" => {"kind"=>"bad_request", "message"=>"Failed to update service dialog - Couldn't find DialogTab with 'id'=10r102", "klass"=>"Api::BadRequestError", "backtrace"=>"/Users/jilliantullo/code/manageiq/app/controllers/api/service_dialogs_controller.rb:32:in `rescue in edit_resource'\n/Users/jilliantullo/code/manageiq/app/controllers/api/service_dialogs_controller.rb:28
I'd expect this to work - i.e. for dialogs to be assembled from components referred to via compressed id.
The text was updated successfully, but these errors were encountered:
When running the following test in a non-0-region (taken from the service dialog specs, modified to use compressed ids in the request body), it fails:
...with the error:
I'd expect this to work - i.e. for dialogs to be assembled from components referred to via compressed id.
The text was updated successfully, but these errors were encountered: