This is an automated email from the ASF dual-hosted git repository.

jihao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 5344efb  [TE] fix sql metric import page endpoint (#4091)
5344efb is described below

commit 5344efb1f854bb81578eabc141fc107a7aff4319
Author: Dian Tang <[email protected]>
AuthorDate: Tue Apr 9 11:49:21 2019 -0700

    [TE] fix sql metric import page endpoint (#4091)
---
 .../app/pods/self-serve/import-sql-metric/controller.js               | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/thirdeye/thirdeye-frontend/app/pods/self-serve/import-sql-metric/controller.js
 
b/thirdeye/thirdeye-frontend/app/pods/self-serve/import-sql-metric/controller.js
index 9922aeb..e5ebb1c 100644
--- 
a/thirdeye/thirdeye-frontend/app/pods/self-serve/import-sql-metric/controller.js
+++ 
b/thirdeye/thirdeye-frontend/app/pods/self-serve/import-sql-metric/controller.js
@@ -37,7 +37,7 @@ export default Controller.extend({
     this.metrics = [];
     this.databaseOptions = [];
 
-    const databaseUrl = 'http://localhost:1426/sql-data-source/databases';
+    const databaseUrl = '/sql-data-source/databases';
     fetch(databaseUrl).then((res) => {
       var result = res.json();
       result.then((ret) => {
@@ -124,7 +124,7 @@ export default Controller.extend({
         body: JSON.stringify(importObj),
         headers: { 'content-type': 'Application/Json' }
       };
-      const url = 'http://localhost:1426/sql-data-source/onboard';
+      const url = '/sql-data-source/onboard';
       fetch(url, postProps).then((res) => {
         if (res.status == 200) {
           this.set('response', 'Import success! However, it does not validate 
the database for your entries.');


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to