Commit Graph

122 Commits

Author SHA1 Message Date
25bad98900 Merge pull request #3 from i701/feat/topups
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 5m4s
feature/topups
2025-07-03 21:07:14 +05:00
cec2045e5f refactor(billing): Enhance TopupSerializer to include detailed user information and update ListCreateTopupView queryset filtering 🔨 2025-07-03 21:04:59 +05:00
e4a01597aa refactor(billing): Refactor TopupFilter to enhance user search functionality and update fields 🔨 2025-07-03 21:04:42 +05:00
4a944c176b feat(billing): Add management command to seed topup models with dummy data 2025-07-03 21:04:14 +05:00
f67a3762ad test(billing): Add comprehensive tests for Topup model and payment verification 🧪 2025-07-03 21:03:55 +05:00
2122e8dfee feat(billing): Enhance Topup admin interface and add default ordering for Topup model 2025-07-03 21:03:15 +05:00
978a4a27d0 feat(billing): Add topup permissions assignment for new users 2025-07-03 21:02:37 +05:00
367ccf0f88 feat(justfile): Add migrate and make-migrations commands for database management 2025-07-03 17:13:41 +05:00
c07d3c93d2 feat(billing): WIP Add Topup model, filters, serializers, and views for topup management 2025-07-03 17:13:25 +05:00
bae0882879 refactor(DeviceListCreateAPIView): Update all_devices parameter handling for improved boolean parsing 🔨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m30s
2025-06-30 23:21:08 +05:00
708d7c2bec refactor(filters): Enhance user filtering in DeviceFilter to search across multiple user fields 🔨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m44s
2025-06-30 22:40:13 +05:00
dc8fe44004 Merge pull request #2 from i701/feat/payments-filter
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m58s
refactor(portal-api): Device serializers to include user information …
2025-06-30 22:30:45 +05:00
3d541831c7 refactor(portal-api): Device serializers to include user information and ensure consistent Meta class formatting 🔨 2025-06-30 22:29:27 +05:00
c4f8989734 Merge pull request #1 from i701/feat/payments-filter
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m25s
feat(api-payments): add relevant payment filters for payments view and add seeding 🌱
2025-06-29 20:01:54 +05:00
428d9ae0e1 Refactor PaymentFilter to use RangeFilter for amount and number_of_months; add vendor filter to DeviceFilter 2025-06-29 19:28:41 +05:00
b149c86899 Add seed_payments management command to populate payment models with dummy data 2025-06-29 19:17:40 +05:00
cb15aed94b WIP (Payments) Add PaymentFilter for filtering payment records 🚧 2025-06-28 23:23:04 +05:00
eb43b3108d Refactor Omada client initialization: move instantiation to add_new_devices_to_omada task
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m32s
2025-06-28 14:49:39 +05:00
828da25046 Update PostgreSQL database settings to include default values for development
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 3m7s
2025-06-28 14:39:21 +05:00
7d641e95d7 Enhance DeviceListCreateAPIView to allow admin users to access all devices based on query parameter
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 2m37s
2025-06-28 10:25:46 +05:00
2de9e2117d Add Justfile for task automation with development commands 2025-06-28 10:25:40 +05:00
e3b39478eb Refactor task management: replace Celery with Procrastinate for background tasks and update related configurations 2025-06-28 10:25:33 +05:00
28315c59cf Update Redis configuration in settings.py to use environment variable for host
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 2m6s
2025-06-26 20:16:55 +05:00
39da124214 Refactor device blocking logic in DeviceBlockAPIView to utilize Omada BlockDeviceResponse for blocking in omada first
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 3m42s
2025-06-23 23:41:59 +05:00
570cf80019 Refactor Omada class methods for clarity; update device blocking logic in DeviceBlockAPIView and improve user verification error handling
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 3m14s
2025-06-23 23:14:40 +05:00
9688635f44 Refactor Omada integration: encapsulate API calls in Omada class, update device management tasks, and enhance device creation tests
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 2m12s
2025-06-22 22:55:28 +05:00
3957ca0ea4 Add user verification endpoint and logic; implement check against Person API
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m58s
2025-06-10 16:42:13 +05:00
26d7fb6dd1 Add atoll and island fields to user serializer; implement island and atoll serializers with depth handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m49s
2025-06-09 21:42:10 +05:00
69ab87f502 Add is_admin field to User model and update related serializers and views
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m37s
2025-06-09 13:28:57 +05:00
7e2f6699b1 Refactor imports in admin.py and update MAC address handling in views.py to improve code clarity and error handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m31s
2025-06-08 15:23:18 +05:00
1b58ebd4db Add user existence check before sending verification token in update_alias_verification
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m10s
2025-06-08 14:39:52 +05:00
38d80709db Enhance UserAdmin save logic to auto-generate email from mobile or user ID; improve token creation logging and user existence check
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
2025-06-08 14:32:30 +05:00
4db9d7fabd Refactor device management: add vendor field, enhance admin display, and improve MAC address handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
2025-06-01 19:27:04 +05:00
e1c862184e Log user verification failure message in verify_user_with_person_api_task
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m27s
2025-05-31 19:30:28 +05:00
a05852f3f6 Fix user verification logging to handle None values for atoll and island attributes
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m15s
2025-05-31 19:25:18 +05:00
907b713082 Remove unused imports and clean up OTP message formatting in CreateTemporaryUserView
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m29s
2025-05-31 14:01:56 +05:00
cdd032ac54 Add SMS and Telegram notification functions to handle user verification messages
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m15s
2025-05-31 13:40:29 +05:00
a9e1973f4a Add mib_reference assignment in VerifyPaymentView upon successful payment verification
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m8s
2025-05-31 13:02:10 +05:00
15f885a4cb Refactor payment permissions assignment to include all permissions except delete_payment
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m7s
2025-05-31 12:41:14 +05:00
85ff1fb67f Add mib_reference field to Payment model and set default ordering by created_at
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m58s
2025-05-31 12:01:35 +05:00
f8d6e78f90 Add HTTP status codes to responses in VerifyPaymentView for payment verification
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m49s
2025-05-30 22:56:13 +05:00
09591bf825 Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m47s
2025-05-30 22:36:59 +05:00
5b4d0e6488 Refactor send_otp function to remove unused otp parameter and improve clarity
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m35s
2025-05-30 22:15:14 +05:00
e0dfc28590 Add environment variable checks for OMADA_SITE_ID, OMADA_GROUP_ID, and OMADA_PROXY_URL inside function calls
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m15s
2025-05-30 14:23:41 +05:00
5600a5e8e6 Refactor environment variable loading for OMADA_SITE_ID and OMADA_GROUP_ID to include default values
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m32s
2025-05-30 14:17:39 +05:00
12074c7752 add default values to .env variables for build step
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m35s
2025-05-30 14:14:39 +05:00
cc3d2ab3b7 Remove environment variable check for SMS_API_URL and SMS_API_KEY during initialization
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m46s
2025-05-30 14:07:47 +05:00
20db39ee55 Fix import statement for regex module in MAC address validation
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 2m2s
2025-04-25 15:35:57 +05:00
81f907b7bf Add type hint to __str__ method in TemporaryUser model
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 2m12s
2025-04-25 15:32:19 +05:00
83db42cc60 Refactor and enhance device management and authentication features
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 4m12s
- Updated the `reverse_dhivehi_string` function to correct the range for combining characters.
- Added new device handling in the health check view and integrated the `add_new_devices_to_omada` task.
- Improved date handling in `CreateTemporaryUserView` to ensure proper string conversion.
- Enhanced OTP sending by converting mobile numbers to strings.
- Implemented MAC address validation in the `Device` model using a custom validator.
- Removed unnecessary fields from the `CreateDeviceSerializer`.
- Normalized MAC address format in the `DeviceListCreateAPIView`.
- Updated the `djangopasswordlessknox` package to improve code consistency and readability.
- Added migration to enforce MAC address validation in the database.
2025-04-25 14:37:27 +05:00