AtlasOfLivingAustralia / profile-hub

Profiles front end application
http://www.ausflora.org.au/
0 stars 3 forks source link

Allow versions of snapshots #642

Open RobinaSanderson opened 5 years ago

RobinaSanderson commented 5 years ago

Currently you see the following when you are editing a profile:

image

This functionality needs to be turned on and functional for the production server.

m-hope commented 5 years ago

I'm pretty sure I've seen this functionality working in the past, so it should just be a matter of turning it on again, but given the changes made to Profiles since the function was turned off, it probably needs significant testing.

RobinaSanderson commented 5 years ago

Requirements after talking to Zoe:

  1. Only a user with admin privileges can create a snapshot of a profile
  2. A snapshot is created in the edit interface
  3. The option to create a snapshot should be under the Versions section
  4. Clicking on the option creates a snapshot of the previous published version of the profile
  5. Snapshot are stored and a DOI is created
  6. Snapshots of previous versions are displayed in the Versions section as DOI links
  7. The following text should appear before each version link: Version :
  8. Versions cannot be deleted unless the whole profile is deleted.

Note: there is also an additional requirement to publish and create a snapshot of the previous version at the same time. I'll put this in a separate story so it can be prioritised separately see #643

Rita-C commented 5 years ago

@RobinaSanderson , the "Create snapshot version" button in Versions section is enabled if you're the Collection author (reading from code), please check and advise if this meets the requirement.

m-hope commented 5 years ago

Further clarification after Retrospective:

Note: this feature is currently creating production DOI's ... given that the AWS environment is effectively a test environment how possible is it to temporarily set the code to deploy test DOIs instead until the aws system becomes production?

m-hope commented 5 years ago

As advised by Rita, the DOI source can be altered using a setting in the /data/profile-service/profile-service-config.properties file as described here: https://confluence.csiro.au/display/ALAEP/eFlora+testing

m-hope commented 5 years ago

Snapshots (and Test DOIs) have been activated on aws-profiles... the function is now available in the edit page of a profile and appears to generate a pdf (with associated DOI) which includes: