Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReportData - change long_id to string #2902

Merged
merged 1 commit into from Dec 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -1097,7 +1097,7 @@ def view_to_hash(view, fetch_data = false)
end
new_row = {
:id => list_row_id(row),
:long_id => row['id'],
:long_id => row['id'].to_s,
:cells => [],
:quadicon => quadicon
}
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/service_controller_spec.rb
Expand Up @@ -176,7 +176,7 @@
)
results = assert_report_data_response
expect(results['data']['rows'].length).to eq(1)
expect(results['data']['rows'][0]['long_id']).to eq(vm.id)
expect(results['data']['rows'][0]['long_id']).to eq(vm.id.to_s)
end
end

Expand Down