changed the implementation of producers.byId and discounts.byId so that the whole object is observable