-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dependabot/pip/requirements/reportlab-4.3.0' of https:/…
…/github.com/dimagi/commcare-hq into dependabot/pip/requirements/reportlab-4.3.0
- Loading branch information
Showing
90 changed files
with
1,336 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
198 changes: 104 additions & 94 deletions
198
corehq/apps/app_manager/static/app_manager/js/forms/case_config_ui.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
corehq/apps/cleanup/migrations/0018_delete_ewsghana_models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cleanup', '0017_delete_oauth_integrations_models'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunSQL(""" | ||
DROP TABLE IF EXISTS "ewsghana_facilityincharge" CASCADE; | ||
DROP TABLE IF EXISTS "ewsghana_ewsextension" CASCADE; | ||
DROP TABLE IF EXISTS "ewsghana_sqlnotification" CASCADE; | ||
"""), | ||
] | ||
|
||
|
||
""" | ||
Dropped entities can be checked with the following query: | ||
select pg_describe_object(classid, objid, objsubid) | ||
from pg_depend | ||
where refobjid in ( | ||
'ewsghana_facilityincharge'::regclass, | ||
'ewsghana_ewsextension'::regclass, | ||
'ewsghana_sqlnotification'::regclass | ||
); | ||
Example output (from production): | ||
type ewsghana_ewsextension | ||
sequence ewsghana_ewsextension_id_seq | ||
type ewsghana_facilityincharge | ||
sequence ewsghana_facilityincharge_id_seq | ||
type ewsghana_sqlnotification | ||
sequence ewsghana_sqlnotification_id_seq | ||
default value for column id of table ewsghana_ewsextension | ||
default value for column id of table ewsghana_facilityincharge | ||
default value for column id of table ewsghana_sqlnotification | ||
constraint ewsghana_ewsextension_pkey on table ewsghana_ewsextension | ||
constraint ewsghana_facilityincharge_pkey on table ewsghana_facilityincharge | ||
constraint ewsghana_sqlnotification_pkey on table ewsghana_sqlnotification | ||
index ewsghana_ewsextension_e274a5da | ||
index ewsghana_ewsextension_e8701ad4 | ||
index ewsghana_ewsextension_location_id_636bec0358987f83_like | ||
index ewsghana_ewsextension_user_id_6cff5f4a22d0e14b_like | ||
index ewsghana_facilityincharge_location_id | ||
index ewsghana_facilityincharge_user_id | ||
index ewsghana_facilityincharge_user_id_like | ||
constraint ewsgha_location_id_4879eb14d7a4a143_fk_locations_sqllocation_id on table ewsghana_facilityincharge | ||
(20 rows) | ||
""" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from django.utils.translation import gettext_lazy | ||
from django_tables2 import columns | ||
|
||
from corehq.apps.hqwebapp.tables.elasticsearch.records import CaseSearchElasticRecord | ||
from corehq.apps.hqwebapp.tables.elasticsearch.tables import ElasticTable | ||
from corehq.apps.hqwebapp.tables.htmx import BaseHtmxTable | ||
|
||
|
||
class CleanCaseTable(BaseHtmxTable, ElasticTable): | ||
record_class = CaseSearchElasticRecord | ||
|
||
class Meta(BaseHtmxTable.Meta): | ||
pass | ||
|
||
name = columns.Column( | ||
verbose_name=gettext_lazy("Case Name"), | ||
) | ||
case_type = columns.Column( | ||
accessor="@case_type", | ||
verbose_name=gettext_lazy("Case Type"), | ||
) | ||
status = columns.Column( | ||
accessor="@status", | ||
verbose_name=gettext_lazy("Status"), | ||
) | ||
opened_on = columns.Column( | ||
verbose_name=gettext_lazy("Opened On"), | ||
) |
27 changes: 27 additions & 0 deletions
27
corehq/apps/data_cleaning/templates/data_cleaning/cases.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends "hqwebapp/bootstrap5/base_navigation.html" %} | ||
{% load hq_shared_tags %} | ||
{% load django_tables2 %} | ||
{% load i18n %} | ||
|
||
{% js_entry "hqwebapp/js/htmx_and_alpine" %} | ||
|
||
{% block content %} | ||
<div class="container p-5"> | ||
<h1 class="py-3 m-0"> | ||
{% trans "Case Data Cleaning Test View" %} | ||
</h1> | ||
<div | ||
hx-trigger="load" | ||
hx-get="{% url "data_cleaning_cases_table" domain %}{% querystring %}" | ||
> | ||
<div class="htmx-indicator"> | ||
<i class="fa-solid fa-spinner fa-spin"></i> {% trans "Loading..." %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block modals %} | ||
{% include "hqwebapp/htmx/error_modal.html" %} | ||
{{ block.super }} | ||
{% endblock modals %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from django.urls import re_path as url | ||
|
||
from corehq.apps.data_cleaning.views import ( | ||
CleanCasesMainView, | ||
CleanCasesTableView, | ||
) | ||
|
||
urlpatterns = [ | ||
url(r'^cases/$', CleanCasesMainView.as_view(), name=CleanCasesMainView.urlname), | ||
url(r'^cases/table/$', CleanCasesTableView.as_view(), name=CleanCasesTableView.urlname), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from django.utils.decorators import method_decorator | ||
|
||
from corehq import toggles | ||
from corehq.apps.data_cleaning.tables import CleanCaseTable | ||
from corehq.apps.domain.decorators import LoginAndDomainMixin | ||
from corehq.apps.domain.views import BaseDomainView, DomainViewMixin | ||
from corehq.apps.es import CaseSearchES | ||
from corehq.apps.hqwebapp.decorators import use_bootstrap5 | ||
from corehq.apps.hqwebapp.tables.pagination import SelectablePaginatedTableView | ||
|
||
|
||
@method_decorator([ | ||
use_bootstrap5, | ||
toggles.DATA_CLEANING_CASES.required_decorator(), | ||
], name='dispatch') | ||
class CleanCasesMainView(BaseDomainView): | ||
urlname = "data_cleaning_cases" | ||
template_name = "data_cleaning/cases.html" | ||
|
||
@property | ||
def section_url(self): | ||
return "" | ||
|
||
|
||
@method_decorator(toggles.DATA_CLEANING_CASES.required_decorator(), name='dispatch') | ||
class CleanCasesTableView(LoginAndDomainMixin, DomainViewMixin, SelectablePaginatedTableView): | ||
urlname = "data_cleaning_cases_table" | ||
table_class = CleanCaseTable | ||
|
||
def get_queryset(self): | ||
return CaseSearchES().domain(self.domain) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,4 @@ | |
<td>closed</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> |
36 changes: 22 additions & 14 deletions
36
corehq/apps/styleguide/templates/styleguide/bootstrap5/examples/checkbox.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
<div class="form-check"> | ||
<input class="form-check-input" | ||
type="checkbox" | ||
value="" | ||
id="flexCheckDefault"> | ||
<label class="form-check-label" | ||
for="flexCheckDefault"> | ||
<input | ||
id="id-flex-check-default" | ||
class="form-check-input" | ||
type="checkbox" | ||
value="" | ||
/> | ||
<label | ||
for="id-flex-check-default" | ||
class="form-check-label" | ||
> | ||
Default checkbox | ||
</label> | ||
</div> | ||
<div class="form-check"> | ||
<input class="form-check-input" | ||
type="checkbox" | ||
value="" | ||
id="flexCheckChecked" | ||
checked> | ||
<label class="form-check-label" | ||
for="flexCheckChecked"> | ||
<input | ||
id="id-flex-check-checked" | ||
class="form-check-input" | ||
type="checkbox" | ||
value="" | ||
checked | ||
/> | ||
<label | ||
for="id-flex-check-checked" | ||
class="form-check-label" | ||
> | ||
Checked checkbox | ||
</label> | ||
</div> | ||
</div> |
25 changes: 17 additions & 8 deletions
25
corehq/apps/styleguide/templates/styleguide/bootstrap5/examples/checkbox_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.