Skip to content

Enhance ApiConfig, update getEnvironment method, adjust logging levels, and update documentation#4

Merged
gibiw merged 3 commits intomainfrom
release/2.0.1
Feb 6, 2025
Merged

Enhance ApiConfig, update getEnvironment method, adjust logging levels, and update documentation#4
gibiw merged 3 commits intomainfrom
release/2.0.1

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Feb 6, 2025

This pull request includes several changes to improve the functionality and maintainability of the codebase. The most important changes include modifications to the ApiConfig class to implement JsonSerializable, updates to the getEnvironment method to use the correct API response structure, and adjustments to logging levels in the ConfigLoader class.

Improvements to ApiConfig class:

Updates to API client:

  • src/Client/ApiClientV1.php: Modified the getEnvironment method to use getEntities instead of getResult for iterating through environments and to compare envName with getSlug instead of getName.

Logging adjustments:

Documentation update:

  • README.md: Updated the description for the environment configuration option to specify "Environment slug" instead of "Environment".

Version bump:

gibiw added 3 commits February 6, 2025 12:08
- Hidden part of the token in logs to improve security.
- Changed logging level for config from info to debug.
- Fixed the issue with retrieving the environment.
- Updated logic to correctly fetch the environment settings.
@gibiw gibiw merged commit e521daf into main Feb 6, 2025
10 checks passed
@gibiw gibiw deleted the release/2.0.1 branch February 6, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant