← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1274107] Re: Resources convert from plurals to single is manual

 

Extensions are being redesigned in Juno, so pluralization will be
handled differently.

** Changed in: neutron
       Status: New => Won't Fix

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

Title:
  Resources convert from plurals to single is manual

Status in OpenStack Neutron (virtual network service):
  Won't Fix

Bug description:
  In Neutron extensions resources building process, plural and single resource names are converted manually by adding or removing an 's' ending. For special cases, when 's' ending is wrong, for instance policy/policies, the conversion is done by hard codding.
  Each extension does it, and does it bit differently.
  This plural<->single conversion is done in several places.

  The proposal is to add two functions (plural2single and single2plural) to the neutron.common.utils code,
  so these functions will be used for conversions anywhere is needed.

  Those new functions should consider some common (or all, which is
  maybe unnecessary) special English language exceptions for single-
  plural converting - http://en.wikipedia.org/wiki/English_plurals

  
  As a result of this bug approval, all occurrences of plural<->single conversions should be replaced by using common.util functions

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


References