Commit graph

71 commits

Author SHA1 Message Date
kououken
977c5dd175 Fix created/submitted dates to use timezone and call function when needed instead of at initialization. 2019-03-08 14:31:29 -08:00
Rupika
0388be6802 added error message for submitting after review report, and fixed some variable names to avoid overshadowing from outer scope 2019-03-06 16:39:34 -08:00
Rupika
eec0af4211 fixed email subject line 2019-03-04 16:45:52 -08:00
Rupika
09813acf30 added review/final status to email subject 2019-03-03 15:16:38 -08:00
Rupika
c8286778bc change report() function in views to create_report() 2019-03-03 14:46:12 -08:00
Rupika
dac67f8fc6 added finalize report api function & url 2019-03-03 12:59:26 -08:00
kououken
b0f41070ec Refreshed database and added frank user. 2019-03-03 01:08:20 -08:00
kououken
2a62eb94b1 Made fresh database with frank user. 2019-03-03 00:59:44 -08:00
kououken
d0fa8dbea8 Added error-checking when accessing policy file to catch changes. 2019-03-01 14:11:05 -08:00
kououken
4c5c3fed63 Subject line will omit RT formatting if no number is provided. 2019-03-01 13:11:41 -08:00
kououken
4dee825973 Updated frontend to send reference number when creating report. 2019-03-01 12:53:57 -08:00
kououken
c94bede4be Added request tracker support as a 'reference_number' field in the report model. 2019-03-01 12:26:43 -08:00
kououken
b1b21c84c7 Added 'approved' field to sections. Added env to gitignore. 2019-03-01 11:38:12 -08:00
kououken
1d4d3912dc Merged latest changes from master. 2019-02-23 13:55:22 -08:00
Rupika
87a3074b16 removed number, id, and completed attributes from the JSON data section 2019-02-22 11:39:12 -08:00
kououken
b23fcaa4a2 Fixed bug in subject line formatting. 2019-02-21 19:41:26 -08:00
kououken
fbf89d4876 Implemented email sending code. 2019-02-21 16:18:39 -08:00
kououken
9ea335d68f Fixed bugs in rules returning strings. 2019-02-20 17:05:36 -08:00
kououken
c899263f0c Changed error status to 409, which makes more sense. 2019-02-19 15:33:01 -08:00
kououken
deabfa8dd1 Reports can now be 'submitted', and you cannot modify submitted reports. 2019-02-19 12:45:39 -08:00
kououken
c864d4dd5a Merged changes from master. 2019-02-16 12:21:29 -08:00
kououken
d1bdab0701 Added docstring comments to all functions and classes. Renamed 'get_reports' to 'get_report'. 2019-02-16 12:11:37 -08:00
kououken
52fa39aa7a Merge remote-tracking branch 'origin/master' into owner-check 2019-02-16 10:37:32 -08:00
kououken
76974eb5c8 Implemented owner-checking and Unauthorized error messages. 2019-02-16 08:22:05 -08:00
Rupika
f987897ef7 prints out JSON with section & field details 2019-02-15 22:41:54 -08:00
rupikad
80c9c0add6
Merge branch 'master' into in-order-fields 2019-02-15 22:27:45 -08:00
Rupika
6bc9171e7e optimized "check_section" function to invoke field.completed boolean 2019-02-15 15:28:39 -08:00
kououken
f7bee92fcd Added 'number' attribute to fields in the policy file, then sorted by this number when displaying. 2019-02-15 14:59:42 -08:00
Rupika
e48a67b988 tweaked section completed boolean and got file functionality working 2019-02-15 14:45:49 -08:00
Rupika
38e29903fe Merge branch 'master' into section_complete_boolean 2019-02-14 17:55:57 -08:00
Preston Doman
e1b2259e85 Merge branch 'master' into mega-bug-fix 2019-02-14 17:48:20 -08:00
Rupika
04a742dec0 Merge branch 'master' into section_complete_boolean 2019-02-14 17:36:55 -08:00
Rupika
736f450013 extra changes for testing section complete 2019-02-14 17:36:33 -08:00
kououken
f95bd9ecee Implemented rule_violations in json for GET report. 2019-02-14 14:19:15 -08:00
Preston Doman
f2f1a3399b Change checkbox to boolean select menu 2019-02-14 14:17:25 -08:00
Rupika
8164236513 added logic for section complete check 2019-02-14 13:26:26 -08:00
Rupika
a2deb2b1bd updated database with field_type 2019-02-13 23:36:29 -08:00
Rupika
c69ad9d9ad fix db conflict? 2019-02-13 23:09:57 -08:00
Rupika
614f7102ba altered data_date to accommodate null date values 2019-02-13 21:17:31 -08:00
Rupika
ff3923d367 successfully updates all fields given front end data. PENDING
1) need to tweak DB to accommodate NULL dates
2) insert file logic
2019-02-13 21:07:53 -08:00
kououken
9149abdacf Removed 'request.data' from section update api response due to file serialization bug. 2019-02-13 17:46:00 -08:00
Rupika
75932daef1 fix merge conflict 2019-02-13 17:45:39 -08:00
Rupika
11b1de72b3 revamped update logic -- updated dummy JSON to mirror a full report 2019-02-13 17:41:28 -08:00
kououken
70df4ec486 Changed 'type' references to 'field_type' in backend and a couple places in front end. 2019-02-13 17:38:27 -08:00
Rupika
b2088291df successfully updates section from the request.data -- dummy JSON in postman 2019-02-13 17:06:58 -08:00
Rupika
8d630bd351 hardcoded dummy json input and updated section 2019-02-13 16:24:17 -08:00
Preston Doman
74098cf80c Add frontend save section functionality 2019-02-13 00:48:35 -08:00
Rupika
e7161c7ff9 clean up code 2019-02-11 12:36:24 -08:00
Rupika
01e1d1ffee Fixed deleted report message 2019-02-10 19:59:28 -08:00
Rupika
7b2c58cb2d deleting the file in database if it exists in report 2019-02-10 19:23:12 -08:00