mirror of https://github.com/apache/lucene.git
SOLR-9003: DIH Debug now works in new Admin UI
This commit is contained in:
parent
3816a0eb2b
commit
dd03d39dd6
|
@ -190,6 +190,8 @@ Bug Fixes
|
|||
|
||||
* SOLR-8379: UI Cloud->Tree view now shows .txt files correctly (Alexandre Rafalovitch via janhoy)
|
||||
|
||||
* SOLR-9003: New Admin UI's Dataimport screen now correctly displays DIH Debug output (Alexandre Rafalovitch)
|
||||
|
||||
* SOLR-9308: Fix distributed RTG to forward request params, fixes fq and non-default fl params (hossman)
|
||||
|
||||
* SOLR-9179: NPE in IndexSchema using IBM JDK (noble, Colvin Cowie)
|
||||
|
|
|
@ -61,6 +61,10 @@ solrAdminApp.controller('DataImportController',
|
|||
|
||||
$scope.toggleDebug = function () {
|
||||
$scope.isDebugMode = !$scope.isDebugMode;
|
||||
if ($scope.isDebugMode) {
|
||||
// also enable Debug checkbox
|
||||
$scope.form.showDebug = true;
|
||||
}
|
||||
$scope.showConfiguration = true;
|
||||
}
|
||||
|
||||
|
@ -100,8 +104,14 @@ solrAdminApp.controller('DataImportController',
|
|||
$scope.submit = function () {
|
||||
var params = {};
|
||||
for (var key in $scope.form) {
|
||||
if (key == "showDebug") {
|
||||
if ($scope.form.showDebug) {
|
||||
params["debug"] = true;
|
||||
}
|
||||
} else {
|
||||
params[key] = $scope.form[key];
|
||||
}
|
||||
}
|
||||
if (params.custom.length) {
|
||||
var customParams = $scope.form.custom.split("&");
|
||||
for (var i in customParams) {
|
||||
|
@ -111,10 +121,10 @@ solrAdminApp.controller('DataImportController',
|
|||
}
|
||||
delete params.custom;
|
||||
|
||||
if (params.isDebugMode) {
|
||||
params.dataConfig = $scope.rawConfig;
|
||||
if ($scope.isDebugMode) {
|
||||
params.dataConfig = $scope.config;
|
||||
}
|
||||
delete params.showDebug;
|
||||
|
||||
params.core = $routeParams.core;
|
||||
|
||||
DataImport.post(params, function (data) {
|
||||
|
|
|
@ -94,7 +94,7 @@ limitations under the License.
|
|||
|
||||
<div class="editable" ng-show="isDebugMode">
|
||||
|
||||
<textarea>{{config}}</textarea>
|
||||
<textarea ng-model="config"></textarea>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -115,11 +115,11 @@ limitations under the License.
|
|||
</div>
|
||||
|
||||
<div class="content" ng-show="showRawDebug">
|
||||
<span ng-show="true">
|
||||
<span ng-hide="rawResponse">
|
||||
<em>No Request executed</em>
|
||||
</span>
|
||||
<span ng-show="false">
|
||||
<pre class="syntax language-json"><code ng-bind-html="rawResponse | highlight:'xml' | unsafe"></code></pre>
|
||||
<span ng-show="rawResponse">
|
||||
<pre class="syntax language-json"><code ng-bind-html="rawResponse | highlight:'json' | unsafe"></code></pre>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue