Skip to content
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

Update to 5/7, 2:45pm #5

Merged
merged 62 commits into from
May 7, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
b828799
Working on dataset json i/o
michbarsinai May 6, 2014
4c0a2d4
Merge branch 'master' of github.com:IQSS/dataverse
michbarsinai May 6, 2014
73fae2c
Updated link URL for Support, Resources, Software in the header. Comm…
May 6, 2014
bff8f8d
Merge origin/master
May 6, 2014
a07ec72
Final mod for formatting of numeric values in CSV ingest. (we ain't d…
landreev May 6, 2014
044d10d
Merge branch 'master' of github.com:IQSS/dataverse_temp
landreev May 6, 2014
cc219c1
added dataverse contact button
scolapasta May 6, 2014
b385245
added tooltips for datasetFieldTypes
scolapasta May 6, 2014
7ec4e30
Changed index service bean to be more careful about not leaving the "…
landreev May 6, 2014
d9ad0eb
Merge branch 'master' of github.com:IQSS/dataverse_temp
landreev May 6, 2014
6126ed5
Fix tree not open after edit metadata or edit files is cancelled. St…
raprasad May 6, 2014
0dbe67a
Increased the input field size on stand alone fields in the edit mode…
May 6, 2014
fc599fe
Merge origin/master
May 6, 2014
b302350
Fix dataset version title for breadcrumbs
sekmiller May 6, 2014
d40e3d0
changed position to be free form
scolapasta May 6, 2014
d55bb6c
removed unneeded links from header;
scolapasta May 6, 2014
1a813c7
added #of notifications next to notifications in the header
scolapasta May 6, 2014
aa556e0
Fix "STATIC TOOLTIP" on Dataset Page
sekmiller May 6, 2014
dbb698e
Applied simpler, Publish Dataverse button to the dataverse pg, and re…
May 6, 2014
22de0ea
Merge origin/master
May 6, 2014
f795ab3
Minor Dataset Page cleanup
sekmiller May 6, 2014
3306494
Updated Publish Dataverse section
May 6, 2014
45f37d8
Updated Publish Dataset section
May 6, 2014
a73ec4a
Updated New Dataset instructions
May 6, 2014
1c9fd11
Fixed layout issue with the navbar displaying over confirmDialog over…
May 6, 2014
ef6f42a
Merge origin/master
May 6, 2014
46a2de7
cleaned up advanced search
scolapasta May 7, 2014
50a5090
Dismantled the old 3.6 framework for attaching arbitrary metadata fie…
landreev May 7, 2014
ad8dc5b
Fixed Adv Search boolean for coverage.Temporal
May 7, 2014
264b7f9
loosen makeMultivalued requirement, make fieldType date text_en #3939
pdurbin May 7, 2014
d979116
fits ingest plugin.
landreev May 7, 2014
42d1b1d
Do not allow a dataset to be moved to a new dataverse. This is for b…
raprasad May 7, 2014
ecdfaa0
Fixed merge conflict
michbarsinai May 7, 2014
dd40ee2
Move javascript from dataverse_template to separate .js file. These …
raprasad May 7, 2014
a922afe
Removed debug command that wrote to console
raprasad May 7, 2014
d10add4
file card draft/publish lifecycle, including delete #3795
pdurbin May 7, 2014
c3b80e2
Add Version Date to Dataset Page Version Tab
sekmiller May 7, 2014
8757bcd
minor change to fits date parsing
landreev May 7, 2014
55f4e42
fixed rendering logic for publish button
scolapasta May 7, 2014
771319d
More work on exporting dataset fields to Json
michbarsinai May 7, 2014
10c39c2
Merge branch 'master' of github.com:IQSS/dataverse
michbarsinai May 7, 2014
3385b01
Changed field type in distributorContact from text to email
posixeleni May 7, 2014
3e66ebc
Merge origin/master
scolapasta May 7, 2014
061b438
fixed issue with old versions showing latest version files
scolapasta May 7, 2014
18337ab
don't enter solrDownMode on an unparseable query #3632
pdurbin May 7, 2014
80bc7f6
Cleaned up the search results cards. Found a place for the date. Move…
May 7, 2014
7664953
Merge origin/master
May 7, 2014
e08d10f
Commented out broken tests in JsonParserTest.java so system will compile
raprasad May 7, 2014
c447bf2
show solr errors (if any) on debug page #3632
pdurbin May 7, 2014
2b3c15c
Change Version Date display to Month Day, Year
sekmiller May 7, 2014
cc07042
Added generating notifications for both creating account and creating…
xyang02 May 7, 2014
6cb15dd
Added generating notifications for both creating account and creating…
xyang02 May 7, 2014
62f1eac
Added generating notifications for both creating account and creating…
xyang02 May 7, 2014
34361e1
Added generating notifications for both creating account and creating…
xyang02 May 7, 2014
009a64f
set "allowMultiple" to true for these 2 fields in astrophysics.tsv:
posixeleni May 7, 2014
78e1265
Update find-use-data.rst
eaquigley May 7, 2014
3b8d230
Last (for the beta release) modifications to the fits ingest and the …
landreev May 7, 2014
8c87080
Merge branch 'master' of github.com:IQSS/dataverse_temp
landreev May 7, 2014
d2fea66
minor update to solr schema.
landreev May 7, 2014
37de0f2
Update account.rst
eaquigley May 7, 2014
82b8ba2
Update dataset-management.rst
eaquigley May 7, 2014
9995095
from cards, link to specific dataset versions #3937
pdurbin May 7, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions conf/solr/4.6.0/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -298,22 +298,22 @@
<field name="coverage.Redshift.MinimumValue" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.RedshiftValue" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.SkyFraction" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="coverage.Spatial" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="coverage.Spatial" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.Spectral.Bandpass" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.Spectral.CentralWavelength" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.Spectral.MaximumWavelength" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.Spectral.MinimumWavelength" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.Spectral.Wavelength" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.Temporal" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="coverage.Temporal.StartTime" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="coverage.Temporal.StopTime" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="coverage.Temporal" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.Temporal.StartTime" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="coverage.Temporal.StopTime" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="dataCollectionSituation" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="dataSources" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="datasetLevelErrorNotes" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="dateOfCollection" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="dateOfCollectionEnd" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="dateOfCollectionStart" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="dateOfDeposit" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="dateOfCollectionEnd" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="dateOfCollectionStart" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="dateOfDeposit" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="depositor" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="deviationsFromSampleDesign" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="distributorContact" type="text_en" multiValued="true" stored="true" indexed="true"/>
Expand All @@ -336,7 +336,7 @@
<field name="otherIdAgency" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="otherIdValue" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="otherReferences" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="productionDate" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="productionDate" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="productionPlace" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="publication" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="publicationCitation" type="text_en" multiValued="true" stored="true" indexed="true"/>
Expand All @@ -350,7 +350,7 @@
<field name="resolution.Redshift" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="resolution.Spatial" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="resolution.Spectral" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="resolution.Temporal" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="resolution.Temporal" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="responseRate" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="sampleFrame" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="samplingErrorEstimates" type="text_en" multiValued="false" stored="true" indexed="true"/>
Expand All @@ -370,9 +370,9 @@
<field name="subject" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="targetSampleSize" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="timeMethod" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="timePeriodCovered" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="timePeriodCoveredEnd" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="timePeriodCoveredStart" type="int" multiValued="false" stored="true" indexed="true"/>
<field name="timePeriodCovered" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="timePeriodCoveredEnd" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="timePeriodCoveredStart" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="title" type="text_en" multiValued="false" stored="true" indexed="true"/>
<field name="topicClassValue" type="text_en" multiValued="true" stored="true" indexed="true"/>
<field name="topicClassVocab" type="text_en" multiValued="true" stored="true" indexed="true"/>
Expand Down
9 changes: 5 additions & 4 deletions doc/Sphinx/source/User/account.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Create User Account

Edit Your Account
==================
#. To edit your account, click on your account name in the header on the right hand side.
#. On the right of your account information, click on the "Edit Account" button and from there you can select to edit either your Account Information or your Account Password.
#. To edit your account, click on your account name in the header on the right hand side and click on either Notifications or Data Related to Me.
#. On the top right of your account page, click on the "Edit Account" button and from there you can select to edit either your Account Information or your Account Password.
#. Select "Save Changes" when you are done.

Notifications: Setup & Maintainance
Expand All @@ -25,7 +25,8 @@ Notifications appear in the notifications tab on your account page and are also

You will receive a notification when:

- You've published a dataverse or dataset
- When another user has published a dataverse or dataset within your dataverse (only if your dataverse allows this)- A user has requested access to restricted dataverses, datasets, or files within your dataverse
- You've created your account
- You've created a dataverse or added a dataset
- More notifications to come!

Dataverse will email your unread notifications once a day. Notifications will only be emailed one time even if you haven't read the notification on the Dataverse site.
30 changes: 17 additions & 13 deletions doc/Sphinx/source/User/dataset-management.rst
Original file line number Diff line number Diff line change
@@ -1,43 +1,47 @@
Dataset & File Management
+++++++++++++++++++++++++++++

A Dataset in Dataverse is a container for your data, documentation, code, and the metadata describing this Dataset.
A dataset in Dataverse is a container for your data, documentation, code, and the metadata describing this Dataset.

|image1|

Add Dataset
New Dataset
====================

#. Navigate to the dataverse in which you want to add a Dataset (or in the "root" dataverse).
#. Click on the "Add Data" button and select "Add Dataset" in the dropdown menu.
#. Navigate to the dataverse in which you want to add a dataset (or in the "root" dataverse).
#. Click on the "Add Data" button and select "New Dataset" in the dropdown menu.
#. To quickly get started, enter at minimum all the required fields with an asterisk (e.g., the Dataset Title, Author,
Description, etc)
#. Scroll down to "Files" tab and click on "Select Files to Add" to add all the relevant files to your Dataset.
You can also upload your files directly from your Dropbox. **Tip:** You can drag and drop your files from your desktop,
directly into the upload widget. Your file will appear below the "Select Files to Add" button where you can add a
description of the file.
#. Click the "Create Dataset" button when you are done. Your unpublished Dataset is now created.
#. Click the "Add Dataset" button when you are done. Your unpublished dataset is now created.

Note: You can add additional metadata once you have completed the initial Dataset creation by going to Edit Dataset.
Note: You can add additional metadata once you have completed the initial dataset creation by going to Edit Dataset.


Edit Dataset
==================

Go to your Dataset page and click on the "Edit Dataset" button. There you will have two options where you can either edit:
Go to your dataset page and click on the "Edit Dataset" button. There you will have two options where you can either edit:

- Files (Upload or Edit Data): to add or edit files in this Dataset.
- Files (Upload or Edit Data): to add or edit files in this dataset.
- Metadata: to add/edit metadata including additional metadata than was not previously available during Dataset Creation.


Publish Dataset
====================

When you publish a Dataset, you make it available to the public. Users can
browse it or search for it. Once your Dataset is ready to go public, go to your Dataset page,
click on the "Unpublished" button on the right hand side of the page which should indicate:
"This Dataset is unpublished. To publish it click 'Publish Dataset' link."
When you publish a dataset, you make it available to the public so that other users can
browse or search for it. Once your dataset is ready to go public, go to your dataset page and click on the
"Publish" button on the right hand side of the page. A pop-up will appear to confirm that you are ready to actually
Publish since once a dataset is made public it can no longer be unpublished.

Whenever you edit your dataset, you are able to publish a new version of the dataset. The publish dataset button will reappear whenever you edit the metadata of the dataset or add a file.

Note: Prior to publishing your dataset the Data Citation will indicate that this is a draft but the "DRAFT VERSION" text
will be removed as soon as you Publish.

Important Note: Once a Dataset is published it **cannot be unpublished**; it can be archived instead.

.. |image1| image:: ./img/DatasetDiagram.png
9 changes: 3 additions & 6 deletions doc/Sphinx/source/User/dataverse-management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,9 @@ where you will be presented with the following editing options.
Publish Your Dataverse
=================================================================

Once your dataverse is ready to go public, go to your dataverse page, click on the "Unpublished" button on the right
hand side of the page which should indicate:
"This dataverse is Unpublished. To publish it click 'Publish dataverse' link." Once you click "Publish dataverse" it
will be made public.

**Important Note**: Once a dataverse is made public it can no longer be unpublished.
Once your dataverse is ready to go public, go to your dataverse page, click on the "Publish" button on the right
hand side of the page. A pop-up will appear to confirm that you are ready to actually Publish since once a dataverse
is made public it can no longer be unpublished.


.. |image1| image:: ./img/Dataverse-Diagram.png
Expand Down
11 changes: 11 additions & 0 deletions doc/Sphinx/source/User/find-use-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ To perform an advanced search, click the Advanced Search link next to the search

**Advanced Search fields**

*Dataverses:*

- Name - The project, department, university, or professor this Dataverse will contain data for.
- Affiliation - The organization with which this Dataverse is affiliated.
- Description - A summary describing the purpose, nature, or scope of this Dataverse.

*Citation Metadata:*

- Title - Full title by which the dataset is known.
Expand Down Expand Up @@ -84,6 +90,11 @@ To perform an advanced search, click the Advanced Search link next to the search
- Organism - The taxonomic name of the organism used in a study or from which the starting biological material derives.
- Cell Type - The name of the cell line from which the source or sample derives.

*Files:*

- Name - Full name by which the file is known.
- Description - A summary describing the file, variables, or type.
- File Type - The extension for the file, for example, JPEG, PNG, dta, etc

Browsing Dataverse
--------------------
Expand Down
12 changes: 6 additions & 6 deletions scripts/api/data/metadatablocks/astrophysics.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
astroObject Object Astronomical Objects represented in the data (Given as SIMBAD recognizable names preferred). text 3 TRUE FALSE TRUE TRUE FALSE FALSE astrophysics
resolution.Spatial Spatial Resolution The spatial (angular) resolution that is typical of the observations, in decimal degrees. float 4 TRUE FALSE TRUE TRUE FALSE FALSE astrophysics
resolution.Spectral Spectral Resolution The spectral resolution that is typical of the observations, given as the ratio λ/Δλ. float 5 TRUE FALSE TRUE TRUE FALSE FALSE astrophysics
resolution.Temporal Time Resolution The temporal resolution that is typical of the observations, given in seconds. float 6 FALSE FALSE FALSE FALSE FALSE FALSE astrophysics
resolution.Temporal Time Resolution The temporal resolution that is typical of the observations, given in seconds. float 6 FALSE FALSE TRUE FALSE FALSE FALSE astrophysics
coverage.Spectral.Bandpass Bandpass Conventional bandpass name text 7 TRUE TRUE TRUE TRUE FALSE FALSE astrophysics
coverage.Spectral.CentralWavelength Central Wavelength (m) The central wavelength of the spectral bandpass, in meters. float 8 TRUE FALSE TRUE TRUE FALSE FALSE astrophysics
coverage.Spectral.Wavelength Wavelength Range The minimum and maximum wavelength of the spectral bandpass. float 9 FALSE FALSE TRUE FALSE FALSE FALSE astrophysics
coverage.Spectral.MinimumWavelength Minimum (m) The minimum wavelength of the spectral bandpass, in meters. float 10 TRUE FALSE FALSE TRUE FALSE FALSE coverage.Spectral.Wavelength astrophysics
coverage.Spectral.MaximumWavelength Maximum (m) The maximum wavelength of the spectral bandpass, in meters. float 11 TRUE FALSE FALSE TRUE FALSE FALSE coverage.Spectral.Wavelength astrophysics
coverage.Temporal Dataset Date Range Time period covered by the data. date 12 TRUE FALSE TRUE FALSE FALSE FALSE astrophysics
coverage.Temporal.StartTime Start Dataset Start Date YYYY-MM-DD date 13 FALSE FALSE FALSE TRUE FALSE FALSE coverage.Temporal astrophysics
coverage.Temporal.StopTime End Dataset End Date YYYY-MM-DD date 14 FALSE FALSE FALSE TRUE FALSE FALSE coverage.Temporal astrophysics
coverage.Spatial Sky Coverage The sky coverage of the data object. text 15 FALSE FALSE FALSE FALSE FALSE FALSE astrophysics
coverage.Temporal Dataset Date Range Time period covered by the data. date 12 FALSE FALSE TRUE FALSE FALSE FALSE astrophysics
coverage.Temporal.StartTime Start Dataset Start Date YYYY-MM-DD date 13 TRUE FALSE FALSE TRUE FALSE FALSE coverage.Temporal astrophysics
coverage.Temporal.StopTime End Dataset End Date YYYY-MM-DD date 14 TRUE FALSE FALSE TRUE FALSE FALSE coverage.Temporal astrophysics
coverage.Spatial Sky Coverage The sky coverage of the data object. text 15 FALSE FALSE TRUE FALSE FALSE FALSE astrophysics
coverage.Depth Depth Coverage The (typical) depth coverage, or sensitivity, of the data object in Jy. float 16 FALSE FALSE FALSE FALSE FALSE FALSE astrophysics
coverage.ObjectDensity Object Density The (typical) density of objects, catalog entries, telescope pointings, etc., on the sky, in number per square degree. float 17 FALSE FALSE FALSE FALSE FALSE FALSE astrophysics
coverage.ObjectCount Object Count The total number of objects, catalog entries, etc., in the data object. int 18 FALSE FALSE FALSE FALSE FALSE FALSE astrophysics
Expand Down Expand Up @@ -51,4 +51,4 @@
astroType Object 20
astroType Value 21
astroType ValuePair 22
astroType Survey 23
astroType Survey 23
4 changes: 2 additions & 2 deletions scripts/api/data/metadatablocks/citation.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
author Author The person(s), corporate body(ies), or agency(ies) responsible for creating the work. text 1 FALSE FALSE TRUE FALSE TRUE FALSE citation
authorName Name The author's Family Name, Given Name or the name of the organization responsible for this dataset. FamilyName, GivenName or Organization text 2 TRUE FALSE FALSE TRUE TRUE TRUE author citation
authorAffiliation Affiliation The organization with which the author is affiliated. text 3 TRUE TRUE FALSE TRUE TRUE FALSE author citation
distributorContact Contact E-mail The e-mail address(es) of the contact(s) for the Dataset. This will not be displayed. text 4 FALSE FALSE TRUE FALSE TRUE TRUE citation
distributorContact Contact E-mail The e-mail address(es) of the contact(s) for the Dataset. This will not be displayed. email 4 FALSE FALSE TRUE FALSE TRUE TRUE citation
dsDescription Description A summary describing the purpose, nature, and scope of the Dataset. textbox 5 TRUE FALSE FALSE FALSE TRUE TRUE citation
keyword Keyword Key terms that describe important aspects of the Dataset. text 6 TRUE FALSE TRUE TRUE TRUE FALSE citation
subject Subject Domain-specific Subjects that are topically relevant to the Dataset. text 7 TRUE TRUE TRUE TRUE TRUE TRUE citation
Expand Down Expand Up @@ -82,4 +82,4 @@
contributorType Sponsor 14
contributorType Supervisor 15
contributorType Work Package Leader 16
contributorType Other 17
contributorType Other 17
4 changes: 3 additions & 1 deletion scripts/api/setup-dvs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ curl -H "Content-type:application/json" -X POST -d @data/role-guest.json "http:/
curl -H "Content-type:application/json" -X POST -d"{\"userName\":\"__GUEST__\",\"roleAlias\":\"guest-role\"}" http://localhost:8080/api/dvs/root/assignments/?key=pete

echo Set the metadata block for Root
curl -X POST -H "Content-type:application/json" -d "[\"citation\"]" http://localhost:8080/api/dvs/:root/metadatablocks/?key=pete
curl -X POST -H "Content-type:application/json" -d "[\"citation\"]" http://localhost:8080/api/dvs/:root/metadatablocks/?key=pete


1 change: 1 addition & 0 deletions scripts/database/homebrew/rebuild-and-test
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sleep 15
scripts/database/homebrew/run-post-create-post-deploy
scripts/search/tests/permissions
scripts/search/tests/delete-dataverse
scripts/search/tests/query-unparseable
15 changes: 15 additions & 0 deletions scripts/search/tests/dataset-versioning02
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
#
# To do this, you must also release the Trees and Root dataverses
# raw version
#
# the expected output in server.log is something like this:
#
#deleteDraftDatasetVersionResult: Attempted to delete draft dataset_17_draft from Solr index. updateReponse was: {responseHeader={status=0,QTime=1}}, deleteDraftFilesResults: , indexReleasedVersionResult:indexed dataset 17 as dataset_17
#indexFilesResults for dataset_17, filesIndexed: [datafile_18],
#rationale:
#version found with database id 1
#- title: Rings of Trees and Other Observations
#- semanticVersion-STATE: 1.0-RELEASED
#- isWorkingCopy: false
#- isReleased: true
#- files: 1 [18:trees.png]
#The latest version is not a working copy (latestVersionState: RELEASED) and will be indexed as dataset_17 (visible by anonymous) and we will be deleting dataset_17_draft and its files (if any, num:1): [datafile_18_draft]
#The released version is 1.0 (releasedVersionState: RELEASED) and will be (again) indexed as dataset_17 (visible by anonymous)]]
#
#diff <(curl -s 'http://localhost:8080/api/datasets/17/versions/1?key=pete') scripts/search/tests/expected/dataset-versioning02raw
# anon can now see the dataset and file and parents
diff -u <(curl -s 'http://localhost:8080/api/search?q=trees&showrelevance=true') scripts/search/tests/expected/dataset-versioning02anon
Expand Down
Loading