Skip to content

Implement Core Business Logic, Authorization, and Workflow State Management#1908

Open
Mohithreddy70 wants to merge 5 commits into
FusionIIIT:patent-management-v2from
Mohithreddy70:patent-management-v2
Open

Implement Core Business Logic, Authorization, and Workflow State Management#1908
Mohithreddy70 wants to merge 5 commits into
FusionIIIT:patent-management-v2from
Mohithreddy70:patent-management-v2

Conversation

@Mohithreddy70
Copy link
Copy Markdown

Backend Implementation: Patent Management System (PMS) Core Logic

Description

This PR establishes the foundational backend architecture for the Patent Management System, focusing on enforcing business rules, securing data access, and managing complex application workflows.

Key Changes

  • Workflow Engine: Implemented state-transition logic for patent applications (based on PMS-WF-101), supporting transitions from Draft to Submitted, Under Review, and Approved/Rejected/Needs Revision.
  • Business Rule Enforcement: - Validation: Integrated BR-PMS-001 to ensure all mandatory fields (title, abstract, claims, etc.) are present before submission.
    • Sequential Review: Enforced BR-PMS-004, ensuring applications are director-approved before attorney assignment.
    • Budgeting: Added logic for cost-threshold checking and director escalation for financial approvals (BR-PMS-008).
  • Access Control: Developed a role-based authorization system (BR-PMS-002) that restricts operations based on user roles such as Applicant, Director, or PCC_ADMIN.
  • Document Management: Implemented revision locking (BR-PMS-006) to prevent applicants from editing documents unless the status is specifically 'Awaiting Revision'.
  • Conflict of Interest (COI): Added automated checks to prevent directors or admins from reviewing applications where they are listed as inventors (BR-PMS-003).

Testing

  • Unit tests for status transition logic and business rule validations.
  • Integration tests for role-based endpoint security.

Tanaybaviskar and others added 5 commits April 13, 2026 16:19
…plication system

- Implemented end-to-end tests for various workflows (submission, revision, budget approval, director assignment, fee payment, and external filing) in 	est_workflows.py.
- Created a custom Django test runner in setup_tests.py that generates CSV reports for test execution, defect logs, and artifact evaluations.
- Added scaffolding for YAML specifications to facilitate structured test design documentation.
- Ensured proper directory structure and initialization for test modules.
@FusionIIIT-Bot
Copy link
Copy Markdown
Collaborator

Congratulations for making your first Pull Request at Fusion!! 🎉 Someone from our team will review it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants