← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1386047] Re: plugin(core, service) is unnecessarily cached and they are implemented variously by many times

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1386047

Title:
  plugin(core, service) is unnecessarily cached and they are implemented
  variously by many times

Status in neutron:
  Expired

Bug description:
  There are patterns like

      @property
      def core_plugin(self):
          try:
              return self._core_plugin
          except AttributeError:
              self._core_plugin = manager.NeutronManager.get_plugin()
              return self._core_plugin

  There are issues.
  - NeutronManager.get_plugin already cached it. No need to cache again.
  - each class implements its own way(with or without cache), various name.

  The caching should be removed and their implementation should be
  unified

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1386047/+subscriptions


References