You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/05/31 17:27:25 UTC

[GitHub] [trafficcontrol] ocket8888 commented on a change in pull request #3633: Removed restangular from TenantService

ocket8888 commented on a change in pull request #3633: Removed restangular from TenantService
URL: https://github.com/apache/trafficcontrol/pull/3633#discussion_r289482132
 
 

 ##########
 File path: traffic_portal/app/src/common/api/TenantService.js
 ##########
 @@ -17,53 +17,67 @@
  * under the License.
  */
 
-var TenantService = function(Restangular, messageModel) {
+var TenantService = function($http, ENV, messageModel) {
 
     this.getTenants = function(queryParams) {
-        return Restangular.all('tenants').getList(queryParams);
+        return $http.get(ENV.api['root'] + 'tenants', {params: queryParams}).then(
+            function (result) {
+                return result.data.response;
+            },
+            function (err) {
+                console.error(err);
 
 Review comment:
   uh oh, looks like my `sed` didn't take. I'll probably look at that over the weekend. It's a lot to do when I'm supposed to be working on other things :P

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services