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

Fix missing values in sql view #13289

Merged
merged 8 commits into from
Dec 29, 2017
Merged

Fix missing values in sql view #13289

merged 8 commits into from
Dec 29, 2017

Conversation

IagoLast
Copy link
Contributor

@IagoLast IagoLast commented Dec 26, 2017

Listen to columnsCollection changes

The _getWrappedSQL function in the query-rows-collection object replaces the * in the SELECT with the name of every desired column. Those names are obtained from the
_querySchemaModel.columnsCollection object.

If this object is empty no data will be returned from the query and the table will be empty.

This commit adds a listener to this collection, triggering a new fetch when this collection is changed

WIP

  • Fix tests

The _getWrappedSQL function in the query-rows-collection object replaces the
* in the SELECT with the name of every desired column. Those names are obtained from the
_querySchemaModel.columnsCollection object.

If this object is empty no data will be returned from the query and the table will be empty.

This commit adds a listener to this collection, triggering a new fetch when this collection is changed
@IagoLast IagoLast changed the title 1210 empty values 1210 empty values appearing on the SQL view Dec 26, 2017
Copy link
Contributor

@matallo matallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice tests 👍

revert fdescribe, put a more descriptive PR title and add NEWS.md

@@ -47,7 +47,7 @@ describe('data/query-rows-collection', function () {
});
});

describe('._initBinds', function () {
fdescribe('._initBinds', function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fdescribe

@IagoLast IagoLast changed the title 1210 empty values appearing on the SQL view Fix missing values in sql view Dec 26, 2017
@IagoLast IagoLast merged commit c7214b8 into master Dec 29, 2017
@IagoLast IagoLast deleted the 1210-empty-values branch December 29, 2017 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants