-
Notifications
You must be signed in to change notification settings - Fork 5
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
PER-26: Rework querying. #31
Merged
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
84dd7a5
Rework querying.
adam-vessey 3896ae6
Move more explicitly to existence check.
adam-vessey 9a0bdb3
Further attempt to avoid joins.
adam-vessey 8465ffe
Found some issues in the test, oddly enough.
adam-vessey c484d01
Presently functional, need to DRY up a bit.
adam-vessey 0e9937c
DRY'd out, still needs coding standards addressed.
adam-vessey 8bfa28c
Bit more DRYing.
adam-vessey 0231df3
Misc coding standards.
adam-vessey 5362f87
Attempt to pull grab the updated dependency.
adam-vessey 7f4e382
Explicitly acknowledge the media thumbnail file.
adam-vessey 66490ad
Adjust to existence.
adam-vessey e47a6a6
Update tests, make things more explicit.
adam-vessey 3bac38f
Adjust for altered condition structures.
adam-vessey 7507e6b
Functional.
adam-vessey 19bb47c
Coding standards.
adam-vessey 19abd03
Test out the query tagging for IP range statements.
adam-vessey be8a746
Roll some tests where multiple embargoes are involved.
adam-vessey 8178a37
Merging latest from main, resolving merge conflicts
nchiasson-dgi 20a7bfc
Merge pull request #34 from nchiasson-dgi/fix/per-26
nchiasson-dgi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,25 +52,7 @@ function embargo_file_download($uri) { | |
function embargo_query_node_access_alter(AlterableInterface $query) { | ||
/** @var \Drupal\embargo\Access\QueryTagger $tagger */ | ||
$tagger = \Drupal::service('embargo.query_tagger'); | ||
$tagger->tagAccess($query, 'node'); | ||
} | ||
|
||
/** | ||
* Implements hook_query_TAG_alter() for `media_access` tagged queries. | ||
*/ | ||
function embargo_query_media_access_alter(AlterableInterface $query) { | ||
/** @var \Drupal\embargo\Access\QueryTagger $tagger */ | ||
$tagger = \Drupal::service('embargo.query_tagger'); | ||
$tagger->tagAccess($query, 'media'); | ||
} | ||
|
||
/** | ||
* Implements hook_query_TAG_alter() for `file_access` tagged queries. | ||
*/ | ||
function embargo_query_file_access_alter(AlterableInterface $query) { | ||
/** @var \Drupal\embargo\Access\QueryTagger $tagger */ | ||
$tagger = \Drupal::service('embargo.query_tagger'); | ||
$tagger->tagAccess($query, 'file'); | ||
Comment on lines
-61
to
-76
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
$tagger->tagNode($query); | ||
} | ||
|
||
/** | ||
|
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
This can be dropped when discoverygarden/islandora_hierarchical_access#19 is merged (and released).
... could possibly bump our
composer.json
according to the new release ofislandora_hierarchical_access
?