Merged
Conversation
…mer-analytics endpoints
…r-analytics endpoints
There was a problem hiding this comment.
Pull Request Overview
This PR introduces extensive testing for analytics services and controllers, and updates repository interfaces for consistency.
- Added unit tests for inventory and customer analytics services
- Added integration tests for inventory and customer reporting controllers
- Updated repository signatures: changed
ProductSnapshotID type and modified the join strategy in the top spenders query
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/test/java/com/Podzilla/analytics/services/InventoryReportServiceTest.java | Added unit tests for InventoryAnalyticsService |
| src/test/java/com/Podzilla/analytics/services/CustomerReportServiceTest.java | Added unit tests for CustomerAnalyticsService |
| src/test/java/com/Podzilla/analytics/controllers/InventoryReportControllerTest.java | Added integration tests for inventory REST endpoints |
| src/test/java/com/Podzilla/analytics/controllers/CustomerReportControllerTest.java | Added integration tests for customer REST endpoints |
| src/main/java/com/Podzilla/analytics/repositories/ProductSnapshotRepository.java | Updated JpaRepository ID type from Long to UUID |
| src/main/java/com/Podzilla/analytics/repositories/CustomerRepository.java | Changed order join from LEFT JOIN to INNER JOIN in top spenders query |
Comments suppressed due to low confidence (2)
src/test/java/com/Podzilla/analytics/services/InventoryReportServiceTest.java:31
- [nitpick] The test class and file name reference InventoryReportServiceTest, but it tests InventoryAnalyticsService; consider renaming both the file and class to InventoryAnalyticsServiceTest for consistency.
public class InventoryReportServiceTest {
src/test/java/com/Podzilla/analytics/services/CustomerReportServiceTest.java:32
- [nitpick] The test class and file name reference CustomerReportServiceTest, but it tests CustomerAnalyticsService; consider renaming both the file and class to CustomerAnalyticsServiceTest for consistency.
public class CustomerReportServiceTest {
| @Query("SELECT c.id AS customerId, c.name AS customerName, " | ||
| + "COALESCE(SUM(o.totalAmount), 0) AS totalSpending " | ||
| + "FROM Customer c " | ||
| + "INNER JOIN c.orders o " |
There was a problem hiding this comment.
The custom query for top spenders lacks an ORDER BY clause, which can lead to nondeterministic result ordering; add ORDER BY COALESCE(SUM(o.totalAmount), 0) DESC to ensure consistent sorting by total spending.
Mohamed-Khaled308
approved these changes
May 19, 2025
Mohamed-Khaled308
added a commit
that referenced
this pull request
May 21, 2025
* Setup (#1) * chore: setup & eventhandler * chore: setup & eventhandler * chore: models * chore(setup):docker * chore: show empty folders * chore: create base structure for models, services, repositories, and controllers (#2) * Courier analytics endpoints (#7) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * feat: added courier analytics endpoints * refactor: add parameter names to @RequestParam * refactor: restructure code with projections, updated service logic * Fix docker and docker compose files (#3) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * fix: correct endpoint paths --------- Co-authored-by: Abdulrahman Fahmy <abdulrhmanabotor@gmail.com> * chore: add workflow setup (#12) * chore: add swagger api docs (#14) * chore: add global exception handler (#13) * feat: add DateRangeRequest DTO with cross-field validation (#11) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * feat: added courier analytics endpoints * refactor: add parameter names to @RequestParam * refactor: restructure code with projections, updated service logic * feat: add DateRangeRequest DTO with cross-field validation * chore: add swagger api docs * chore: add swagger docs for courier endpoints * chore: fix code style issues (#17) * chore: fix code style issues * fix: uncommented and restored SQL query in CourierRepository * fix: remove final from run method in datasbase seeder * feat: added order reports (#15) * feat: added order reports * fix: fix lint issues * fix: fix order linter errors * fix: fix lint issues * fix: fix lint issues remaining some problematic issues * fix: fix lint issues * refactor: adhering to conventions * feat: add customer and inventory services (#9) * feat: add customer and inventory endpoints - /customers/top-spenders for customer spending analysis - /inventory/low-stock for threshold monitoring - /inventory/value/by-category for category-wise valuation * feat: add validation on the dtos featL add swagger docs * fix: check style * Feature/fulfillment reports (#18) * feat: Implement fulfillment time reports API * fix: Resolve lint errors * Fix: FulfillmentAnalyticsService and repository integration * refactor: update FulfillmentReportController to use FulfillmentRequestDTO and improve error handling for groupBy values * refactor: created seperate request dtos for fulfillment endpoints --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * chore: rename dockerfile to Dockerfile for case consistency (#21) * feat: add integration with the shared library and rabbit mq (#19) * chore: rename API endpoints (#22) * Group1 (#10) * chore: setup & eventhandler * chore: setup & eventhandler * chore: models * chore(setup):docker * feat: revenue summary * feat: revenue/by-category & products/top-sellers * fix: naming convention fix and validation util * chore: pom.xml * chore: merge with dev * test: getTopSellers, getRevenueSummary, getRevenueByCategory * tests(RevenueReportServiceIntegrationTest): integration test * tests(RevenueReportServiceIntegrationTest): integration test * tests(ProductAnalyticsServiceIntegrationTest): still 3 fails * tests(ProductAnalyticsServiceIntegrationTest): all pass * fix: dtos validation and docs * fix: remove shema.sql * fix: sql query error in findRevenueSummary * fix: use dto in ProductReportController * style: clean up code formatting and remove redundant comments - Remove trailing whitespace and ensure consistent newline endings - Remove redundant comments in RevenueSummaryRequest and ErrorResponse * Update pom.xml * Update pom.xml * refactor: clean up code formatting and remove unused files Removed unused repositories, models, and utility files. Cleaned up code formatting in multiple files, including fixing indentation, removing redundant imports, and ensuring consistent spacing. Commented out test file for future reference. These changes improve code maintainability and readability without altering functionality. * style: fix char count Adjust indentation in RevenueReportService and OrderRepository to maintain consistent code style * style(repository): standardize SQL keyword case in OrderRepository Ensure consistent use of uppercase for SQL keywords (e.g., SELECT, FROM, WHERE) to improve code readability and maintainability. * refactor(repositories): convert multi-line SQL queries to single-line format * chore: apply @ValidDateRange and pass attributes directly to service * chore: clean up and deduplicate Maven dependencies --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * test: add unit and integration tests for courier analytics (#20) * test: add unit and integration tests for courier analytics * test: Configure in-memory H2 for integration tests * chore: merge latest changes from dev branch * feat: Implement profit by category report endpoint (#8) * feat: Implement profit by category report endpoint * refactor: Update controller annotations and enhance Order model with JPA annotations * refactor: update imports for consistency * refactor: update ProfitReportController to use ProfitByCategory with DateRangeRequest * refactor: enhance FulfillmentReportController with improved error handling and validation for request parameters * refactor: enhance ProfitReportController with request validation and error handling for profit data retrieval and add integration tests * refactor: simplify FulfillmentReportController and ProfitReportController by removing redundant error handling and enhancing request validation * chore: add H2 database dependency for testing and refactor FulfillmentReportControllerTest and ProfitReportControllerTest to use TestRestTemplate for HTTP requests --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * Communication design patterns (#23) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * feat: added order placed event * feat: added update order events --------- Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * fix: fix rabbit issue (#25) * Fix revenue (#26) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * feat: added order placed event * fix: use Local date time instead of local date in revenue queries --------- Co-authored-by: AhmadHoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> * Fix fix (#27) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * chore: add logging for controller and services * fix: fix some queries --------- Co-authored-by: AhmadHoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> * chore: update podzilla-utils-lib version to v1.1.13 (#28) * Inventory customers tests (#29) * test: create the controller tests for the inventory-analytics & customer-analytics endpoints * test: create the services tests for the inventory-analytics & customer-analytics endpoints * fix: lint * fix: query syntax * Feat cron jobs (#30) * feat: add the cron jobs to remove the orders monthly * feat: add the cron jobs to remove the orders monthly * fix: hot fix * dummmy commit --------- Co-authored-by: Abdulrahman Fahmy <abdulrhmanabotor@gmail.com> Co-authored-by: Ahmad Hoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Malek Mohamed Noureldean Elkssas <87043730+malekelkssas@users.noreply.github.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> Co-authored-by: Nour Eldien Ayman <49641430+NourAlPha@users.noreply.github.com>
Mohamed-Khaled308
added a commit
that referenced
this pull request
May 21, 2025
* Setup (#1) * chore: setup & eventhandler * chore: setup & eventhandler * chore: models * chore(setup):docker * chore: show empty folders * chore: create base structure for models, services, repositories, and controllers (#2) * Courier analytics endpoints (#7) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * feat: added courier analytics endpoints * refactor: add parameter names to @RequestParam * refactor: restructure code with projections, updated service logic * Fix docker and docker compose files (#3) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * fix: correct endpoint paths --------- Co-authored-by: Abdulrahman Fahmy <abdulrhmanabotor@gmail.com> * chore: add workflow setup (#12) * chore: add swagger api docs (#14) * chore: add global exception handler (#13) * feat: add DateRangeRequest DTO with cross-field validation (#11) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * feat: added courier analytics endpoints * refactor: add parameter names to @RequestParam * refactor: restructure code with projections, updated service logic * feat: add DateRangeRequest DTO with cross-field validation * chore: add swagger api docs * chore: add swagger docs for courier endpoints * chore: fix code style issues (#17) * chore: fix code style issues * fix: uncommented and restored SQL query in CourierRepository * fix: remove final from run method in datasbase seeder * feat: added order reports (#15) * feat: added order reports * fix: fix lint issues * fix: fix order linter errors * fix: fix lint issues * fix: fix lint issues remaining some problematic issues * fix: fix lint issues * refactor: adhering to conventions * feat: add customer and inventory services (#9) * feat: add customer and inventory endpoints - /customers/top-spenders for customer spending analysis - /inventory/low-stock for threshold monitoring - /inventory/value/by-category for category-wise valuation * feat: add validation on the dtos featL add swagger docs * fix: check style * Feature/fulfillment reports (#18) * feat: Implement fulfillment time reports API * fix: Resolve lint errors * Fix: FulfillmentAnalyticsService and repository integration * refactor: update FulfillmentReportController to use FulfillmentRequestDTO and improve error handling for groupBy values * refactor: created seperate request dtos for fulfillment endpoints --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * chore: rename dockerfile to Dockerfile for case consistency (#21) * feat: add integration with the shared library and rabbit mq (#19) * chore: rename API endpoints (#22) * Group1 (#10) * chore: setup & eventhandler * chore: setup & eventhandler * chore: models * chore(setup):docker * feat: revenue summary * feat: revenue/by-category & products/top-sellers * fix: naming convention fix and validation util * chore: pom.xml * chore: merge with dev * test: getTopSellers, getRevenueSummary, getRevenueByCategory * tests(RevenueReportServiceIntegrationTest): integration test * tests(RevenueReportServiceIntegrationTest): integration test * tests(ProductAnalyticsServiceIntegrationTest): still 3 fails * tests(ProductAnalyticsServiceIntegrationTest): all pass * fix: dtos validation and docs * fix: remove shema.sql * fix: sql query error in findRevenueSummary * fix: use dto in ProductReportController * style: clean up code formatting and remove redundant comments - Remove trailing whitespace and ensure consistent newline endings - Remove redundant comments in RevenueSummaryRequest and ErrorResponse * Update pom.xml * Update pom.xml * refactor: clean up code formatting and remove unused files Removed unused repositories, models, and utility files. Cleaned up code formatting in multiple files, including fixing indentation, removing redundant imports, and ensuring consistent spacing. Commented out test file for future reference. These changes improve code maintainability and readability without altering functionality. * style: fix char count Adjust indentation in RevenueReportService and OrderRepository to maintain consistent code style * style(repository): standardize SQL keyword case in OrderRepository Ensure consistent use of uppercase for SQL keywords (e.g., SELECT, FROM, WHERE) to improve code readability and maintainability. * refactor(repositories): convert multi-line SQL queries to single-line format * chore: apply @ValidDateRange and pass attributes directly to service * chore: clean up and deduplicate Maven dependencies --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * test: add unit and integration tests for courier analytics (#20) * test: add unit and integration tests for courier analytics * test: Configure in-memory H2 for integration tests * chore: merge latest changes from dev branch * feat: Implement profit by category report endpoint (#8) * feat: Implement profit by category report endpoint * refactor: Update controller annotations and enhance Order model with JPA annotations * refactor: update imports for consistency * refactor: update ProfitReportController to use ProfitByCategory with DateRangeRequest * refactor: enhance FulfillmentReportController with improved error handling and validation for request parameters * refactor: enhance ProfitReportController with request validation and error handling for profit data retrieval and add integration tests * refactor: simplify FulfillmentReportController and ProfitReportController by removing redundant error handling and enhancing request validation * chore: add H2 database dependency for testing and refactor FulfillmentReportControllerTest and ProfitReportControllerTest to use TestRestTemplate for HTTP requests --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * Communication design patterns (#23) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * feat: added order placed event * feat: added update order events --------- Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * fix: fix rabbit issue (#25) * Fix revenue (#26) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * feat: added order placed event * fix: use Local date time instead of local date in revenue queries --------- Co-authored-by: AhmadHoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> * Fix fix (#27) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * chore: add logging for controller and services * fix: fix some queries --------- Co-authored-by: AhmadHoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> * chore: update podzilla-utils-lib version to v1.1.13 (#28) * Inventory customers tests (#29) * test: create the controller tests for the inventory-analytics & customer-analytics endpoints * test: create the services tests for the inventory-analytics & customer-analytics endpoints * fix: lint * fix: query syntax * Feat cron jobs (#30) * feat: add the cron jobs to remove the orders monthly * feat: add the cron jobs to remove the orders monthly * fix: hot fix * dummmy commit * dummmy commit 2 --------- Co-authored-by: Abdulrahman Fahmy <abdulrhmanabotor@gmail.com> Co-authored-by: Ahmad Hoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Malek Mohamed Noureldean Elkssas <87043730+malekelkssas@users.noreply.github.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> Co-authored-by: Nour Eldien Ayman <49641430+NourAlPha@users.noreply.github.com>
Mohamed-Khaled308
added a commit
that referenced
this pull request
May 21, 2025
* Setup (#1) * chore: setup & eventhandler * chore: setup & eventhandler * chore: models * chore(setup):docker * chore: show empty folders * chore: create base structure for models, services, repositories, and controllers (#2) * Courier analytics endpoints (#7) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * feat: added courier analytics endpoints * refactor: add parameter names to @RequestParam * refactor: restructure code with projections, updated service logic * Fix docker and docker compose files (#3) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * fix: correct endpoint paths --------- Co-authored-by: Abdulrahman Fahmy <abdulrhmanabotor@gmail.com> * chore: add workflow setup (#12) * chore: add swagger api docs (#14) * chore: add global exception handler (#13) * feat: add DateRangeRequest DTO with cross-field validation (#11) * chore: create base structure for models, services, repositories, and controllers * chore: fix docker and docker compose files * feat: added courier analytics endpoints * refactor: add parameter names to @RequestParam * refactor: restructure code with projections, updated service logic * feat: add DateRangeRequest DTO with cross-field validation * chore: add swagger api docs * chore: add swagger docs for courier endpoints * chore: fix code style issues (#17) * chore: fix code style issues * fix: uncommented and restored SQL query in CourierRepository * fix: remove final from run method in datasbase seeder * feat: added order reports (#15) * feat: added order reports * fix: fix lint issues * fix: fix order linter errors * fix: fix lint issues * fix: fix lint issues remaining some problematic issues * fix: fix lint issues * refactor: adhering to conventions * feat: add customer and inventory services (#9) * feat: add customer and inventory endpoints - /customers/top-spenders for customer spending analysis - /inventory/low-stock for threshold monitoring - /inventory/value/by-category for category-wise valuation * feat: add validation on the dtos featL add swagger docs * fix: check style * Feature/fulfillment reports (#18) * feat: Implement fulfillment time reports API * fix: Resolve lint errors * Fix: FulfillmentAnalyticsService and repository integration * refactor: update FulfillmentReportController to use FulfillmentRequestDTO and improve error handling for groupBy values * refactor: created seperate request dtos for fulfillment endpoints --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * chore: rename dockerfile to Dockerfile for case consistency (#21) * feat: add integration with the shared library and rabbit mq (#19) * chore: rename API endpoints (#22) * Group1 (#10) * chore: setup & eventhandler * chore: setup & eventhandler * chore: models * chore(setup):docker * feat: revenue summary * feat: revenue/by-category & products/top-sellers * fix: naming convention fix and validation util * chore: pom.xml * chore: merge with dev * test: getTopSellers, getRevenueSummary, getRevenueByCategory * tests(RevenueReportServiceIntegrationTest): integration test * tests(RevenueReportServiceIntegrationTest): integration test * tests(ProductAnalyticsServiceIntegrationTest): still 3 fails * tests(ProductAnalyticsServiceIntegrationTest): all pass * fix: dtos validation and docs * fix: remove shema.sql * fix: sql query error in findRevenueSummary * fix: use dto in ProductReportController * style: clean up code formatting and remove redundant comments - Remove trailing whitespace and ensure consistent newline endings - Remove redundant comments in RevenueSummaryRequest and ErrorResponse * Update pom.xml * Update pom.xml * refactor: clean up code formatting and remove unused files Removed unused repositories, models, and utility files. Cleaned up code formatting in multiple files, including fixing indentation, removing redundant imports, and ensuring consistent spacing. Commented out test file for future reference. These changes improve code maintainability and readability without altering functionality. * style: fix char count Adjust indentation in RevenueReportService and OrderRepository to maintain consistent code style * style(repository): standardize SQL keyword case in OrderRepository Ensure consistent use of uppercase for SQL keywords (e.g., SELECT, FROM, WHERE) to improve code readability and maintainability. * refactor(repositories): convert multi-line SQL queries to single-line format * chore: apply @ValidDateRange and pass attributes directly to service * chore: clean up and deduplicate Maven dependencies --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * test: add unit and integration tests for courier analytics (#20) * test: add unit and integration tests for courier analytics * test: Configure in-memory H2 for integration tests * chore: merge latest changes from dev branch * feat: Implement profit by category report endpoint (#8) * feat: Implement profit by category report endpoint * refactor: Update controller annotations and enhance Order model with JPA annotations * refactor: update imports for consistency * refactor: update ProfitReportController to use ProfitByCategory with DateRangeRequest * refactor: enhance FulfillmentReportController with improved error handling and validation for request parameters * refactor: enhance ProfitReportController with request validation and error handling for profit data retrieval and add integration tests * refactor: simplify FulfillmentReportController and ProfitReportController by removing redundant error handling and enhancing request validation * chore: add H2 database dependency for testing and refactor FulfillmentReportControllerTest and ProfitReportControllerTest to use TestRestTemplate for HTTP requests --------- Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * Communication design patterns (#23) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * feat: added order placed event * feat: added update order events --------- Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> Co-authored-by: Mohamed <mohamedkhaled3082@gmail.com> * fix: fix rabbit issue (#25) * Fix revenue (#26) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * feat: added order placed event * fix: use Local date time instead of local date in revenue queries --------- Co-authored-by: AhmadHoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> * Fix fix (#27) * refactor: added manual builder Required * added builder manually to all models Required * feat: added configuration for rabbit listeners employed command design pattern * refactor: changes ids from long to uuid added first command, fixed validation issues, and tests need fixing * feat: added listeners for users and inventory events * refactor: update entity IDs to UUID and enhance database seeding * WIP: Save progress before merge * fix: fix lint issue * chore: add logging for controller and services * fix: fix some queries --------- Co-authored-by: AhmadHoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> * chore: update podzilla-utils-lib version to v1.1.13 (#28) * Inventory customers tests (#29) * test: create the controller tests for the inventory-analytics & customer-analytics endpoints * test: create the services tests for the inventory-analytics & customer-analytics endpoints * fix: lint * fix: query syntax * Feat cron jobs (#30) * feat: add the cron jobs to remove the orders monthly * feat: add the cron jobs to remove the orders monthly * fix: hot fix * dummmy commit * dummmy commit 2 --------- Co-authored-by: Abdulrahman Fahmy <abdulrhmanabotor@gmail.com> Co-authored-by: Ahmad Hoseiny <ahmadshahhat9898@gmail.com> Co-authored-by: Malek Mohamed Noureldean Elkssas <87043730+malekelkssas@users.noreply.github.com> Co-authored-by: Mohamed Hassan <mohamedhassan2082002@hotmail.com> Co-authored-by: Nour Eldien Ayman <49641430+NourAlPha@users.noreply.github.com>
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
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.
No description provided.