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

Mobile approval #45

Open
wants to merge 32 commits into
base: si_new
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6e6c449
avoid conflicts: Git do not track *.pyc files
Justus446 Jun 18, 2024
d898306
create models to store CRS from mobile
Justus446 Jun 19, 2024
e3ed880
Serializers for CRS mobile
Justus446 Jun 19, 2024
e9a3fc0
views for CRS mobile
Justus446 Jun 19, 2024
b5e9fca
endpoint to create CRS from mobile
Justus446 Jun 19, 2024
02c69d1
git ignored already
Justus446 Jun 19, 2024
a4ec002
restart migrations locally:ignore them on git
Justus446 Jun 19, 2024
5e2edd6
add PATCH method to crs mobile
Justus446 Jun 20, 2024
817fb6b
UI approval
bmugwe Jun 20, 2024
c4a5fa1
Merge branch 'si_new' of https://github.com/uonafya/cpims-dcs-3.0 int…
Justus446 Jun 20, 2024
a98c197
crs mobile endpoint(GET,POST,PATCH)
Justus446 Jun 20, 2024
3442f0a
CRS view GET,PATCH and POST
Justus446 Jun 20, 2024
e38acad
datatable via api call
bmugwe Jun 21, 2024
7683bc8
added columns in home approval
bmugwe Jun 21, 2024
50e3958
add app_form_metadata column to CRS models
Justus446 Jun 21, 2024
bcf813b
add app_form_metadata to CRSSerializerMobile
Justus446 Jun 21, 2024
ac9cf14
Enhance ovc_mobile_crs: paginate CRS responses, add app_form_metadata…
Justus446 Jun 21, 2024
669e9f2
conflicts resolution
bmugwe Jun 21, 2024
bfa863c
Merge pull request #43 from uonafya/dcs-mobile-staging
bmugwe Jun 21, 2024
090a141
return case params as an object
Justus446 Jun 21, 2024
e1e4289
Merge branch 'dcs-mobile-staging' of https://github.com/uonafya/cpims…
Justus446 Jun 21, 2024
444ecd9
fix typo
Justus446 Jun 21, 2024
8c1bc4a
clean up
Justus446 Jun 21, 2024
3c8527b
gitingored changes
Justus446 Jun 21, 2024
6dd2e2e
Enhance: provide county and constituency name to CRS payload
Justus446 Jun 22, 2024
7703e3e
Merge pull request #44 from uonafya/dcs-mobile-staging
bmugwe Jun 22, 2024
c58d4db
csr payload preview
bmugwe Jun 22, 2024
60056a1
conflict resolution upstream merge
bmugwe Jun 22, 2024
c6af0c2
Preview csr from mobile complete
bmugwe Jun 22, 2024
7b1069e
added iprs api in cpovc_api
bmugwe Sep 28, 2024
da8b09b
iprs fetch complete
bmugwe Sep 28, 2024
4882fe7
added live url
bmugwe Sep 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ cpims/settings.py
.history/*
.pyc
__pycache__
__pycache__/*
*.pyc
migrations
requirements.txt
.gitignore
**/migrations/*
Binary file modified cpims/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file removed cpims/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified cpims/__pycache__/emails.cpython-310.pyc
Binary file not shown.
Binary file modified cpims/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file modified cpims/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified cpims/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file modified cpims/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
7 changes: 4 additions & 3 deletions cpims/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
'cpovc_help',
'cpovc_ctip',
'cpovc_afc',
'cpovc_mobile',
'cpovc_stat_inst',
'cpovc_institutions',
'notifications',
Expand Down Expand Up @@ -104,7 +105,7 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'cpims_live',
'NAME': 'cpims_gok',
'USER': 'cpimsdbuser',
'PASSWORD': 'Xaen!ee8',
'HOST': '127.0.0.1',
Expand Down Expand Up @@ -236,8 +237,8 @@
DOC_ROOT = os.path.join(BASE_DIR, 'static')

SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=30),
'REFRESH_TOKEN_LIFETIME': timedelta(days=10),
'UPDATE_LAST_LOGIN': True,
}

Expand Down
Binary file modified cpovc_access/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/authentication.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/decorators.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/functions.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/handlers.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/password_change.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/password_strength.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/signals.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_access/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/functions.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_afc/__pycache__/views.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion cpovc_afc/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.7 on 2023-10-30 06:33
# Generated by Django 4.1.4 on 2024-06-18 15:58

from django.db import migrations, models
import django.utils.timezone
Expand Down
27 changes: 0 additions & 27 deletions cpovc_afc/migrations/0002_auto_20221108_0852.py

This file was deleted.

4 changes: 2 additions & 2 deletions cpovc_afc/migrations/0002_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.7 on 2023-10-30 06:33
# Generated by Django 4.1.4 on 2024-06-18 15:58

from django.conf import settings
from django.db import migrations, models
Expand All @@ -10,9 +10,9 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cpovc_forms', '0001_initial'),
('cpovc_afc', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand Down
63 changes: 0 additions & 63 deletions cpovc_afc/migrations/0003_auto_20221108_0852.py

This file was deleted.

8 changes: 4 additions & 4 deletions cpovc_afc/migrations/0003_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.7 on 2023-10-30 06:33
# Generated by Django 4.1.4 on 2024-06-18 15:58

from django.conf import settings
from django.db import migrations, models
Expand All @@ -10,10 +10,10 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('cpovc_registry', '0001_initial'),
('cpovc_forms', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cpovc_afc', '0002_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cpovc_forms', '0001_initial'),
('cpovc_registry', '0001_initial'),
]

operations = [
Expand Down
18 changes: 0 additions & 18 deletions cpovc_afc/migrations/0004_alter_afcforms_item_value.py

This file was deleted.

18 changes: 0 additions & 18 deletions cpovc_afc/migrations/0004_alter_afcquestions_id.py

This file was deleted.

18 changes: 0 additions & 18 deletions cpovc_afc/migrations/0005_afcmain_care_sub_type.py

This file was deleted.

18 changes: 0 additions & 18 deletions cpovc_afc/migrations/0006_alter_afcinfo_item_value.py

This file was deleted.

Binary file modified cpovc_afc/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified cpovc_afc/migrations/__pycache__/0002_initial.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified cpovc_afc/migrations/__pycache__/0003_initial.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified cpovc_afc/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_api/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_api/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_api/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified cpovc_api/__pycache__/views.cpython-310.pyc
Binary file not shown.
2 changes: 2 additions & 0 deletions cpovc_api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@
path('lookup/', views.get_settings, name='settings_lookup'),
path('dreams/', views.dreams),
path('user/', views.user_account),

path('iprs/', views.fetchIPRS, name='fetch_iprs'),
]
Loading
Loading