profiling importing views
made color attribute of job optional and wired request handler to jenkins.ci.cloudbees
Merge branch 'master' into refactorImport
correct Build timestamp code to use double instead of single int
refactored unit tests to pass.
removed managedobjectcontext saves from View model
refactored views import to improve performance
refactored request handler to import jobs in batches to improve performance.
importing builds in batches
multiple managed object contexts seem to be working on initial load. but on second launch, main (child) mod doesn’t display anything.
added call to mainMOC initializer to be sure it is initialized before UI is displayed. working around race condition
added synchronized blocks to managedobjectcontexts’ initializers to avoid races. changed job fetch to sort ascending. changed job fetch to use nil cache as workaround to crash introduced by fetch’s managedobjectcontext being a child with NSMainQueueConcurrencyType
Removed context save from Build model. Uncommented the rest of the import.
corrected the models to access the managedobjectcontexts on the appropriate threads. fixes deadlocks.
wrapped some creates happening in RequestHandler in performBlock to ensure they were happening on the correct thread.
gave import jobs and import builds their own contexts to save on.