← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1491180] [NEW] Adding ifAllowed method to policy

 

Public bug reported:

Policy current returns a response object containing the allowed field,
which either is true or false. To simplify this a bit, we need a wrapper
method ifAllowed that would return a promise that either resolves or
rejects. If it resolves, the success handler is called, and if it
rejects, the error handler is called. This is more useful in practice
and negates the need to check the response object. Furthermore, this is
useful for creating a hz-if-policies directive in the future.

** Affects: horizon
     Importance: Medium
     Assignee: Thai Tran (tqtran)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1491180

Title:
  Adding ifAllowed method to policy

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  Policy current returns a response object containing the allowed field,
  which either is true or false. To simplify this a bit, we need a
  wrapper method ifAllowed that would return a promise that either
  resolves or rejects. If it resolves, the success handler is called,
  and if it rejects, the error handler is called. This is more useful in
  practice and negates the need to check the response object.
  Furthermore, this is useful for creating a hz-if-policies directive in
  the future.

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


Follow ups