← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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

** Affects: neutron
     Importance: Undecided
     Assignee: Evgeny Fedoruk (evgenyf)
         Status: New


** Tags: common utils

** Changed in: neutron
     Assignee: (unassigned) => Evgeny Fedoruk (evgenyf)

-- 
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):
  New

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

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


Follow ups

References