Skip to content

Query result formatter: remove column 'Index' from table head #197

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

Merged
merged 1 commit into from
Sep 3, 2018

Conversation

middlebrain
Copy link
Contributor

There is no data column for the head column 'Index'.

There is no data column for the head column 'Index'.
@middlebrain middlebrain force-pushed the query_result_formatter_fix branch from ab8afab to d0574d4 Compare September 2, 2018 20:29
@dbu
Copy link
Member

dbu commented Sep 3, 2018

are you sure that there never is? index would be for multivalue properties. have you tried with multivalue properties? if you did and saw nothing, then it might not have been implemented...

@middlebrain
Copy link
Contributor Author

At the moment, the column Index exists on the table head only.

In the foreach loop there is no code, which collect data for this column:

$table->setHeaders(array_merge([
'Path',
'Index',
], $result->getColumnNames()));
foreach ($result->getRows() as $row) {
$values = array_merge([
$row->getPath(),
], $row->getValues());

The table header and the rest of the table are therefore out of sync.

Multivalue properties in the QueryResult are either empty or stringified (depending on the repository implementation).

@dbu dbu merged commit 7c84093 into phpcr:master Sep 3, 2018
@dbu
Copy link
Member

dbu commented Sep 3, 2018

thanks, then this makes sense.

should we tag a new release with these fixes? or is there more to come very soon? (we can always tag another version in a week or 2, there is no shortage of version numbers ;-) but if you intend to fix more stuff this week, or are aware of problems, we could delay the release a bit)

@middlebrain middlebrain deleted the query_result_formatter_fix branch September 3, 2018 10:49
@middlebrain
Copy link
Contributor Author

One fix is still on the way.

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