Skip to content
Permalink
Browse files

Remove Advanced Search functionality. Fix #448, #108

  • Loading branch information...
atodorov committed Aug 27, 2018
1 parent 544b7cd commit 0c1c94a104849e7627714f42529a3fd94d66c3a1

This file was deleted.

Oops, something went wrong.
@@ -11,7 +11,6 @@ Submodules

.. toctree::

tcms.search.advanced_search
tcms.search.forms
tcms.search.order
tcms.search.query
@@ -145,10 +145,6 @@ msgstr ""
msgid "Search Test Cases"
msgstr ""

#: tcms/settings/common.py:92
msgid "Advanced Search"
msgstr ""

#: tcms/settings/common.py:94
msgid "REPORTING"
msgstr "BERICHTERSTATTUNG"
@@ -153,10 +153,6 @@ msgstr ""
msgid "Search Test Cases"
msgstr ""

#: tcms/settings/common.py:92
msgid "Advanced Search"
msgstr ""

#: tcms/settings/common.py:94
msgid "REPORTING"
msgstr ""
@@ -149,10 +149,6 @@ msgstr "Iskanje testiranj"
msgid "Search Test Cases"
msgstr "Iskanje testnih scenarijev"

#: tcms/settings/common.py:92
msgid "Advanced Search"
msgstr "Napredno iskanje"

#: tcms/settings/common.py:94
msgid "REPORTING"
msgstr "POROČANJE"
@@ -145,10 +145,6 @@ msgstr ""
msgid "Search Test Cases"
msgstr ""

#: tcms/settings/common.py:92
msgid "Advanced Search"
msgstr ""

#: tcms/settings/common.py:94
msgid "REPORTING"
msgstr ""
@@ -145,10 +145,6 @@ msgstr ""
msgid "Search Test Cases"
msgstr ""

#: tcms/settings/common.py:92
msgid "Advanced Search"
msgstr ""

#: tcms/settings/common.py:94
msgid "REPORTING"
msgstr ""

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -88,8 +88,6 @@
(_('Search Test Plans'), reverse_lazy('plans-all')),
(_('Search Test Runs'), reverse_lazy('testruns-all')),
(_('Search Test Cases'), reverse_lazy('testcases-search')),
('-', '-'),
(_('Advanced Search'), '/advance-search/'),
]),
(_('REPORTING'), [
(_('Overall report'), reverse_lazy('report-overall')),
Binary file not shown.
@@ -1,6 +1,5 @@
Nitrate.TestCases = {};
Nitrate.TestCases.List = {};
Nitrate.TestCases.AdvanceList = {};
Nitrate.TestCases.Details = {};
Nitrate.TestCases.Create = {};
Nitrate.TestCases.Edit = {};
@@ -28,47 +27,6 @@ Nitrate.TestCases.Clone = {};
window.Nitrate.TestCases = TestCases;
}());

Nitrate.TestCases.AdvanceList.on_load = function() {
bind_category_selector_to_product(true, true, jQ('#id_product')[0], jQ('#id_category')[0]);
bind_component_selector_to_product(true, true, jQ('#id_product')[0], jQ('#id_component')[0]);

jQ('#id_blind_all_link').bind('click', function(e) {
if (!jQ('div[id^="id_loading_"]').length) {
jQ(this).removeClass('locked');
}
if (jQ(this).is('.locked')) {
//To disable the 'expand all' until all case runs are expanded.
return false;
} else {
jQ(this).addClass('locked');
var element = jQ(this).children()[0];
if (jQ(element).is('.collapse-all')) {
this.title = 'Collapse all cases';
blinddownAllCases(element);
} else {
this.title = 'Expand all cases';
blindupAllCases(element);
}
}
});

var toggle_case = function(e) {
var c = jQ(this).parent()[0]; // Container
var c_container = jQ(c).next()[0]; // Content Containers
var case_id = jQ(c).find('input[name="case"]')[0].value;

toggleTestCasePane({ case_id: case_id, casePaneContainer: jQ(c_container) });
toggleExpandArrow({ caseRowContainer: jQ(c), expandPaneContainer: jQ(c_container) });
};

jQ('.expandable').bind('click', toggle_case);

if (window.location.hash === '#expandall') {
blinddownAllCases();
}

};

Nitrate.TestCases.List.on_load = function() {
bind_category_selector_to_product(true, true, jQ('#id_product')[0], jQ('#id_category')[0]);
bind_component_selector_to_product(true, true, jQ('#id_product')[0], jQ('#id_component')[0]);
@@ -1,7 +1,6 @@
Nitrate.TestPlans = {};
Nitrate.TestPlans.Create = {};
Nitrate.TestPlans.List = {};
Nitrate.TestPlans.Advance_Search_List = {};
Nitrate.TestPlans.Details = {};
Nitrate.TestPlans.Edit = {};
Nitrate.TestPlans.SearchCase = {};
@@ -413,37 +412,6 @@ Nitrate.TestPlans.Edit.on_load = function() {
bind_version_selector_to_product(false);
}

Nitrate.TestPlans.Advance_Search_List.on_load = function() {
if (jQ('#id_product').length) {
bind_version_selector_to_product(true);
};

if (jQ('#column_add').length) {
jQ('#column_add').bind('change', function(t) {
switch(this.value) {
case 'col_product':
jQ('#col_product_head').show();
jQ('.col_product_content').show();
jQ('#col_product_option').hide();
break;
case('col_product_version'):
jQ('#col_product_version_head').show();
jQ('.col_product_version_content').show();
jQ('#col_product_veresion_option').hide();
break;
}
});
};

jQ('input[name="plan_id"]').bind('click', function(t) {
if (this.checked) {
jQ(this).parent().parent().addClass('selection_row');
} else {
jQ(this).parent().parent().removeClass('selection_row');
};
});
};

Nitrate.TestPlans.List.on_load = function() {
if (jQ('#id_product').length) {
bind_version_selector_to_product(true);
@@ -821,7 +789,7 @@ Nitrate.TestPlans.SearchCase.on_load = function() {
}
// new feature for searching by case id.
var quick_search = jQ("#tp_quick_search_cases_form");
var normal_search = jQ("#tp_advanced_search_case_form");
var normal_search = jQ("#tp_normal_search_case_form");
var quick_tab = jQ("#quick_tab");
var normal_tab = jQ("#normal_tab");
var search_mode = jQ("#search_mode");
@@ -844,7 +812,7 @@ Nitrate.TestPlans.SearchCase.on_load = function() {
"hide_tab": normal_tab
});
});
jQ("#advanced_search_cases").bind("click", function() {
jQ("#normal_search_cases").bind("click", function() {
// clear errors
errors.empty();
search_mode.val("normal");
Oops, something went wrong.

0 comments on commit 0c1c94a

Please sign in to comment.
You can’t perform that action at this time.