• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #263 (new defect)

Opened 2 years ago

Last modified 2 years ago

Unloaded collections/links are a pain

Reported by: jmoore Owned by: jmoore
Priority: critical Milestone: GatherReqs
Component: Documentation Version: 3.0-M3
Keywords: links,collections,unloading Cc:

Description

Writing this one up under documentation. Am also adding documentation to [ http://cvs.openmicroscopy.org.uk/tiki/tiki-index.php?page=Omero+Object+Model Omero+Object+Model] on the tiki.

As seen in:

  • #92
  • #60
  • #194
  • #141
  • #143
  • #208
  • ...

the fact that collections can get unloaded (set to null) or filtered (have their name add to Details.filteredSet()) is very difficult for users. Calls to link<Class> or unlink<Class> fail mysteriously. The simplest solution is to take the checks in the model classes a step further (this is actually the defect here) and check filtered as well as null.

All calls no matter what throw an exception. This then needs to be documented in the API calls that the graphs that are returned "will throw an IllegalStateException when someObject.getSomeOtherObject() is called". Users of the generic IUpdate and IQuery should be equally forewarned.

The only alternative really is to not lazily load our collections. This isn't too bad until the case comes that a dataset with 10,000 images should be returned, but the user doesn't care about the images.

More sensible is to clarify the add<Class>/link<Class>/etc. model API and to make the exceptions as understandable as possible. (In the special case of links, #208 is also important.)

Change History

Changed 2 years ago by jmoore

  • keywords links,collections,unloading, iteration6 added; links,collections,unloading removed

Changed 2 years ago by jmoore

  • milestone changed from 3.0-M3 to GatherReqs

Changed 2 years ago by jmoore

  • keywords links,collections,unloading added; links,collections,unloading, iteration6 removed

Changed 2 years ago by jmoore

Note also need to examine the difference between what the read filter does and manual filtering. Read filter does not_ update the filtered set!

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/