Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/assessment dashboard statistics fix #1402

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
c8a5acb
Add models for Metadata tab
Rup-Narayan-Rajbanshi Apr 28, 2023
5252808
Add models for Additional Document and Focus
Rup-Narayan-Rajbanshi Apr 28, 2023
a9b78fa
Add models for Methodology
Rup-Narayan-Rajbanshi May 4, 2023
479fff0
Add focus, sectors, affected_groups, location for Focus tab
Rup-Narayan-Rajbanshi May 4, 2023
8d31366
Add Types , Serializers, Mutation for Meatdata
Rup-Narayan-Rajbanshi May 9, 2023
f7afcbc
Appended muatation for focus tab
Rup-Narayan-Rajbanshi May 10, 2023
d60646a
Add mutation for Methodology tab
Rup-Narayan-Rajbanshi May 11, 2023
00059ff
Add mutation for Additional Document
Rup-Narayan-Rajbanshi May 11, 2023
8f28bac
Add mutation for AdditionalDocument Tab
Rup-Narayan-Rajbanshi May 12, 2023
83ed373
Add models for Score Tab
Rup-Narayan-Rajbanshi May 16, 2023
af46bb1
Add mutation and query for score tab
Rup-Narayan-Rajbanshi May 17, 2023
d0ea963
Add query for summary tab enum choices.
Rup-Narayan-Rajbanshi May 24, 2023
bb6cb42
Add entries in assessment_registry query
Rup-Narayan-Rajbanshi Jun 21, 2023
90d7aba
Modify lead testcase to accept current assessment registry
Rup-Narayan-Rajbanshi Jun 22, 2023
400c5be
Fix issue for not accepting empty list in multiple select input field.
Rup-Narayan-Rajbanshi Jun 30, 2023
65901fe
Remove lead_group from assessment registry
Rup-Narayan-Rajbanshi Jul 6, 2023
4a01e4d
Pass default list to the Arrayfield in Assessment Registry models.
Rup-Narayan-Rajbanshi Jul 10, 2023
0b22eb8
Add skip registry for bg_countries in assessment registry.
Rup-Narayan-Rajbanshi Jul 11, 2023
f6832c6
Add update mutation for assessment registry
Rup-Narayan-Rajbanshi Jul 11, 2023
0f44a1f
Make lead type required in Assessment reg query.
Rup-Narayan-Rajbanshi Jul 12, 2023
1f8bd57
Fix affected groups type in focus tab.
Rup-Narayan-Rajbanshi Jul 13, 2023
9dbbf2c
Remove type Executive_summary from additional document and add text
Jul 19, 2023
b85f9f7
Remove type Executive_summary from additional document and add text
Jul 19, 2023
bb13625
Make client id required in methodology attribute
Jul 20, 2023
c32d896
Make extenal link type from text to URL.
Rup-Narayan-Rajbanshi Jul 26, 2023
c9e05e9
Add field file_path in additional document.
Rup-Narayan-Rajbanshi Jul 28, 2023
e549f2a
Add geo area in location for assessment registry.
Rup-Narayan-Rajbanshi Jul 28, 2023
6eba7c4
PR fixes on file upload.
Rup-Narayan-Rajbanshi Aug 1, 2023
8df2135
Add geo area in location for assessment registry.
Rup-Narayan-Rajbanshi Jul 28, 2023
7e29940
PR fixes on file upload.
Rup-Narayan-Rajbanshi Aug 1, 2023
280db3c
Add query for summary tab enum choices.
Rup-Narayan-Rajbanshi May 24, 2023
5881d5a
Add mutation for summary
Rup-Narayan-Rajbanshi May 29, 2023
7fc5578
Add models for CNA tab
Rup-Narayan-Rajbanshi May 31, 2023
48d06bd
Add mutation for summary tab
Rup-Narayan-Rajbanshi Jun 2, 2023
e40bbf6
Add query for summary tab enum choices.
Rup-Narayan-Rajbanshi May 24, 2023
f5505f2
Add test cases
Rup-Narayan-Rajbanshi Jun 9, 2023
8f284db
Modified Admin site for AssessmentRegistry
Rup-Narayan-Rajbanshi Jun 16, 2023
d9a71a9
Remove old summary
Rup-Narayan-Rajbanshi Jul 3, 2023
4cacdf7
Add models for summary tab
Rup-Narayan-Rajbanshi Jul 4, 2023
6b59ef7
Add mutation and schema for summary tab
Rup-Narayan-Rajbanshi Jul 6, 2023
1d96bc7
Add Mutation for Issue
Rup-Narayan-Rajbanshi Jul 11, 2023
e9fb5c9
Add query and filter for summary issue
Rup-Narayan-Rajbanshi Jul 12, 2023
db81d93
Add endpoint for Summary sector subsector
Rup-Narayan-Rajbanshi Jul 13, 2023
5d8bedd
Add mutation for rest of the tabs.
Rup-Narayan-Rajbanshi Jul 13, 2023
103305d
Add summary focus options in the summary_focus_options query
Jul 18, 2023
d929190
Add test for summary mutation
Jul 20, 2023
e4db004
Add test case for summary query
Jul 20, 2023
e98011c
Add LeadDetalType in AssessmentRegistrytype
Jul 24, 2023
af47132
Modify validation for score_rating and score_analytical_density
Rup-Narayan-Rajbanshi Jul 25, 2023
1284d3c
Add enums to score dimmensions.
Rup-Narayan-Rajbanshi Aug 1, 2023
73e3774
Add NonNull to the list field in assessment_registry query.
Rup-Narayan-Rajbanshi Aug 1, 2023
53957a8
Add score options in assessment_registry_options query
Rup-Narayan-Rajbanshi Aug 2, 2023
05b9f46
Make the score options response into flat.
Rup-Narayan-Rajbanshi Aug 3, 2023
8fa8b82
Change name convention in for Summary Tab's element.
Rup-Narayan-Rajbanshi Aug 3, 2023
7bd848a
Add id for all nested objects for update mutation.
Rup-Narayan-Rajbanshi Aug 3, 2023
ca9655f
Modify the summary_options query to get flat response.
Rup-Narayan-Rajbanshi Aug 4, 2023
fd4eeee
Add validation limiting two hierarical issue.
Rup-Narayan-Rajbanshi Aug 4, 2023
31a84fa
Add validation for question in admin side.
Rup-Narayan-Rajbanshi Aug 7, 2023
4d21d64
Clean up code.
Rup-Narayan-Rajbanshi Aug 10, 2023
f80aee5
Aggregated all stakeholder into single field in assessment_registry.
Rup-Narayan-Rajbanshi Aug 11, 2023
7fdb26a
Add dataloader for SummarySubPillarIssue
Rup-Narayan-Rajbanshi Aug 16, 2023
298eb04
Review fix
thenav56 Aug 17, 2023
8bc973e
Add client_id into summary pillar and dimmension issues.
Rup-Narayan-Rajbanshi Aug 22, 2023
e29789e
Add filter search in issues list.
Rup-Narayan-Rajbanshi Aug 22, 2023
9e9695a
Add tab_name_complete boolean field for every tab in assessment
Rup-Narayan-Rajbanshi Aug 23, 2023
484fc51
Fix typo for dimension.
Rup-Narayan-Rajbanshi Aug 23, 2023
7e23a0e
Fix error for sector in summary dimensions.
Rup-Narayan-Rajbanshi Aug 28, 2023
b3434e8
Add Assessment dummy data generator
thenav56 Sep 12, 2023
9642dba
Fix summary options
Rup-Narayan-Rajbanshi Sep 14, 2023
2e2bb7f
Add option to use existing projects geo regions
thenav56 Oct 6, 2023
9e1a23e
Add filter is_parent for assessment-registry issues.
Rup-Narayan-Rajbanshi Sep 22, 2023
c5b3270
Add test case for filter in assessment registry issues list.
Rup-Narayan-Rajbanshi Sep 26, 2023
7e3ad81
Add dataloaders for issue child count and calculate issue level.
Rup-Narayan-Rajbanshi Oct 16, 2023
9533167
Add test case for issue child count and level value.
Rup-Narayan-Rajbanshi Oct 16, 2023
df85db2
Limit widget to supported widget types in test
thenav56 Nov 7, 2023
e310496
Removed fields that are implemented in client side in SummaryFocus.
Rup-Narayan-Rajbanshi Sep 15, 2023
a76f79a
Add export for Assessment Registry
Rup-Narayan-Rajbanshi Sep 8, 2023
4ef288a
Add data for Methodology Attribute in assessment reg export sheet.
Rup-Narayan-Rajbanshi Sep 11, 2023
dc3ef9d
Add cna data into assessment registry export
Rup-Narayan-Rajbanshi Sep 12, 2023
4c1802e
Add data for additional document in assessment reg export sheet.
Rup-Narayan-Rajbanshi Sep 12, 2023
1886e8f
Error fixed for affecred group, display enums
Rup-Narayan-Rajbanshi Sep 13, 2023
b6559e5
Add language in assessment reg export
Rup-Narayan-Rajbanshi Sep 13, 2023
9742f02
Add country info in assessment registry export
Rup-Narayan-Rajbanshi Sep 13, 2023
4d0a475
assessment dashboard statistics
sudan45 Jul 26, 2023
27c262e
solved flake8 issues
sudan45 Jul 26, 2023
dca279a
schemaType added in schema.graphql
sudan45 Jul 26, 2023
eb28696
Add query for Assessment registry Count
sudan45 Aug 10, 2023
6728e75
- assessment_geographic_areas implemented
sudan45 Aug 23, 2023
0e3b1a2
- assessment_per_affected_group_and_geoarea implemented
sudan45 Aug 24, 2023
f7ae3cf
- test case assessment dashboard implemented
sudan45 Aug 28, 2023
a98a7e8
- assessment per unit analysis implemented
sudan45 Aug 29, 2023
4c46e97
- Number of Assessments by Geographical Area and methodology implemen…
sudan45 Aug 30, 2023
51a3fb9
PR fixes
sudan45 Aug 30, 2023
edf3ca6
PR fixes
sudan45 Aug 30, 2023
c245eeb
Datatype changed
sudan45 Sep 6, 2023
00f1dc6
Median Score Calculate of the assessmnet
sudan45 Sep 12, 2023
40ee0dd
Dataloader for the GeoArea
sudan45 Sep 14, 2023
fb2f704
Caching implemented
sudan45 Sep 20, 2023
ef8ea63
Add ability to select regions while generating dummy data form assess…
AdityaKhatri Sep 28, 2023
2dd1817
median quality score in month
sudan45 Dec 6, 2023
78a4abf
add autocomplete fields and fix filterset
sudan45 Dec 28, 2023
dab9b99
update test case
sudan45 Dec 29, 2023
e97c91c
add node caches in every node
sudan45 Jan 2, 2024
e93fe86
optimize the stakeholder count
sudan45 Jan 4, 2024
ee31ee5
update organization filter test case
sudan45 Jan 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

