Skip to content

Commit

Permalink
Merge pull request #33307 from dimagi/smh/sscs-subtitles-min-cc-build
Browse files Browse the repository at this point in the history
SSCS: Add check for minimum version requirement on build
  • Loading branch information
stephherbers authored Aug 1, 2023
2 parents 798d698 + c944ddf commit 705f47f
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 91 deletions.
7 changes: 7 additions & 0 deletions corehq/apps/app_manager/feature_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,10 @@ def supports_grouped_case_tiles(self):
toggles.CASE_LIST_TILE.enabled(self.domain)
and self._require_minimum_version('2.54')
)

@property
def supports_split_screen_case_search(self):
return (
toggles.SPLIT_SCREEN_CASE_SEARCH.enabled(self.domain)
and self._require_minimum_version('2.54')
)
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def build_remote_request_queries(self):
data=self._remote_request_query_datums,
prompts=self.build_query_prompts(),
default_search=self.module.search_config.default_search,
results_title=self.build_results_title(),
results_title=self.build_results_title() if self.app.supports_split_screen_case_search else None,
)
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
<instance id="search_selected_cases" src="jr://instance/selected-entities/search_selected_cases"/>
<session>
<query default_search="false" storage-instance="results" template="case" url="https://www.example.com/a/multiple-referrals/phone/search/{app_id}/">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down
5 changes: 0 additions & 5 deletions corehq/apps/app_manager/tests/data/suite/remote_request.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
default_search="false"
storage-instance="results"
template="case">
<results-title>
<text>
<locale id="case_search.{module_id}"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.{module_id}.inputs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
default_search="false"
storage-instance="results"
template="case">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
default_search="false"
storage-instance="results"
template="case">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
default_search="false"
storage-instance="results"
template="case">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
<instance id="results" src="jr://instance/remote/results"/>
<session>
<query default_search="false" storage-instance="results" template="case" url="https://www.example.com/a/test_domain/phone/search/{app_id}/">
<results-title>
<text>
<locale id="case_search.m1"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m1.inputs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
<session>
<query default_search="false" storage-instance="results:inline" template="case"
url="http://localhost:8000/a/test_domain/phone/search/456/">
<results-title>
<text>
<locale id="case_search.m1"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m1.inputs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
<instance id="results" src="jr://instance/remote/results"/>
<session>
<query url="http://localhost:8000/a/test_domain/phone/search/123/" storage-instance="results" template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
<instance id="results" src="jr://instance/remote/results"/>
<session>
<query default_search="false" storage-instance="results" template="case" url="https://www.example.com/a/test_domain/phone/search/456/">
<results-title>
<text>
<locale id="case_search.m1"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m1.inputs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
<instance id="results" src="jr://instance/remote/results"/>
<session>
<query default_search="false" storage-instance="results" template="case" url="https://www.example.com/a/test_domain/phone/search/456/">
<results-title>
<text>
<locale id="case_search.m1"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m1.inputs"/>
Expand Down
5 changes: 0 additions & 5 deletions corehq/apps/app_manager/tests/test_advanced_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,6 @@ def test_advanced_module_remote_request(self, *args):
<session>
<query url="http://localhost:8000/a/domain/phone/search/123/"
storage-instance="results" template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down
25 changes: 0 additions & 25 deletions corehq/apps/app_manager/tests/test_suite_inline_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ def test_inline_search(self):
<session>
<query url="http://localhost:8000/a/test_domain/phone/search/123/"
storage-instance="{RESULTS_INSTANCE_INLINE}" template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down Expand Up @@ -152,11 +147,6 @@ def test_inline_search_case_list_item(self):
<session>
<query url="http://localhost:8000/a/test_domain/phone/search/123/"
storage-instance="{RESULTS_INSTANCE_INLINE}" template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down Expand Up @@ -212,11 +202,6 @@ def test_inline_search_multi_select(self):
<query url="http://localhost:8000/a/test_domain/phone/search/123/"
storage-instance="{RESULTS_INSTANCE_INLINE}"
template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down Expand Up @@ -411,11 +396,6 @@ def test_inline_search_with_parent_select(self):
value="./@case_id" detail-select="m2_case_short"/>
<query url="http://localhost:8000/a/test_domain/phone/search/123/"
storage-instance="{RESULTS_INSTANCE_INLINE}" template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down Expand Up @@ -585,11 +565,6 @@ def test_child_module_with_inline_search_entry(self):
value="./@case_id" detail-select="m0_case_short"/>
<query url="http://localhost:8000/a/test_domain/phone/search/123/"
storage-instance="{RESULTS_INSTANCE_INLINE}" template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m1"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m1.inputs"/>
Expand Down
10 changes: 0 additions & 10 deletions corehq/apps/app_manager/tests/test_suite_registry_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ def test_search_data_registry(self, *args):
<session>
<query url="http://localhost:8000/a/test_domain/phone/search/123/" storage-instance="results"
template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down Expand Up @@ -557,11 +552,6 @@ def test_inline_search_with_data_registry(self):
<session>
<query url="http://localhost:8000/a/test_domain/phone/search/123/" storage-instance="{RESULTS_INSTANCE_INLINE}"
template="case" default_search="false">
<results-title>
<text>
<locale id="case_search.m0"/>
</text>
</results-title>
<title>
<text>
<locale id="case_search.m0.inputs"/>
Expand Down

0 comments on commit 705f47f

Please sign in to comment.