Menu

#26 Driving PSI properties: repeating attributes order

v3.5
open
dmcgee
3
2007-11-13
2006-08-03
No

comment posted by siams on 2006-01-18 1:39 PM
When a repeating PSI property/attribute is updated by a
Question in the Wizard, the series of values is not
saved to the object in the proper order.

This is most likely caused by the use of HashSet object
to store the values before they are saved to the
docbase (ChangeRequest.setPsiProperties()). The HashSet
object does not guarantee the order of its elements to
remain constant over time.

Discussion

  • Technology Services Group

    Logged In: YES
    user_id=1536553

    comment posted by gsteimer on 2006-01-26 11:30 AM
    changing to low priority -- we will only fix this if a
    client asks for it

    changed by siams on 2006-01-18 1:46 PM
    changed desc from "Wizard driving PSI properties: repeating
    attributes not saved in propery order" to "Wizard driving
    PSI properties: repeating attributes not saved in proper order"

     
  • George Steimer

    George Steimer - 2006-09-15
    • summary: Wizard driving PSI properties: repeating attributes not save --> Driving PSI properties: repeating attributes order
     
  • dmcgee

    dmcgee - 2007-11-13
    • assigned_to: nobody --> toofishes
     
  • dmcgee

    dmcgee - 2007-11-13

    Logged In: YES
    user_id=1568182
    Originator: NO

    This looks like it was a real quick fix so I went ahead and did it. Changed HashSet -> LinkedHashSet which guarantees iteration order to be the same as the insertion order. See commit 1375.

    This fix was not extensively tested, so keep that in mind.

     

Log in to post a comment.

MongoDB Logo MongoDB