From 6ade07b42e9ef39dafda4504bc61eb4661b10cde Mon Sep 17 00:00:00 2001 From: Panagiotis Karalis Date: Thu, 11 Apr 2019 17:33:09 +0300 Subject: Update the behavior of roles for OVP/ONAP portals The behavior of portals' roles are updated according to CVC decisions. The behavior will be: * no roles - the person can upload results and share results to other users, but can not submit an application/results for review * "user" role - the person can submit the application/results fore review. To have this role, the person MUST have signed the participation agreement through docusign. * "reviewer" role - the person can see applications / results submitted to review, and can vote (+1 / -1) on those results as part of the review process. Votes are recorded. * "admin" role - the person can approve applications for public listing, etc. Final gatekeeper for the website, etc. Responsible to ensure processes are followed, etc. Change-Id: Ieca55725378c85f544eeea4390046bae456ee1a3 Signed-off-by: Panagiotis Karalis --- .../static/onap-ui/components/results/results.html | 6 +-- .../components/results/resultsController.js | 53 ++++++++++++++++--- 3rd_party/static/onap-ui/shared/header/header.html | 3 +- .../testapi-ui/components/results/results.html | 6 +-- .../components/results/resultsController.js | 61 +++++++++++++++++++--- .../static/testapi-ui/shared/header/header.html | 3 +- opnfv_testapi/ui/auth/constants.py | 2 +- 7 files changed, 107 insertions(+), 27 deletions(-) diff --git a/3rd_party/static/onap-ui/components/results/results.html b/3rd_party/static/onap-ui/components/results/results.html index ab2e999..2206029 100644 --- a/3rd_party/static/onap-ui/components/results/results.html +++ b/3rd_party/static/onap-ui/components/results/results.html @@ -1,8 +1,7 @@

{{ctrl.pageHeader}}

{{ctrl.pageParagraph}}

-
+

Upload Results @@ -82,7 +81,8 @@ withdraw submit - -
  • +
  • My Results
  • diff --git a/3rd_party/static/testapi-ui/components/results/results.html b/3rd_party/static/testapi-ui/components/results/results.html index 30bcd94..b55be34 100644 --- a/3rd_party/static/testapi-ui/components/results/results.html +++ b/3rd_party/static/testapi-ui/components/results/results.html @@ -1,8 +1,7 @@

    {{ctrl.pageHeader}}

    {{ctrl.pageParagraph}}

    - +

    Upload Results @@ -82,7 +81,8 @@ withdraw submit

  • - -
  • +
  • My Results
  • diff --git a/opnfv_testapi/ui/auth/constants.py b/opnfv_testapi/ui/auth/constants.py index 44ccb46..3cdfe09 100644 --- a/opnfv_testapi/ui/auth/constants.py +++ b/opnfv_testapi/ui/auth/constants.py @@ -1,6 +1,6 @@ OPENID = 'openid' ROLE = 'role' -DEFAULT_ROLE = 'user' +DEFAULT_ROLE = '' # OpenID parameters OPENID_MODE = 'openid.mode' -- cgit 1.2.3-korg