G2-CM: Backend APIs — SLA, drafts, verification, escalation, analytics, and role-based access#1910
Open
ManbirS07 wants to merge 13 commits into
Open
Conversation
- Added escalation fields to StudentComplain model: is_escalated, escalation_reason, escalated_date. - Updated serializers to handle new escalation logic and default values. - Enhanced views to manage complaint access based on user roles and permissions. - Modified URL patterns to include escalation endpoint. - Added tests for new functionality and ensured existing tests cover role-based access.
Implement complaint escalation feature and enhance serializers
- Introduced new models and fields for complaint prioritization, verification, and status tracking. - Added `ComplaintPriority`, `VerificationStatus`, and `ComplaintStatus` classes for better status management. - Implemented unique complaint reference generation and SLA deadline handling in `StudentComplain`. - Created `ComplaintEvent` model to log changes in complaint status and actions. - Developed assignment policies for auto-assignment of complaints based on type and location. - Implemented escalation logic for overdue complaints with notification system for supervisors and stakeholders. - Added comprehensive test cases to ensure functionality of new features and edge cases. - Created migration files to backfill existing data and add new fields to the database schema.
feat(complaint_system): Enhance complaint lifecycle management
…ders - Added `is_draft` and `submitted_at` fields to `StudentComplain` model to support draft complaints. - Implemented area filtering for supervisors in `_get_supervisor_recipients` function. - Introduced `_get_authority_and_admin_recipients` function to notify superusers and service authorities. - Created `send_sla_deadline_reminders` task to automatically notify users before SLA breaches. - Updated notification logic to log events for SLA reminders and notification sends. - Added tests for new features including draft creation, SLA reminders, and supervisor area filtering. - Created migrations for new fields in `StudentComplain` and `Supervisor` models.
feat: Enhance complaint system with draft functionality and SLA remin…
…hance draft complaint handling
…in2624/Fusion into complaint-management-v2
Complaint management v2
…gic, status transition control, and supervisor notification integration.
…gnation for proper UI visibility
…ic, SLA tracking, and role-based access control
feat: implement complaint management API with automated assignment lo…
Collaborator
|
Congratulations for making your first Pull Request at Fusion!! 🎉 Someone from our team will review it soon. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Brief description of what is fixed or changed
Main API Endpoints
Key Highlights
Testing
Checklist
Put an
xin the boxes that apply