-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(Gravsearch): Enable ORDER BY external link (DEV-2704) #2902
Conversation
DEV-2704 Gravsearch - Order by external link
It seems it is not possible to sort by external links via gravsearch. We should investigate to figure out why this is and make it possible if it doesn't require a major refactoring. Here is the error message:
Here is the gravsearch that causes the error:
If you take out the ORDER BY line at the end, then the gravsearch works. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2902 +/- ##
===========================================
+ Coverage 18.00% 86.16% +68.16%
===========================================
Files 281 251 -30
Lines 28899 23072 -5827
===========================================
+ Hits 5202 19879 +14677
+ Misses 23697 3193 -20504 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm uncertain about how to interpret this PR. The underlying issue is related to an error in a specific query. You've added tests for two similar queries, but it appears that no changes were made to the production code. This raises some questions for me:
Edit: I initially misunderstood the change to the Upon further reflection, and this may be a question for the issue creator, @mdelez: If I understand correctly, the 'uri' property being used for sorting contains the value of the actual URI. Is this really suitable for creating a meaningful order? |
This small PR just enables something in already working sorting feature. I find the idea of checking the order in this case simply as the over-testing. |
@seakayone Whether or not the ordering of a URI value is meaningful or not, I don't see a reason why we wouldn't allow a user to do it. It may be meaningful for the user in some way if they have very specific URIs that they know can be sorted alphabetically to help them find their data faster. |
I found the |
Pull Request Checklist
Task Description/Number
Issue Number: DEV-2704
PR Type
Basic Requirements for bug fixes and features
Does this PR introduce a breaking change?
Does this PR change client-test-data?