Repository navigation
[dataquery] Apply visit filter to JSON-backed instruments - 29.0 release - #11350
Open
kongtiaowang wants to merge 1 commit into
Open
kongtiaowang wants to merge 1 commit into
kongtiaowang wants to merge 1 commit into
Conversation
bulkLoadInstanceData only applied the session/visit restriction in the
table-backed branch, so JSON-stored instruments (jsondata{@}true, used by
instrument_manager uploads and REDCap imports) silently ignored $v, and
DQT filters leaked across visits.
Build the condition once, with bound parameters instead of $db->quote,
and add it to both branches. Also qualify the DDE exclusion with the
flag table in the JSON branch, where the t alias does not exist and the
query would otherwise fail.
kongtiaowang
force-pushed
the
29.0-release
branch
from
November 23, 2026 20:19
641c7de to
f4a8e89
Compare
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
bulkLoadInstanceData only applied the session/visit restriction in the table-backed branch, so JSON-stored instruments (jsondata{@}true, used by instrument_manager uploads and REDCap imports) silently ignored $v, and DQT filters leaked across visits.
Build the condition once, with bound parameters instead of $db->quote, and add it to both branches. Also qualify the DDE exclusion with the flag table in the JSON branch, where the t alias does not exist and the query would otherwise fail.