The Pharmacy POS System Backend is the server-side component of our comprehensive pharmacy management software. It is developed using Spring Boot, Java, Spring Security ,and Microservices Architecture
Apache License 2.0
5
stars
3
forks
source link
Implement Fetch Items by Branch ID, Fix Get All Employees Branch ID, and Implement User Active Status #119
Pull Request: Implement Fetch Items by Branch ID, Fix Get All Employees Branch ID, and Implement User Active Status
Title
Implement Fetch Items by Branch ID, Fix Get All Employees Branch ID, and Implement User Active Status
Description
This pull request introduces new functionality for fetching items by branch ID, fixes an issue where the branch ID for employees was previously returned as 0, and implements a mechanism to track user active status based on their login state.
Issue: The branch ID for employees was previously returned as 0.
Fix: Corrected the branch ID retrieval logic to return the appropriate branch ID.
3. User Active Status Implementation
Functionality:
When a cashier logs in, their active status is set to true.
When a cashier temporarily or permanently logs out, their active status is set to false.
Test Plan
Unit Tests: Execute unit tests for the new endpoint and verify their functionality.
Integration Testing: Perform integration testing to validate the interactions between the new endpoint and the existing system.
Manual Testing: Manually test the new functionalities in a local environment.
Test Scenarios:
Fetch Items by Branch ID:
Make a GET request to /lifepill/v1/item/branched/get-item/{branchId} with a valid branch ID and verify the structure and content of the response.
Get All Employees with Correct Branch ID:
Ensure the branch ID is correctly returned for all employees.
User Active Status:
Log in as a cashier and verify that the active status is set to true.
Temporarily or permanently log out as a cashier and verify that the active status is set to false.
Related Issues
[Issue #112]: Request for New Endpoint: Fetch Items by Branch ID
[Issue #113]: Fix Get All Employees Branch ID
[Issue #114]: Implement User Active Status
Checklist
[x] Implemented new endpoint for fetching items by branch ID.
[x] Fixed the issue where the branch ID for employees was previously returned as 0.
[x] Implemented user active status tracking based on login state.
[x] Verified all tests pass successfully.
[x] Manually tested the new functionalities in a local environment.
Conclusion
This pull request introduces a new endpoint for fetching items by branch ID, fixes the issue with getting the correct branch ID for employees, and implements user active status tracking based on their login state. Please review the changes and ensure they meet the project's requirements and quality standards.
Best regards,
Pramitha Jayasooriya,
Backend Developer at LifePill,
https://pramithamj.me
Pull Request: Implement Fetch Items by Branch ID, Fix Get All Employees Branch ID, and Implement User Active Status
Title
Implement Fetch Items by Branch ID, Fix Get All Employees Branch ID, and Implement User Active Status
Description
This pull request introduces new functionality for fetching items by branch ID, fixes an issue where the branch ID for employees was previously returned as 0, and implements a mechanism to track user active status based on their login state.
Changes Made
1. New Endpoint for Fetching Items by Branch ID
/lifepill/v1/item/branched/get-item/{branchId}
2. Fix for Get All Employees Branch ID
3. User Active Status Implementation
Test Plan
Test Scenarios:
/lifepill/v1/item/branched/get-item/{branchId}
with a valid branch ID and verify the structure and content of the response.Related Issues
Checklist
Conclusion
This pull request introduces a new endpoint for fetching items by branch ID, fixes the issue with getting the correct branch ID for employees, and implements user active status tracking based on their login state. Please review the changes and ensure they meet the project's requirements and quality standards.
Best regards,
Pramitha Jayasooriya, Backend Developer at LifePill, https://pramithamj.me