-
Notifications
You must be signed in to change notification settings - Fork 11
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
Coding standards, database standards, and performance pass #15
Open
qadan
wants to merge
81
commits into
fsulib:8.x-1.x
Choose a base branch
from
discoverygarden:8.x-1.x
base: 8.x-1.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 73 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
adec5f5
column rename
591a721
nodes as entities
bef8612
doesn't seem necessary
01a721b
return array
fb8127d
more null vs array issues
a4ad7ab
missing same level of precision on form
6041a19
much simpler migration
1dc3b3f
replacing with safer insert query
1bf7e10
Merge pull request #1 from qadan/column_rename
adam-vessey b472870
Merge pull request #2 from qadan/node_entities
adam-vessey 320a098
Merge pull request #3 from qadan/null-check
adam-vessey 202aefd
update readme, fix issues
469f4d2
fix logging
5dca542
issue with the form not having a preselected node
1c61f42
closing brace
f1598e4
Merge pull request #5 from qadan/updates
IAMlKeno 629095a
first pass at coding standards overhaul
a094ceb
some more cleanup, making configs work
007f968
all the little random translation and markup and injection issues
20181e8
and a host of fixes
7bbdddc
and re-run coding standards
5c01fc6
nasty ksm hiding in there
d498679
null default
e68defa
fixes for things
cefe830
default for ranges query
f3c9d00
random issues with random forms and random screens
e85d1cb
move some schema stuff, generate ids
19c563b
missing a thing
f8a3714
Merge pull request #6 from qadan/coding-standards
JojoVes 966d91d
overhaul the redirect thingy
eb9940c
Adding use statements to condition.
MorganDawe 44ed00a
Merge pull request #8 from MorganDawe/8.x-ir-144
fff5ba1
:Merge branch '8.x-1.x' of github.com:discoverygarden/embargoes into …
beb7dc9
check contents of ranges
149bcbd
cast to array since cant be sure whats in the param
136824c
readme and licensing
12227da
log view
d3253d0
add field plugin
d5d7785
Merge pull request #7 from qadan/coding-standards
JojoVes 2a24e54
Merge branch '8.x-1.x' of github.com:discoverygarden/embargoes into e…
b69619d
coding standards
1f23513
checking for actual entities before redirect
4e2dc29
cache tags and contexts
b60890d
Merge branch 'entity-checks' of github.com:qadan/embargoes into embar…
47ba163
cache tag all the things also fixes
0ac5e56
more caching stuff
4569395
Merge pull request #10 from qadan/entity-checks
jordandukart 3b1e2a6
add the dang template, string stuff
aae7232
fixing behaviour
ad63c0a
repairs
1ff0ba0
Merge pull request #9 from qadan/embargoes-logs
JojoVes d8ab1f0
readme stuff
d007dcd
check embargoed status on files
ecc03dc
more updates
a007625
merge conflicts
fb1e8f1
check images
141b3ad
entity config shenanigans in the background
b9e773d
coder fixes
c1718da
Merge pull request #11 from qadan/behaviour-fixes
JojoVes acb654c
Adding new embargoes block.
MorganDawe a7770c3
Merge branch '8.x-1.x' of github.com:discoverygarden/embargoes into 8…
MorganDawe 41debf3
Adding new embargoes notification block.
MorganDawe 246a615
Bringing up to date with head.
MorganDawe e10507b
fix issue of setting expiration date for indefinite embargoes
JojoVes ab6cdcd
make sure the contact message is added for nodes that don't have any …
JojoVes cd50724
Merge pull request #12 from MorganDawe/8.x-ir-121
a0054cd
update embargo admin permission
a6ed5c0
cache issue, fixing readmes
9472b82
Merge pull request #13 from qadan/embargo-admin-permission
IAMlKeno 0f45848
fixing
lutaylor 5da21b4
Merge pull request #14 from lutaylor/wmcupdate
adam-vessey f1e924f
empty nids array is returned if no relationships
nchiasson-dgi 3b6905b
Merge pull request #15 from nchiasson-dgi/8.x-1.x-return_empty_nids_a…
jordandukart ab1cbe2
D9 compat.
jordandukart 005732d
Don't create entities when the IP range is invalid.
jordandukart 5f6827d
Don't use messenger.
jordandukart e3da2d7
Merge pull request #17 from jordandukart/8.x-1.x
adam-vessey 201a111
Adding a default message for embargo notification block
IAMlKeno bfaf078
Merge pull request #18 from IAMlKeno/dgi8-63
JojoVes 25892c8
Fix for missing entity configuration in Drupal 9
nigelgbanks 40f23eb
Merge pull request #19 from nigelgbanks/fixes-for-drupal-9
jordandukart 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,41 @@ | ||
# Embargoes | ||
Drupal 8 module for managing embargo policies with access restrictions on content | ||
|
||
Adds the ability to manage embargo policies with access restrictions on content. | ||
|
||
## Requirements | ||
Embargoes requires no other Drupal modules to work. | ||
|
||
This module requires the following modules/libraries: | ||
|
||
* [Menu UI](https://www.drupal.org/docs/core-modules-and-themes/core-modules/menu-ui-module) | ||
|
||
## Installation | ||
|
||
Install as | ||
[usual](https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-modules). | ||
|
||
## Configuration | ||
|
||
Configuration options can be set at `admin/config/content/embargoes/settings`, | ||
including notification options and IP range settings that can apply to | ||
embargoes. | ||
|
||
To add an IP range for use on embargoes, navigate to | ||
`admin/config/content/embargoes/settings/ips` and click 'Add IP range'. Ranges | ||
created via this method can then be used as IP address whitelists when creating | ||
embargoes. | ||
|
||
## Usage | ||
|
||
### Applying an embargo | ||
|
||
An embargo can be applied to an existing node by navigating to | ||
`node/{node_id}/embargoes`. From here, an embargo can be applied if it doesn't | ||
already exist, and existing embargoes can be modified or removed. | ||
|
||
## Maintainers/Sponsors | ||
|
||
* [FSU Library](https://github.com/fsulib/embargoes) | ||
* [discoverygarden](http://support.discoverygarden.ca) | ||
|
||
## License | ||
[GPLv2](http://www.gnu.org/licenses/gpl-2.0.txt) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
embargo_contact_email: null | ||
add_contact_to_notifications: true | ||
show_embargo_message: true |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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.
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.
@qadan , I believe the reason why a string was used here was so that a username would persist even after the user is deleted from the Drupal instance.