Menu

#251 Add or Update TimeSeriesDataItem

closed-fixed
None
5
2009-06-10
2009-05-28
No

I have a class MyDataItem extended from DataItem. That class has extra atributes that I use later, for coloring.
I put them in a TimeSeries collection. Is miss an "addOrUpdate(TimeSeriesDataItem) " method like the "add(TimeSeriesDataItem)".
Is it possible to include the following diff into o TimeSeries?

Discussion

  • Eduardo Ramalho

    Eduardo Ramalho - 2009-05-28

    addOrUpdate(TimeSeriesDataItem)

     
  • Eduardo Ramalho

    Eduardo Ramalho - 2009-05-28

    Unit test

     
  • David Gilbert

    David Gilbert - 2009-06-10

    I've made a change to support this, but as part of it I've modified the TimeSeries and XYSeries classes so that they clone the data item objects before storing them or returning them from storage. This isolates the series from changes being made directly on the data items. This has been committed to Subversion for inclusion in the 1.0.14 release.

     
  • David Gilbert

    David Gilbert - 2009-06-10
    • assigned_to: nobody --> mungady
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB