Rothamsted-Ecoinformatics / farm_rothamsted

Custom farmOS features for Rothamsted Research.
GNU General Public License v2.0
6 stars 1 forks source link

Experiment Module: Duplicate Proposals #659

Closed aislinnpearson closed 2 months ago

aislinnpearson commented 4 months ago

Please can we add functionality to duplicate proposals. All fields should be copied except:

  1. Name (should appear blank)
  2. Experiment, Plan and Design (should appear blank)
  3. Status: This should please revert back to Draft
  4. Status notes: should please include a comment such as 'This Proposal was created by duplicating [Proposal Name]: [Proposal Link]. Please refer to that proposal for previous versions and a revision history.
  5. Revision message: Copy of [Proposal Name]: [Proposal Link] (ideally the user would not be able to delete this revision message)
paul121 commented 3 months ago

Done!

paul121 commented 3 months ago
aislinnpearson commented 2 months ago

Hey @paul121,

A quick question here (which is basically due to a specification error on my part): did we set permissions for who could and couldn't duplicate proposals? Ideally it would be the same as for creating proposals... but I can specify that as a new issue if we need to.

aislinnpearson commented 2 months ago

Agreed that @aislinnpearson needs to test this before closing this issue.

aislinnpearson commented 2 months ago

Tested this issue on the live site and the permissions work as expected: only Research Leads, Farm Manager and Farm Admins can duplicate proposals (equivalent to the permissions of people who can create Proposals)