GitHub user nir-sopher opened a pull request: https://github.com/apache/incubator-trafficcontrol/pull/644
Tenant utils Adding the "TenantUtils" class allowing to check if resource is accessible (tenancy wise). The class provides further tenants related functionality like get the tenants in hierarchic order, check if a tenant is a root tenant, etc. The tenants API was adjusted to use this class as well as permit "tenant resource" operations based on the current user tenancy You can merge this pull request into a Git repository by running: $ git pull https://github.com/nir-sopher/incubator-trafficcontrol tenant-utils Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-trafficcontrol/pull/644.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #644 ---- commit 5e0698e6e7d82d886b2838ac495d8984d5148c7f Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-01T13:00:28Z Order tenants list in reply in heirarchic order commit f75176d32cdc9122def8634da33b9dabb77c1b3e Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-01T13:02:06Z Org-Tenancy Fixing error string commit 28323f1b75f730fceb61514f16315e006060903b Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-01T13:23:16Z Tenancy utils - is_root_tenant commit 806794b36699080b9ad512797908e709cef37888 Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-01T13:24:00Z Org tenancy - removing redundant DB call commit 18b770fe5b05f32456958c554ea69d919afbfecf Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-01T13:37:09Z Tenant-utils - current_user_tenant commit ba3611e72926a804c2626d7858d09cffb37fa38b Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-01T13:46:30Z TenantUtils - tenant resource tenancy test commit b7fa062cc52d6991ec9f644f08c106150944ddce Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-02T12:16:11Z Tenant list - order by commit cbc8e2fe7090316493d06896522293590f2895fd Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-02T13:19:58Z tenancy utils - get_tenants_list and get_tenant commit 2aa71c9c0d43582744e94ca7f2e3c87b1479029f Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-02T13:45:54Z tenantutils - becoming stateless commit 5879fb651e944e401f4b5e0c0798c06b9ef43d00 Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-04T17:05:38Z tenant utils - depth, height and relations. including temp addition to the API for simple testing commit 3809fe1fccec4f9f07c82020fe2d4f59268c3a81 Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-04T17:14:25Z tenancy checks - return 403 commit 72b4f06bf3d1c24666d593b34a3618f39322bde8 Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-04T21:14:10Z Tenant utils - testing capabilities commit b730778b65a9fe5ea40b4000de1d240743c8dd57 Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-05T00:24:05Z Tenant utils - documentations and changes commit be33223a72ab60287844dee6f62e12309bf25ff3 Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-05T19:12:59Z tenant utils - perltidy commit 43a670528a271844df7bae7c75c849509470f862 Author: nir-sopher <nirsop...@gmail.com> Date: 2017-06-05T19:19:15Z Tenant utils - rebase fixes ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---