This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Add Limit test to document how the "limit" parameter is supposed to work #499
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jim is concerned that this code might also misbehave if:
Note that in this case there are two different individuals that indicate the same relationship (A p1 B). They could be from different sources. The way to find this would be a unit test that provides tests the difference pieces of the |
Based on the SPARQL query in #509 (comment)
This is because the dev server requires RENCI VPN access.
This was referenced Jun 28, 2022
balhoff
suggested changes
Jul 1, 2022
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.
Looks, good, just a few possible changes.
balhoff
approved these changes
Jul 7, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed some odd behavior with the way in which the
limit
parameter works, which can be best summarized by listing the results of running the same query against the SPARQL endpoint using the new test I've written in this PR.This PR updates the SPARQL query generation code (in consultation with Jim) to correct this bug so we return the correct number of results. It retains the previously used code since there is functionality in there that we would probably like reuse in the future.
This PR previously introduced two new bugs (#517, #518) but then closes them in d4ccd3a.