feat: add IpAdressMetadata model and factory with migration
- Feb 19, 2025
-
-
Sofiane Lasri authored
-
Sofiane Lasri authored
# Conflicts: # composer.lock
-
Sofiane Lasri authored
-
Sofiane Lasri authored
-
Sofiane Lasri authored
- Simplified the HTTP request in `IpAddressMetadataResolverService.php` by removing unnecessary array wrapping. - Updated the join in `HomeController.php` to include `ip_address_metadata` for more accurate data retrieval. - Changed the frequency of the `process:ip-adresses` command in `console.php` to run every five minutes instead of hourly.
-
Sofiane Lasri authored
-
Sofiane Lasri authored
- Renamed test files in the `tests/Feature/Console/Command` directory to `tests/Feature/Console/Commands`. - Updated namespaces in the renamed test files to reflect the new directory structure. - Added a new test file `ProcessIpAddressesJobTest.php` to test the `ProcessIpAddressesJob` functionality.
-
Sofiane Lasri authored
- Implemented `IpAddressMetadataResolverService` to resolve metadata for IP addresses, including rate limiting and error handling. - Added console command `ProcessIpAdressesCommand` to process IP addresses and dispatch jobs. - Created `ProcessIpAddressesJob` to handle the resolution of IP address metadata asynchronously. - Added feature tests for the new service and commands. - Updated environment configuration for IP address resolver settings.
-
Sofiane Lasri authored
-
Sofiane Lasri authored
- Created the IpAdressMetadata model with fillable fields and a relationship to the IpAddress model. - Implemented a factory for generating fake IpAdressMetadata data. - Added a migration for creating the ip_adress_metadata table with necessary fields and constraints.
-