Skip to content

fix: trim '-' from property labels before calling DIProperty::newFromUserLabel #921

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simontaurus
Copy link
Contributor

fixes #920

Copy link

codecov bot commented Mar 8, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 45.52%. Comparing base (a95d3b8) to head (ef51ea5).

Files with missing lines Patch % Lines
formats/datatables/SearchPanes.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master     #921   +/-   ##
=========================================
  Coverage     45.52%   45.52%           
  Complexity     2319     2319           
=========================================
  Files            80       80           
  Lines          9050     9050           
=========================================
  Hits           4120     4120           
  Misses         4930     4930           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@thomas-topway-it thomas-topway-it left a comment

Choose a reason for hiding this comment

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

is it sufficient to handle inverse properties ?

@simontaurus
Copy link
Contributor Author

is it sufficient to handle inverse properties ?

Unfortunately not.
We get the right property but I guess these SQL queries also need adaption:

$res = $this->connection->select(

With search_panes disable, inverse properties are working fine. With search_panes enabled and this fix applied, the corresponding columns stay empty while the search pane shows the value of the forward relation value instead of the reverse => The correct property is selected but the query is not reversed.

Is there a reason for all this custom SQL? Any chance to replace it with SMW Queries?

@thomas-topway-it
Copy link
Contributor

@simontaurus actually not, I guess most of them can be replaced using the new or legacy MW query builder

@alistair3149
Copy link
Contributor

@simontaurus actually not, I guess most of them can be replaced using the new or legacy MW query builder

We probably should since this might also resolve #910, but I don't have the expertise needed to update the SQL queries in the DataTables implementation

@alistair3149 alistair3149 removed their request for review April 3, 2025 07:36
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.

[datatables] SearchPanes do not handle inverse properties correctly
3 participants