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 error on relationship server side search and order while using accessor #5245

Conversation

MrCrayon
Copy link
Collaborator

@MrCrayon MrCrayon commented Feb 27, 2021

Do not try to search or order server side if an accessor is used for belongsTo relationship.

Pass sortableColumns to the view to check which columns can be server side ordered.

Rename method findRelationshipRow to findSearchableRelationshipRow for clarity.

Do not try to search or order server side if an accessor is used for belongsTo relationship.

Add `sortColumnList` array to pass to the view to check which columns can be server side ordered.

Renamed method `findRelationshipRow` to `findSearchableRelationshipRow` for clarity
@codecov
Copy link

codecov bot commented Feb 27, 2021

Codecov Report

Merging #5245 (1c7eb27) into 1.4 (3c2d314) will increase coverage by 0.11%.
The diff coverage is 90.47%.

Impacted file tree graph

@@             Coverage Diff              @@
##                1.4    #5245      +/-   ##
============================================
+ Coverage     63.37%   63.48%   +0.11%     
- Complexity     1394     1399       +5     
============================================
  Files           195      195              
  Lines          4120     4138      +18     
============================================
+ Hits           2611     2627      +16     
- Misses         1509     1511       +2     
Impacted Files Coverage Δ Complexity Δ
src/Http/Controllers/VoyagerBaseController.php 61.86% <90.47%> (+1.12%) 153.00 <7.00> (+5.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c2d314...1c7eb27. Read the comment docs.

@codecov-commenter
Copy link

codecov-commenter commented May 3, 2021

Codecov Report

Merging #5245 (c232952) into 1.4 (16a0c25) will increase coverage by 0.11%.
The diff coverage is 90.47%.

Impacted file tree graph

@@             Coverage Diff              @@
##                1.4    #5245      +/-   ##
============================================
+ Coverage     63.45%   63.57%   +0.11%     
- Complexity     1393     1398       +5     
============================================
  Files           195      195              
  Lines          4116     4134      +18     
============================================
+ Hits           2612     2628      +16     
- Misses         1504     1506       +2     
Impacted Files Coverage Δ Complexity Δ
src/Http/Controllers/VoyagerBaseController.php 62.63% <90.47%> (+1.10%) 152.00 <7.00> (+5.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 16a0c25...c232952. Read the comment docs.

@emptynick emptynick merged commit 84e17f6 into thedevdojo:1.4 May 3, 2021
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.

3 participants