Duplicate Location Record

Description

User story:
As a user who has to create many location records
I want to be able to clone/duplicate an existing location record as a starting point
So I don't need to manually enter all the location details

[Tested previously - test info removed from the description, so that we can start fresh with testing after development is revised]

Scenarios:

  1. Scenario

    • Given the view mode of Location A (Settings > Organization > Locations)

    • When displayed

    • Then a "copy" icon should display to the left of the edit icon "duplicate" icon and option should appear in the pane header dropdown as shown in the attached sketch (similar to on the Instance record in Inventory)

  2. Scenario

    • Given the duplication option on Location A

    • When clicked

    • Then the Create location form should be displayed and all fields should be populated with the data from Location A (including the name/value pairs in the "Location details" section)

  3. Scenario

    • Given I have duplicated Location A to create Location B

    • When Location B is saved

    • Then the preview pane for Location B should display

NOTE: There is already validation upon save that prevents saving of Locations with non-unique codes and names, so we don't have to worry about duplicates being saved

Environment

None

Potential Workaround

None

Attachments

6

Checklist

hide

TestRail: Results

Activity

Show:

Cate Boerema October 26, 2018 at 10:37 AM
Edited

Looks great, ! I did see an error once (below) but I can't reproduce it so I am closing this as done. Thanks for this!

Michal Kuklis October 24, 2018 at 6:51 PM

@cate I was able to reproduce these issues. I just pushed couple more changes. Hopefully this resolved the problems you ran into.

Cate Boerema October 24, 2018 at 5:01 PM

I am seeing some issues with this (tested in folio-snapshot):

  1. After you duplicate location 1 to create location 2, the preview pane for location 1 displays (I think it should display location 2). I'll add a scenario for this.

  2. Location details name/value pairs are not being cloned

  3. I managed to generate an error somehow

Michal Kuklis October 17, 2018 at 4:32 PM

Alright everyone. This should be now updated and it should follow the pattern outlined by .

Ann-Marie Breaux October 17, 2018 at 1:34 PM

Thanks everyone for sorting this out, so has updated the story to reflect the new styling, and back to In Progress for , so that he can refactor it to remove the icon and add the pane dropdown. I'm going to wipe out our test checks and X's, and we'll start over with testing once it's revised.

Done

Details

Assignee

Reporter

Priority

Development Team

Prokopovych

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created October 9, 2018 at 9:41 AM
Updated October 26, 2018 at 4:04 PM
Resolved October 26, 2018 at 10:37 AM
TestRail: Cases
TestRail: Runs