← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1588326] [NEW] Eliminate all use of id

 

Public bug reported:

id is a Python built-in function. Too often we encounter bugs due to id
being used as a variable, for example https://launchpad.net/bugs/1588281

We should eliminate all use of id in the code base.
The hardest step will be to change neutron.db.model_base.HasId

Once all uses have been eliminated, introduce a hacking check to prevent
new occurrences.

** Affects: neutron
     Importance: Wishlist
         Status: New


** Tags: db

** Changed in: neutron
   Importance: Undecided => Wishlist

** Tags added: db

** Description changed:

  id is a Python built-in function. Too often we encounter bugs due to id
  being used as a variable, for example https://launchpad.net/bugs/1588281
  
  We should eliminate all use of id in the code base.
  The hardest step will be to change neutron.db.model_base.HasId
+ 
+ Once all uses have been eliminated, introduce a hacking check to prevent
+ new occurrences.

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

Title:
  Eliminate all use of id

Status in neutron:
  New

Bug description:
  id is a Python built-in function. Too often we encounter bugs due to
  id being used as a variable, for example
  https://launchpad.net/bugs/1588281

  We should eliminate all use of id in the code base.
  The hardest step will be to change neutron.db.model_base.HasId

  Once all uses have been eliminated, introduce a hacking check to
  prevent new occurrences.

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


Follow ups