<div dir="ltr">Yes, just to reiterate what Allyson, Elliot, and Teresa have shared - this happens at random but does not seem to be directly correlated (at least for us) to actually dragging/dropping/moving components.  A case in point: I've been going through and adding access restriction notes to various components within existing administrative collections.  Last week I clicked on several existing components in a resource record, added conditions governing access notes to those components, saved the changes, and went about the rest of my day.  The following day I pulled up the resource to answer a reference question and, lo and behold, it appeared as if someone had dipped a giant wooden spoon into the cauldron that was the collection and stirred all the components about in an infuriatingly nonsensical way to make component soup of our previously well-ordered resource record.<div><br></div><div>Payten - Thanks for sharing this code, but just to confirm, have you tested this fix against the scenario I describe (editing but not moving a component)?  I just want clarification since the description for your patch ("Patch for drag and drop causing record to lose position/parent") does not align with the primary problem we are encountering.  Again, thanks for your hard work.</div><div><br></div><div>Chris - Do we have a timeline for this release?  We are seeing many benefits to our transition to ArchivesSpace, but this problem has been a constant thorn in our sides since we first reported it in June.  We had hoped that 1.1.0 would resolve this issue (as we'd been told it would), but we remain anxious for the day when we can rest assured that ArchivesSpace gnomes won't enter our resources at night and scramble them all about.</div><div><br></div><div>Best,</div><div><br></div><div>Lora Davis</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 8:40 AM, Chris Fitzpatrick <span dir="ltr"><<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank">Chris.Fitzpatrick@lyrasis.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Ah, awesome Payten. </p>
<p>I couldn't get this to replicate and was thinking it was something in the backend.
</p>
<p><br>
</p>
<p>Will apply this and include it in the next release. </p>
<p>Thanks!<br>
</p><span class="">
<p>b,chris. <br>
</p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div><font>
<div>Chris Fitzpatrick | <font>Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat  | Phone: <a href="tel:918.236.6048" value="+19182366048" target="_blank">918.236.6048</a><br>
<a href="http://archivesspace.org/" target="_blank">http://archivesspace.org/</a><br>
</div>
</font></div>
</div>
</div>
</span><div style="word-wrap:break-word">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Payten Giles <<a href="mailto:payten.giles@gmail.com" target="_blank">payten.giles@gmail.com</a>><br>
<b>Sent:</b> Wednesday, November 12, 2014 5:44 AM<br>
<b>To:</b> Chris Fitzpatrick; Archivesspace Users Group<div><div class="h5"><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] reordering objects in resource records</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>Hi there Chris, Allyson,
<div><br>
</div>
<div>Eavesdropping a little bit and the guilt of writing this code became too much! </div>
<div><br>
</div>
<div>Chris, this looks like a little bug in the tree.js where we aren’t checking the correct node.. the comment says the right thing while the code does the wrong thing.  Here’s a gist of a potential patch:</div>
<div><br>
</div>
<div><a href="https://gist.github.com/payten/649819e7f08d0de3e945" target="_blank">https://gist.github.com/payten/649819e7f08d0de3e945</a></div>
<div><br>
</div>
<div>To replicate I have a Resource hierarchy something like this:</div>
<div><br>
</div>
<div>- Resource </div>
<div><span style="white-space:pre-wrap"></span>- AO Parent</div>
<div><span style="white-space:pre-wrap"></span>- AO Child 1</div>
<div><span style="white-space:pre-wrap"></span>- AO Child 2</div>
<div><span style="white-space:pre-wrap"></span>- AO Child 3</div>
<div><span style="white-space:pre-wrap"></span>- AO Child 4</div>
<div><br>
</div>
<div>I select and go to edit ‘AO Child 3’.  When that form is visible I drag ‘AO Child 4’ above to become the first sibling.  I then continue to edit ‘AO Child 3’ and refresh the page.  ‘A0 Child 3’ is now positioned directly under ‘Resource’.</div>
<div><br>
</div>
<div>Happy to put together a more formal pull request if you like.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Payten</div>
<div><br>
<div>
<blockquote type="cite">
<div>On 11 Nov 2014, at 12:53 am, Chris Fitzpatrick <<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank">Chris.Fitzpatrick@lyrasis.org</a>> wrote:</div>
<br>
<div>
<div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:12pt;background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="margin-top:0px;margin-bottom:0px">Hi Allyson,</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">Unfortuantely, I haven't been able to replicate the problem of component movements not sticking. See =></div>
<div style="margin-top:0px;margin-bottom:0px"><a href="https://drive.google.com/file/d/0BzRF7huQ7tqKS29oM2RZZWNubGc/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0BzRF7huQ7tqKS29oM2RZZWNubGc/view?usp=sharing</a> )</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">In edit mode, I'm able to drag and drop components, reload the page, or go to the view page.</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">Is this happening for every record every time for you? Or is it an infrequent thing?</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">Not doubting you ( I promise! ) , just trying to see when this is happening...</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">b,chris.<span> </span><br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;margin:0px">
<div><font>Chris Fitzpatrick | Developer, ArchivesSpace<br>
Skype: chrisfitzpat  | Phone: <a href="tel:918.236.6048" value="+19182366048" target="_blank">918.236.6048</a><br>
<a href="http://archivesspace.org/" target="_blank">http://archivesspace.org/</a><br>
</font></div>
</div>
</div>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:597.796875px">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif"><b>From:</b><span> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
 <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Allyson Smally <<a href="mailto:asmally@colgate.edu" target="_blank">asmally@colgate.edu</a>><br>
<b>Sent:</b><span> </span>Friday, November 07, 2014 6:04 PM<br>
<b>To:</b><span> </span>Archivesspace Users Group<br>
<b>Subject:</b><span> </span>Re: [Archivesspace_Users_Group] reordering objects in resource records</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hello all -<br>
<br>
</div>
Unfortunately, after upgrading to the newest release, we are still having this problem.<br>
</div>
Archival objects are reordering themselves after being edited.<br>
<br>
</div>
Is anyone else still having this problem? Does anyone know of a solution?<br>
<br>
</div>
Thanks very much,<br>
</div>
Allyson<br>
<br>
Allyson E. Smally<br>
Processing Archivist<br>
Colgate University Libraries<br>
13 Oak Drive<br>
Hamilton, NY 13346<br>
<a href="tel:%28315%29%20228-7867" value="+13152287867" target="_blank">(315) 228-7867</a><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Sep 25, 2014 at 8:14 AM, Ben Goldman<span> </span><span dir="ltr"><<a href="mailto:bmg17@psu.edu" target="_blank">bmg17@psu.edu</a>></span><span> </span>wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<div style="font-family:georgia,serif;font-size:10pt">
<div>Hi Chris,<br>
</div>
<div><br>
</div>
<div>Archival object tree. </div>
<div><br>
</div>
<div>Thanks!</div>
<div>-Ben</div>
<div><br>
</div>
<hr>
<div style="font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt">
<b>From:<span> </span></b>"Chris Fitzpatrick" <<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank">Chris.Fitzpatrick@lyrasis.org</a>><span><br>
<b>To:<span> </span></b>"Archivesspace Users Group" <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
</span><b>Sent:<span> </span></b>Thursday, September 25, 2014 3:46:10 AM
<div>
<div><br>
<b>Subject:<span> </span></b>Re: [Archivesspace_Users_Group] reordering objects        in        resource        records<br>
<div><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">Hey Ben,</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">Soon, I promise!</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">But just to check, are you talking about reording the archival object tree for the resource or the order of things like notes and subjects?</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">b,chris.<span> </span><br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div>
<div>
<div><span size="2" style="font-size:small">Chris Fitzpatrick | Developer, ArchivesSpace<br>
Skype: chrisfitzpat  | Phone: <a href="tel:918.236.6048" value="+19182366048" target="_blank">918.236.6048</a><br>
<a href="http://archivesspace.org/" target="_blank">http://archivesspace.org/</a><br>
</span></div>
</div>
</div>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:583.640625px">
<div dir="ltr"><span face="Calibri, sans-serif" style="font-size:11pt;font-family:Calibri,sans-serif"><b>From:</b><span> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span> </span><<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
 on behalf of Ben Goldman <<a href="mailto:bmg17@psu.edu" target="_blank">bmg17@psu.edu</a>><br>
<b>Sent:</b><span> </span>Tuesday, September 23, 2014 10:19 PM<br>
<b>To:</b><span> </span>Archivesspace Users Group<br>
<b>Subject:</b><span> </span>Re: [Archivesspace_Users_Group] reordering objects in resource records</span>
<div> </div>
</div>
<div>
<div style="font-family:georgia,serif;font-size:10pt">
<div>Thanks, Allyson. I knew it sounded familiar!<br>
</div>
<div><br>
</div>
<div>Do we have an ETA on the next release yet? :)</div>
<div><br>
</div>
<div>-Ben</div>
<div><br>
</div>
<hr>
<div style="font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt">
<b>From:<span> </span></b>"Allyson Smally" <<a href="mailto:asmally@colgate.edu" target="_blank">asmally@colgate.edu</a>><br>
<b>To:<span> </span></b>"Archivesspace Users Group" <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Sent:<span> </span></b>Tuesday, September 23, 2014 4:15:04 PM<br>
<b>Subject:<span> </span></b>Re: [Archivesspace_Users_Group] reordering objects in resource        records<br>
<div><br>
</div>
<div dir="ltr">
<div>
<div>
<div>Hi Ben,<br>
<div><br>
</div>
</div>
Yes, from what I understand this is a known issue. It has been happening to us a lot as well.<br>
</div>
At SAA this August, I was told it would be fixed in the next release.<br>
<div><br>
</div>
</div>
-Allyson<br>
<div class="gmail_extra"><br>
Allyson E. Smally<br>
Processing Archivist<br>
Colgate University Libraries<br>
13 Oak Drive<br>
Hamilton, NY 13346<br>
<a href="tel:%28315%29%20228-7867" target="_blank">(315) 228-7867</a><br>
<div><br>
</div>
<div class="gmail_quote">On Tue, Sep 23, 2014 at 2:52 PM, Ben Goldman<span> </span><span dir="ltr"><<a href="mailto:bmg17@psu.edu" target="_blank">bmg17@psu.edu</a>></span><span> </span>wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<div style="font-family:georgia,serif;font-size:10pt">
<div>Hello,</div>
<div><br>
</div>
<div>I've just experienced an issue and on a cursory search can't tell if it's been noted in PivotalTracker yet or discussed here yet.</div>
<div><br>
</div>
<div>I've been editing an inventory object-by-object in a resource record, saving each object as I updated it. In one instance I reordered one of the objects by dragging it further down the tree, then continued editing other objects. Then I reached
 an object that could be removed, clicked to delete it,  the resource reloaded in View mode, and the objects appeared to shuffle, and not seemingly in the order I started with. </div>
<div><br>
</div>
<div>-Ben</div>
<span><span style="color:rgb(136,136,136)">
<div><br>
</div>
<div><span style="font-size:small"><span style="font-family:georgia,serif;font-weight:bold">Ben Goldman</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">Digital Records Archivist</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">Penn State University Libraries</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">University Park, PA</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif"><a href="tel:814-863-8333" target="_blank">814-863-8333</a><br>
<a href="http://www.libraries.psu.edu/psul/speccolls.html" target="_blank">http://www.libraries.psu.edu/psul/speccolls.html</a><br>
</span></span><br>
</div>
</span></span></div>
</div>
<br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</blockquote>
</div>
--<span> </span><br>
<div>
<div dir="ltr">Allyson E. Smally<br>
Processing Archivist<br>
Colgate University Libraries<br>
13 Oak Drive<br>
Hamilton, NY 13346<br>
<a href="tel:%28315%29%20228-7867" value="+13152287867" target="_blank">(315) 228-7867</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Archivesspace_Users_Group
 mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important"><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a></span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important"><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</div>

<br>_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Lora J. Davis<br>Assistant Archivist<br>Colgate University Libraries<br>13 Oak Drive<br>Hamilton, NY 13346<div>Tel:  (315) 228-6376<br>Fax: (315) 228-7934</div></div>
</div>