.venv
.vscode/
# dependencies
/node_modules
vendor/
Expand Down
7 changes: 4 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"python.linting.mypyEnabled": true,
"python.linting.enabled": true
}
"python.linting.mypyEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "true"
}
3 changes: 2 additions & 1 deletion apps/analysis_framework/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Widget,
Filter,
)
from .widgets.store import widget_store


class AnalysisFrameworkTagFactory(DjangoModelFactory):
Expand Down Expand Up @@ -53,7 +54,7 @@ class Meta:
class WidgetFactory(DjangoModelFactory):
title = factory.Sequence(lambda n: f'Widget-{n}')
key = factory.Sequence(lambda n: f'widget-key-{n}')
widget_id = fuzzy.FuzzyChoice(Widget.WidgetType.choices, getter=lambda c: c[0])
widget_id = fuzzy.FuzzyChoice(widget_store.keys())
properties = {}
version = 1

Expand Down
120 changes: 40 additions & 80 deletions apps/analysis_framework/tests/snapshots/snap_test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'analysisFramework': {
'allowedPermissions': [
'CAN_CLONE_FRAMEWORK',
'CAN_USE_IN_OTHER_PROJECTS',
'CAN_USE_IN_OTHER_PROJECTS'
],
'currentUserRole': 'DEFAULT',
'description': 'Quality throughout beautiful instead ahead despite measure ago current practice nation determine operation speak.',
Expand Down Expand Up @@ -60,8 +60,8 @@
'properties': {
},
'title': 'Widget-2',
'widgetId': 'DATE',
'version': 1,
'widgetId': 'NUMBER'
},
{
'id': '4',
Expand All @@ -70,8 +70,8 @@
'properties': {
},
'title': 'Widget-1',
'widgetId': 'MULTISELECT',
'version': 1,
'widgetId': 'ORGANIGRAM'
},
{
'id': '3',
Expand All @@ -80,8 +80,8 @@
'properties': {
},
'title': 'Widget-0',
'widgetId': 'TEXT',
'version': 1,
'widgetId': 'MULTISELECT'
}
]
},
Expand All @@ -91,35 +91,15 @@
'title': 'Section-2',
'tooltip': 'Some tooltip info 103',
'widgets': [
{
'id': '6',
'key': 'widget-key-0',
'order': 0,
'properties': {
},
'title': 'Widget-0',
'widgetId': 'SCALE',
'version': 1,
},
{
'id': '8',
'key': 'widget-key-2',
'order': 2,
'properties': {
},
'title': 'Widget-2',
'widgetId': 'MATRIX1D',
'version': 1,
},
{
'id': '9',
'key': 'widget-key-3',
'order': 3,
'properties': {
},
'title': 'Widget-3',
'widgetId': 'MULTISELECT',
'version': 1,
'widgetId': 'DATE'
}
]
},
Expand All @@ -129,15 +109,25 @@
'title': 'Section-0',
'tooltip': 'Some tooltip info 101',
'widgets': [
{
'id': '1',
'key': 'widget-key-0',
'order': 0,
'properties': {
},
'title': 'Widget-0',
'version': 1,
'widgetId': 'SELECT'
},
{
'id': '2',
'key': 'widget-key-1',
'order': 1,
'properties': {
},
'title': 'Widget-1',
'widgetId': 'SELECT',
'version': 1,
'widgetId': 'TIME_RANGE'
}
]
}
Expand All @@ -150,8 +140,8 @@
'properties': {
},
'title': 'Widget-3',
'widgetId': 'TIME_RANGE',
'version': 1,
'widgetId': 'SELECT'
},
{
'id': '12',
Expand All @@ -160,8 +150,8 @@
'properties': {
},
'title': 'Widget-2',
'widgetId': 'MATRIX1D',
'version': 1,
'widgetId': 'MATRIX2D'
},
{
'id': '11',
Expand All @@ -170,21 +160,11 @@
'properties': {
},
'title': 'Widget-1',
'widgetId': 'GEO',
'version': 1,
},
{
'id': '10',
'key': 'widget-key-0',
'order': 20,
'properties': {
},
'title': 'Widget-0',
'widgetId': 'NUMBER',
'version': 1,
'widgetId': 'TIME'
}
],
'title': 'AF-0',
'title': 'AF-0'
}
}
}
Expand All @@ -194,7 +174,7 @@
'analysisFramework': {
'allowedPermissions': [
'CAN_CLONE_FRAMEWORK',
'CAN_USE_IN_OTHER_PROJECTS',
'CAN_USE_IN_OTHER_PROJECTS'
],
'currentUserRole': None,
'description': 'Quality throughout beautiful instead ahead despite measure ago current practice nation determine operation speak.',
Expand All @@ -216,8 +196,8 @@
'properties': {
},
'title': 'Widget-2',
'widgetId': 'DATE',
'version': 1,
'widgetId': 'NUMBER'
},
{
'id': '4',
Expand All @@ -226,8 +206,8 @@
'properties': {
},
'title': 'Widget-1',
'widgetId': 'MULTISELECT',
'version': 1,
'widgetId': 'ORGANIGRAM'
},
{
'id': '3',
Expand All @@ -236,8 +216,8 @@
'properties': {
},
'title': 'Widget-0',
'widgetId': 'TEXT',
'version': 1,
'widgetId': 'MULTISELECT'
}
]
},
Expand All @@ -247,35 +227,15 @@
'title': 'Section-2',
'tooltip': 'Some tooltip info 103',
'widgets': [
{
'id': '6',
'key': 'widget-key-0',
'order': 0,
'properties': {
},
'title': 'Widget-0',
'widgetId': 'SCALE',
'version': 1,
},
{
'id': '8',
'key': 'widget-key-2',
'order': 2,
'properties': {
},
'title': 'Widget-2',
'widgetId': 'MATRIX1D',
'version': 1,
},
{
'id': '9',
'key': 'widget-key-3',
'order': 3,
'properties': {
},
'title': 'Widget-3',
'widgetId': 'MULTISELECT',
'version': 1,
'widgetId': 'DATE'
}
]
},
Expand All @@ -285,15 +245,25 @@
'title': 'Section-0',
'tooltip': 'Some tooltip info 101',
'widgets': [
{
'id': '1',
'key': 'widget-key-0',
'order': 0,
'properties': {
},
'title': 'Widget-0',
'version': 1,
'widgetId': 'SELECT'
},
{
'id': '2',
'key': 'widget-key-1',
'order': 1,
'properties': {
},
'title': 'Widget-1',
'widgetId': 'SELECT',
'version': 1,
'widgetId': 'TIME_RANGE'
}
]
}
Expand All @@ -306,8 +276,8 @@
'properties': {
},
'title': 'Widget-3',
'widgetId': 'TIME_RANGE',
'version': 1,
'widgetId': 'SELECT'
},
{
'id': '12',
Expand All @@ -316,8 +286,8 @@
'properties': {
},
'title': 'Widget-2',
'widgetId': 'MATRIX1D',
'version': 1,
'widgetId': 'MATRIX2D'
},
{
'id': '11',
Expand All @@ -326,21 +296,11 @@
'properties': {
},
'title': 'Widget-1',
'widgetId': 'GEO',
'version': 1,
},
{
'id': '10',
'key': 'widget-key-0',
'order': 20,
'properties': {
},
'title': 'Widget-0',
'widgetId': 'NUMBER',
'version': 1,
'widgetId': 'TIME'
}
],
'title': 'AF-0',
'title': 'AF-0'
}
}
}
Expand Down
Loading
Loading