From a0e044af548f28966199dc6f4e4bb8003788ad8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hank=C3=B3=20Gergely?= Date: Fri, 4 Feb 2022 17:48:10 +0100 Subject: [PATCH] TEZ-4379 Tez Hive Queries query page rows does not go over --- tez-ui/src/main/webapp/app/routes/server-side-ops.js | 2 +- .../src/main/webapp/tests/unit/routes/server-side-ops-test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tez-ui/src/main/webapp/app/routes/server-side-ops.js b/tez-ui/src/main/webapp/app/routes/server-side-ops.js index 85b4d033c7..161b7b7498 100644 --- a/tez-ui/src/main/webapp/app/routes/server-side-ops.js +++ b/tez-ui/src/main/webapp/app/routes/server-side-ops.js @@ -74,7 +74,7 @@ export default AbstractRoute.extend({ return this.load(null, query).then(function (data) { if(that.get("controller.loadingMore")) { that.set("controller.loadingMore", false); - that.get("loadedValue").pushObjects(data); + that.get("loadedValue").pushObjects(data.content); return data; } }); diff --git a/tez-ui/src/main/webapp/tests/unit/routes/server-side-ops-test.js b/tez-ui/src/main/webapp/tests/unit/routes/server-side-ops-test.js index 59e04f75ba..055da433eb 100644 --- a/tez-ui/src/main/webapp/tests/unit/routes/server-side-ops-test.js +++ b/tez-ui/src/main/webapp/tests/unit/routes/server-side-ops-test.js @@ -136,7 +136,7 @@ test('loadNewPage test', function(assert) { let currentQuery = { val: {} }, - data = [], + data = {content: []}, fromId = "id1", route = this.subject({ controller: Ember.Object.create(), @@ -144,7 +144,7 @@ test('loadNewPage test', function(assert) { fromId: fromId, loadedValue: { pushObjects: function (objs) { - assert.equal(data, objs); + assert.equal(data.content, objs); } }, load: function (value, query) {