Skip to content
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

Feature/update file structure to match other sdks #51

Merged
merged 17 commits into from
May 6, 2024

Commits on May 2, 2024

  1. Update import and rename constants file

    The import statement in mqtt.py was updated to reference the correct file for SYNC and ASYNC constants. Additionally, the constants.py file was renamed to mqtt_connection_mode.py, providing a more accurate description of its content.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    6e6f756 View commit details
    Browse the repository at this point in the history
  2. Refactor certificate creation to CertificationService class

    The certificate creation code has been encapsulated into a new class, CertificationService. This allows for a more organized codebase, increasing the readability and maintainability of the code. This change impacts the methods in the http.py and mqtt.py files where the create_certificate_file_from_pen function call is replaced by CertificationService.create_certificate_file_from_pen.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    cb7b29e View commit details
    Browse the repository at this point in the history
  3. Refactor decoding methods into DecodingService class

    Moved `decode_response`, `read_properties_buffers_from_input_stream` methods into a new DecodingService class as static methods. Updated all their usages across the codebase to reflect this change. This consolidation streamlines code organization and enhances readability.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    93d16c7 View commit details
    Browse the repository at this point in the history
  4. Refactor decoding functions into DecodingService class

    The decoding functions `decode_response` and `decode_details` have been refactored into static methods in the `DecodingService` class in `src/agrirouter/messaging/decode.py`. The changes also involved updating the relative imports in test files and other modules that were previously using these standalone functions.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    3667358 View commit details
    Browse the repository at this point in the history
  5. Refactor encoding functions into EncodingService class

    The encoding functions previously contained within the file `encode.py` are refactored into a new class called `EncodingService`. This improves the organization of the code and makes it easier to manage and understand. All corresponding tests and imports have been updated to use this new class.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    e15a9b6 View commit details
    Browse the repository at this point in the history
  6. Refactor encoding functions into EncodingService class

    The standalone encode and write_proto_parts_to_buffer functions have been refactored into a static methods inside the newly created EncodingService class. All instances where these functions were called have been updated to use this new class method. This enhances the code structure and makes it more organized.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    721d9ea View commit details
    Browse the repository at this point in the history
  7. Moved CertificateTypes and Gateways enum to api.enums

    The enum classes, CertificateTypes and Gateways, previously located under onboarding.enums, have been moved to api.enums. The import statements in the impacted files have been adjusted accordingly. This ensures a more logical arrangement of the enum information and simplifies future maintenance.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    ca93168 View commit details
    Browse the repository at this point in the history
  8. Refactor signature handling into SignatureService class

    The handling of signature creation and verification has been refactored into a new SignatureService class. This change has improved modularity and allowed signature-related functions to be called directly from the service. This commit involves changes to the agrirouter.onboarding, agrirouter.auth, and agrirouter.revoking modules, plus updates to relevant tests.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    f504f7f View commit details
    Browse the repository at this point in the history
  9. Refactored utc_time_util to a class structure

    The utc_time_util functions have been adjusted into a class structure for improved organization and code readability. This also involves changes to the function calls in several source files where these functions were used.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    caf9202 View commit details
    Browse the repository at this point in the history
  10. Refactor uuid utility to a class-based implementation

    The refactor includes changing the direct function calls of 'new_uuid()' to the class-based static method 'UUIDUtil.new_uuid()'. These changes impact multiple files across the application, improving the overall structure following the object-oriented programming paradigm.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    87594bb View commit details
    Browse the repository at this point in the history
  11. Refactor environment handling and file structure

    The 'environments.py' file was renamed to 'env.py' and EnvironmentService class is now inside 'api/env.py'. References to the old file structure were updated accordingly across multiple modules to ensure correct importing. The 'environmental_services.py' was deleted after moving its content to 'env.py'.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    d9c66c3 View commit details
    Browse the repository at this point in the history
  12. Refactor constants and keys management in agrirouter API

    This commit consolidates the handling of constants and keys within the agrirouter API. The 'mqtt_connection_mode.py' file has been deleted, and its ASYNC/SYNC constants moved into the '#constants.py' file. References to these keys and constants across the API have been updated to reflect the changes.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    26a3f7d View commit details
    Browse the repository at this point in the history
  13. Refactored package structure and rearranged onboarding and messaging …

    …components.
    
    The package structure has been rearranged to improve code organization. The agrirouter 'onboarding' and 'messaging' modules were moved into a new 'service' module. As part of this reorganization, various code files were renamed and moved to new locations. This refactoring enhances the structure of the code and makes it easier to navigate and maintain. The naming and organization of components are now more logical, reflecting their associated responsibilities.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    ef38123 View commit details
    Browse the repository at this point in the history
  14. Update efdi_pb2.py in agrirouter messaging

    The protobuf file for agrirouter messaging, efdi_pb2.py, has been updated by removing unnecessary white spaces and a few unused import statements. File descriptor parameters have also been revised to enhance the efficiency and readability of the code.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    c2d7e1e View commit details
    Browse the repository at this point in the history
  15. Refactor import statements across multiple modules

    The import statements in several modules have been refactored for better organization and clarity. Reorganization ensures relevant modules/classes are logically grouped together, improving code readability and maintainability.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    7251045 View commit details
    Browse the repository at this point in the history
  16. Refactor import order in test modules

    Cleaned up the order of imports in various test modules. This process specifically prioritizes standard library imports, followed by related third party imports, and local application/library specific imports.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    0263758 View commit details
    Browse the repository at this point in the history
  17. Refactor messaging services and minor changes in file structures

    Made several changes in messaging services including restructuring and moving certain classes to align with design patterns. Also made minor changes and updates in file structures of various test scripts and source files. Improved unified decoding strategy with EncodingService class.
    saschadoemer committed May 2, 2024
    Configuration menu
    Copy the full SHA
    dadbcb1 View commit details
    Browse the repository at this point in the history