-
Notifications
You must be signed in to change notification settings - Fork 3
Development debugging user balance #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Mahmoud-Emad
merged 18 commits into
development
from
development_debugging_user_balance
Jan 11, 2026
Merged
Development debugging user balance #546
Mahmoud-Emad
merged 18 commits into
development
from
development_debugging_user_balance
Jan 11, 2026
Conversation
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
- Add `formatConsumedFrom` utility function - Import and use function in vacation request template - Export function from utils module
- Add API endpoints for debugging and fixing user balances - Implement Vue component for auditing and correcting vacation balances - Update dashboard navigation to include "Danger Zone" with balance audit option - Add Django management commands for debugging and recalculating user balances
- Update UsersAdminOfficeUsersApi to accept query params - Remove redundant pagination logic from frontend components - Refactor SupervisorsAPIView to fetch all active users - Update GetUsersInAdminOfficeAPIView to support 'all' and 'active_only' params - Add get_active_admin_office_users to filter users by office and active status
- Import VacationBalanceCalculator from utils
- Remove `size="comfortable"` from v-btn
- Add status filtering to vacation list endpoint - Normalize request type parameter for filtering - Update vacation list query logic for better filtering - Remove unused 'pending-requests' route and component
- Add `ws` connection ref to Window interface - Initialize `result` to null for vacation fetching - Add null checks for API responses before accessing `results` and `count`
- Simplify queryset logic for vacation retrieval - Add default values for request_type and status parameters - Implement validation for user_id and request_type in GET method - Improve user existence check before processing requests
- Update vacation query to conditionally add status and type - Set default status to "all" in team pending requests
- Conditionally set col widths based on tab - Hide user select when not on explore tab - Adjust status and type select widths for team tab
- Add pointer cursor for buttons
- Display "Not Provided" if approval user is missing - Set selected user to logged-in user initially - Fetch users for all users to explore - Allow viewing requests for any user via targetUserId - Enable filtering user requests by full name in backend
- Make "All Users History" tab accessible to all users - Use general user list endpoint - Fetch up to 1000 users - Assign results to users.value
- Add UsersActiveApi client class - Update users API client to include active endpoint - Implement AllActiveUsersAPIView for active users - Add URL path for active users endpoint
- Add transform for get list response
- Add `is_old_balance` to vacation serializer - Pass `is_old_balance` to Vacation model creation - Pass `is_old_balance` to VacationNotification
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.
Description
Describe the changes introduced by this PR and what does it affect
Changes
List of changes this PR includes
Related Issues
List of related issues
Checklist