-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from IQSS/master
Update beta branch to 5/6
- Loading branch information
Showing
60 changed files
with
7,549 additions
and
659 deletions.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
#!/bin/bash | ||
# We assume you've done everything in scripts/search/tests/dataset-versioning03 | ||
# There should now be two Solr documents with different titles: | ||
# There should now be two Solr documents for the same dataset with different titles: | ||
# | ||
# Version 1.0 has the published title and a single published file | ||
# Title: Rings of Trees and Other Observations | ||
# to | ||
# files: 18:trees.png | ||
# | ||
# The version that is post 1.0 has a different title | ||
# Title: Rings of Conifers and Other Observations | ||
# files: 18:trees.png | ||
# | ||
# Now let's add a second file to the unpublished version of the study: | ||
# | ||
# http://localhost:8080/dataset.xhtml?id=17 | ||
# | ||
# The new file should be named trees2.png and have a description of | ||
# "Another tree image." | ||
# | ||
# anon should be able to see the published 1.0 version but not the new draft (no change from dataset-versioning02anon) | ||
#diff -u <(curl -s 'http://localhost:8080/api/search?q=trees&showrelevance=true') scripts/search/tests/expected/dataset-versioning02anon | ||
# pete should be able to see the published version 1.0 with published=true (same as anon) | ||
#diff -u <(curl -s 'http://localhost:8080/api/search?q=trees&key=pete&published=true') scripts/search/tests/expected/dataset-versioning03pete-published-only | ||
# pete should be able to see the newer draft version with unpublished=true | ||
#diff -u <(curl -s 'http://localhost:8080/api/search?q=trees&key=pete&unpublished=true') scripts/search/tests/expected/dataset-versioning03pete-unpublished-only | ||
# pete should see just the published version by default | ||
diff -u <(curl -s 'http://localhost:8080/api/search?q=trees&key=pete') scripts/search/tests/expected/dataset-versioning03pete-published-only | ||
# here's the solr doc for the dataset | ||
#diff -u scripts/search/tests/expected/dataset-versioning02dataset_17solr <(curl -s 'http://localhost:8983/solr/collection1/select?rows=100&wt=json&indent=true&q=id:dataset_17') | egrep -v '_version_|release_or_create_date_dt' | ||
# anon should be able to see the published 1.0 version but not the new draft and not the new file | ||
# (no change from dataset-versioning02anon) | ||
diff -u <(curl -s 'http://localhost:8080/api/search?q=trees&showrelevance=true') scripts/search/tests/expected/dataset-versioning02anon | ||
# pete should be able to see the new unpublished file | ||
diff -u <(curl -s 'http://localhost:8080/api/search?q=trees&key=pete') scripts/search/tests/expected/dataset-versioning04pete |
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,24 @@ | ||
#!/bin/bash | ||
# We assume you've done everything in scripts/search/tests/dataset-versioning04 | ||
# There should now be two Solr documents for datasets with different titles. | ||
# | ||
# Version 1.0 has a single file | ||
# Title: Rings of Trees and Other Observations | ||
# files: 18:trees.png | ||
# | ||
# The version that is post 1.0 but unpublished has two files | ||
# Title: Rings of Conifers and Other Observations | ||
# files: 18:trees.png, 19:trees2.png | ||
# | ||
# Now let's change the description of the published file (18:trees.png) from | ||
# "Trees are lovely." | ||
# to | ||
# "The first picture of trees I uploaded." | ||
# | ||
# anon should be able to see the published 1.0 version but not the new draft and not the new file | ||
# and not the change in description | ||
# (no change from dataset-versioning02anon) | ||
diff -u <(curl -s 'http://localhost:8080/api/search?q=trees&showrelevance=true') scripts/search/tests/expected/dataset-versioning02anon | ||
# What about pete? should he see multiple cards for the two versions | ||
# (with different descriptions) of 18:trees.png? Right now there is only one | ||
# card per file and for published files it always shows the published information. |
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,10 @@ | ||
|
||
{ | ||
"q":"trees", | ||
"fq_provided":"[]", | ||
"fq_actual":"[({!join from=groups_s to=perms_ss}id:group_public OR {!join from=groups_s to=perms_ss}id:group_user1)]", | ||
"total_count":7, | ||
"start":0, | ||
"count_in_response":7, | ||
"items":"[datafile_18:trees.png:18, datafile_19:trees2.png:19, dataset_17:Rings of Trees and Other Observations:17, dataset_17_draft:Rings of Conifers and Other Observations:17, dataverse_10:Birds:10, dataverse_11:Trees:11, dataverse_16:Chestnut Trees:16]" | ||
} |
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
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.