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:
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)
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)
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
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):
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.
Location details name/value pairs are not being cloned
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.
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:
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)
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)
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