Uh oh!
There was an error while loading. Please reload this page.
Handle listProjects API to list projects with user as members when listAll=true - #4316
Conversation
Pearl1594
commented
Sep 10, 2020
@blueorangutan package |
blueorangutan
commented
Sep 10, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
| private boolean checkOperationPermitted(Account caller, ControlledEntity entity) { | ||
| User user = CallContext.current().getCallingUser(); | ||
| Project project = projectDao.findByProjectAccountId(entity.getAccountId()); | ||
| if (project == null) { |
There was a problem hiding this comment.
Are there usage of this method where throwing an exception would break flow? (or, are we expecting all usages of this method to be project related?)
There was a problem hiding this comment.
this method is called only if the entity is owned by a project - which would mean that ideally project should be present if the entity's account is of Project type
| if (owner.getType() != Account.ACCOUNT_TYPE_PROJECT && networkOwner.getType() == Account.ACCOUNT_TYPE_PROJECT) { | ||
| User user = CallContext.current().getCallingUser(); | ||
| Project project = projectDao.findByProjectAccountId(network.getAccountId()); | ||
| if (project == null) { |
There was a problem hiding this comment.
here too, the check is explicitly for networks owned by a project
blueorangutan
commented
Sep 10, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-1950 |
yadvr
commented
Sep 10, 2020
@blueorangutan test |
blueorangutan
commented
Sep 10, 2020
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Sep 11, 2020
Trillian test result (tid-2717)
|
…account in response
Pearl1594
commented
Sep 11, 2020
@blueorangutan package |
blueorangutan
commented
Sep 11, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 11, 2020
Packaging result: ✔centos7 ✔centos8 ✖debian. JID-1953 |
Pearl1594
commented
Sep 11, 2020
@blueorangutan package |
blueorangutan
commented
Sep 11, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 11, 2020
Packaging result: ✖centos7 ✖centos8 ✖debian. JID-1954 |
Pearl1594
commented
Sep 11, 2020
@blueorangutan package |
blueorangutan
commented
Sep 11, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 11, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-1955 |
Pearl1594
commented
Sep 11, 2020
@blueorangutan test |
blueorangutan
commented
Sep 11, 2020
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Sep 12, 2020
Trillian test result (tid-2718)
|
yadvr
commented
Sep 13, 2020
@blueorangutan package |
blueorangutan
commented
Sep 13, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 13, 2020
Packaging result: ✖centos7 ✖centos8 ✖debian. JID-1985 |
yadvr
commented
Sep 15, 2020
@blueorangutan package |
blueorangutan
commented
Sep 15, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 15, 2020
Packaging result: ✖centos7 ✖centos8 ✖debian. JID-2009 |
yadvr
commented
Sep 15, 2020
@blueorangutan package |
blueorangutan
commented
Sep 15, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 15, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2013 |
yadvr
commented
Sep 16, 2020
@blueorangutan test |
blueorangutan
commented
Sep 16, 2020
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Sep 16, 2020
Trillian test result (tid-2754)
|
yadvr
commented
Sep 17, 2020
Lgtm, test failures unrelated |
Description
Types of changes
How Has This Been Tested?
This has been verified using the cmk and UI
There exists 7 projects:
Before fix:
With fix: