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

CRM-21616 ensure sql metadata is available from api #11476

Merged
merged 1 commit into from
Feb 6, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jan 1, 2018

Overview

Ensure that sql metadata is returned from the report api if requested

Before

Api call

$rows = civicrm_api3('report_template', 'getrows', array(
'report_id' => 'contribute/lybunt',
'yid_value' => 2015,
'yid_op' => 'fiscal',
'options' => array('metadata' => array('sql')))

was getting NULL returned as the sql

After

The metadata returned now includes the sql array

Technical Details

This worked at some point in the past but broke. It is mostly used for debugging, esp with unit test issues. Test added this time

Comments

Anything else you would like the reviewer to note


@colemanw
Copy link
Member

colemanw commented Jan 2, 2018

@civicrm-builder retest this please

@eileenmcnaughton
Copy link
Contributor Author

test this please

3 similar comments
@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@colemanw can we merge this - just adds debug data

@monishdeb
Copy link
Member

Agree with this change. Passed test build means it now correctly asserts the sql metadata retrieved from API also confirmed in local. Hence merging!

@monishdeb monishdeb merged commit d3e0119 into civicrm:master Feb 6, 2018
@monishdeb monishdeb deleted the report branch February 6, 2018 13:52
@mlutfy mlutfy added this to the 4.7.31 milestone Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants