Neza-Backend merge requestshttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests2020-06-04T20:43:53+07:00https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/57Implement CSV field formatter2020-06-04T20:43:53+07:00Jonathan Christopher JakubImplement CSV field formatterThis commit consists of:
* Change fields being used on CSV exports
* Rename the fields and headers
* Format some fields for user-friendliness
* Add permission class for exportables views
* Implement anonymous user handler on permission
*...This commit consists of:
* Change fields being used on CSV exports
* Rename the fields and headers
* Format some fields for user-friendliness
* Add permission class for exportables views
* Implement anonymous user handler on permission
* Tidy up exportable constantsJonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/56Fixed logs and is_positive condition2020-06-04T01:19:18+07:00IrwantoFixed logs and is_positive conditionFix includes:
* Admin logs returned only the logs of the current admin account
* Author on account creation
* Is positive condition to be any value that does not contains "-"Fix includes:
* Admin logs returned only the logs of the current admin account
* Author on account creation
* Is positive condition to be any value that does not contains "-"https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/55Fix model name in logs serializers2020-06-02T18:59:40+07:00IrwantoFix model name in logs serializersChanged monitoring case log model name to "Monitoring Case" instead of "Case Subject".Changed monitoring case log model name to "Monitoring Case" instead of "Case Subject".https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/53Lowercase username on login2020-05-30T17:56:38+07:00Jonathan Christopher JakubLowercase username on loginJonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/54Implement CSV Export for `InvestigationCase`2020-05-29T17:31:04+07:00Dave NathanaelImplement CSV Export for `InvestigationCase`Adds feature to export all current database records as a CSV file.
Endpoint: `/exportables/investigation-cases-csv/`
Additional filtering can be done against cases' gender, age, and district (from `CaseSubject`)
Filters:
- `?is_mal...Adds feature to export all current database records as a CSV file.
Endpoint: `/exportables/investigation-cases-csv/`
Additional filtering can be done against cases' gender, age, and district (from `CaseSubject`)
Filters:
- `?is_male=true|false`
- `?min_age=20&max_age=22` (note that __both__ `min_age` and `max_age` is __required__)
- `?district=Beji`Dave NathanaelDave Nathanaelhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/52Implement case counts views for statistics2020-05-27T12:15:23+07:00Jonathan Christopher JakubImplement case counts views for statisticsThis request implements the case count views: a retrieve-only endpoint returning the count of cases grouped by (`age|sex|district`) and the outcome of each case.This request implements the case count views: a retrieve-only endpoint returning the count of cases grouped by (`age|sex|district`) and the outcome of each case.Jonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/51Implement `is_positive` field on `InvestigationCase`2020-05-18T17:57:45+07:00Dave NathanaelImplement `is_positive` field on `InvestigationCase`Adds a new `is_positive` field to `InvestigationCase` model that reflect the existing `outcome` field so it's easier to index and with cheaper computing for querysets (checking boolean vs checking string).Adds a new `is_positive` field to `InvestigationCase` model that reflect the existing `outcome` field so it's easier to index and with cheaper computing for querysets (checking boolean vs checking string).Dave NathanaelDave Nathanaelhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/50Fix email account deactivation test2020-05-15T00:54:57+07:00Dave NathanaelFix email account deactivation testDave NathanaelDave Nathanaelhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/49Implement email notification on Account deactivation2020-05-07T23:57:32+07:00Dave NathanaelImplement email notification on Account deactivationSend email notification to every `Account`'s `email` whenever it is deactivated. Implementation is similar to email notification on Account activationSend email notification to every `Account`'s `email` whenever it is deactivated. Implementation is similar to email notification on Account activationDave NathanaelDave Nathanaelhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/48Add query param to include Positive cases on InvestigationCase list endpoint2020-05-07T23:42:38+07:00Dave NathanaelAdd query param to include Positive cases on InvestigationCase list endpointNew query param `?include_positive=true` will include positive cases on `InvestigationCase`'s list endpoint `/cases/investigation-cases/?include_positive=true`New query param `?include_positive=true` will include positive cases on `InvestigationCase`'s list endpoint `/cases/investigation-cases/?include_positive=true`Dave NathanaelDave Nathanaelhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/47Fix: Phone Validator on Accounts2020-05-07T23:42:24+07:00Jonathan Christopher JakubFix: Phone Validator on Accounts* Added custom phone validator on the Account model* Added custom phone validator on the Account modelJonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/46Account creation accepts verified users and blocks existing user2020-04-29T22:52:07+07:00Jonathan Christopher JakubAccount creation accepts verified users and blocks existing userWhen the super admin add accounts manually, they should be verified and active instantly. This commit also implement handlers for already existing accounts.When the super admin add accounts manually, they should be verified and active instantly. This commit also implement handlers for already existing accounts.Jonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/44Add filter monitoring case by investigation id2020-04-28T22:53:35+07:00IrwantoAdd filter monitoring case by investigation idhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/43Implement SendGrid email integration for Account activation2020-04-28T13:38:33+07:00Dave NathanaelImplement SendGrid email integration for Account activationBackend will send email notification for Accounts that are being activated from the admin panel.
Email is sent to Account's email by `nezappl@gmail.com` (subject to change) with a pre-defined email content/structure.
Using SendGrid for t...Backend will send email notification for Accounts that are being activated from the admin panel.
Email is sent to Account's email by `nezappl@gmail.com` (subject to change) with a pre-defined email content/structure.
Using SendGrid for the Email service providerDave NathanaelDave Nathanaelhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/42Implement monitoring case checking date2020-04-23T14:31:32+07:00Jonathan Christopher JakubImplement monitoring case checking dateJonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/41Setup CORS2020-04-23T12:36:11+07:00Jonathan Christopher JakubSetup CORSSetup CORS policy to allow all (temporary)Setup CORS policy to allow all (temporary)Jonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/40Add additional fields and filter fields for MonitoringCase2020-04-20T23:18:31+07:00Dave NathanaelAdd additional fields and filter fields for MonitoringCaseThis PR adds several addition on `MonitoringCase` and `MonitoringCaseHistory` and its filter/search/ordering fields:
- `is_medicated` to specify if the medication is finished
- `medication_outcome` to specify the outcome of the finished ...This PR adds several addition on `MonitoringCase` and `MonitoringCaseHistory` and its filter/search/ordering fields:
- `is_medicated` to specify if the medication is finished
- `medication_outcome` to specify the outcome of the finished medication
Also added more filter/search/ordering fields for `MonitoringCase` and `MonitoringCaseHistory` against its `investigation_case` relation field:
- `investigation_case__case_subject__name`,
- `investigation_case__case_subject__age`,
- `investigation_case__case_subject__is_male`,
- `investigation_case__case_subject__address`,
- `investigation_case__case_subject__district`,
- `investigation_case__case_subject__sub_district`,
- `investigation_case__case_subject__created_at`,
- `investigation_case__reference_case__case_relation`,
- `investigation_case__reference_case__medical_symptoms`,
- `investigation_case__reference_case__risk_factors`,
- `investigation_case__reference_case__is_referral_needed`,
- `investigation_case__reference_case__medical_facility_reference`,
- `investigation_case__reference_case__outcome`,
- `investigation_case__reference_case__created_at`,Dave NathanaelDave Nathanaelhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/39Increase depth of investigation case serializer recursive depth2020-04-20T23:13:10+07:00Jonathan Christopher JakubIncrease depth of investigation case serializer recursive depthJonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/37Fix Logs Pagination2020-04-20T01:36:02+07:00Jonathan Christopher JakubFix Logs Pagination* Fix logs being paginated but the queryset is not sliced per page size.* Fix logs being paginated but the queryset is not sliced per page size.Jonathan Christopher JakubJonathan Christopher Jakubhttps://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/ppti-mobile-apps-monitoring-wabah-tuberkolosis/neza-backend/-/merge_requests/36[Bugfix] Generalized related ID field on History creation method2020-04-19T20:37:17+07:00Jonathan Christopher Jakub[Bugfix] Generalized related ID field on History creation methodThis commits include:
* Generalization of the related field (previously only accept UUID)
* Registration of history models to Django admin page
* Sort logs by recording timeThis commits include:
* Generalization of the related field (previously only accept UUID)
* Registration of history models to Django admin page
* Sort logs by recording timeJonathan Christopher JakubJonathan Christopher Jakub