Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-3637: Commit Status at Core-Admin UI is always false

Stefan Matheis7eb214649463
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 62159de95a1..22b931cec4b 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -60,6 +60,8 @@ Bug Fixes
* SOLR-3560: Handle different types of Exception Messages for Logging UI
(steffkes)
+* SOLR-3637: Commit Status at Core-Admin UI is always false (steffkes)
+
Other Changes
----------------------
diff --git a/solr/webapp/web/js/scripts/cores.js b/solr/webapp/web/js/scripts/cores.js
index 150197e340b..8c358c0255f 100644
--- a/solr/webapp/web/js/scripts/cores.js
+++ b/solr/webapp/web/js/scripts/cores.js
@@ -201,13 +201,13 @@ sammy.get
.html( core_data.index.maxDoc );
$( '.optimized dd', index_data_element )
- .addClass( core_data.index.optimized ? 'ico-1' : 'ico-0' );
+ .addClass( !core_data.index.hasDeletions ? 'ico-1' : 'ico-0' );
$( '#actions #optimize', cores_element )
.show();
$( '.optimized dd span', index_data_element )
- .html( core_data.index.optimized ? 'yes' : 'no' );
+ .html( !core_data.index.hasDeletions ? 'yes' : 'no' );
$( '.current dd', index_data_element )
.addClass( core_data.index.current ? 'ico-1' : 'ico-0' );
@@ -215,12 +215,6 @@ sammy.get
$( '.current dd span', index_data_element )
.html( core_data.index.current ? 'yes' : 'no' );
- $( '.hasDeletions dd', index_data_element )
- .addClass( core_data.index.hasDeletions ? 'ico-1' : 'ico-0' );
-
- $( '.hasDeletions dd span', index_data_element )
- .html( core_data.index.hasDeletions ? 'yes' : 'no' );
-
$( '.directory dd', index_data_element )
.html
(
@@ -326,12 +320,6 @@ sammy.get
var form_callback = {
- create : function( form, response )
- {
- var url = path_parts[1] + response.core;
- context.redirect( url );
- },
-
rename : function( form, response )
{
var url = path_parts[1] + $( 'input[name="other"]', form ).val();
diff --git a/solr/webapp/web/tpl/cores.html b/solr/webapp/web/tpl/cores.html
index fba06b60d0e..8260593cd44 100644
--- a/solr/webapp/web/tpl/cores.html
+++ b/solr/webapp/web/tpl/cores.html
@@ -194,11 +194,6 @@ limitations under the License.
<dd class="ico"><span></span></dd>
</dl></li>
- <li class="hasDeletions"><dl class="clearfix">
- <dt><span>hasDeletions:</span></dt>
- <dd class="ico"><span></span></dd>
- </dl></li>
-
<li class="directory"><dl class="clearfix">
<dt><span>directory:</span></dt>
<dd></dd>