Skip to content

Task: Release v2.2.0#68

Merged
jonrandahl merged 4 commits intomainfrom
task/release-v2.1.0
Sep 15, 2025
Merged

Task: Release v2.2.0#68
jonrandahl merged 4 commits intomainfrom
task/release-v2.1.0

Conversation

@jonrandahl
Copy link
Contributor

@jonrandahl jonrandahl commented Sep 15, 2025

This pull request introduces enhancements to the JSON Rails Logger gem, focusing on more robust parsing of status and request types, improved handling of optional data, and better traceability for debugging. The changes also update the gem version to 2.2.0.

Parsing and Data Handling Improvements

  • Improved logic for parsing status messages and request types in json_formatter.rb, including handling cases where log messages have prefixes and ensuring numeric status codes are parsed as integers.
  • Modified the handling of optional log data to skip formatting if required keys are missing, preventing errors when optional information is absent.

Debugging and Traceability

  • Added commented-out debug log statements to key parsing methods for easier tracing during development.

Version and Documentation Updates

  • Updated the gem version to 2.2.0 in version.rb and documented the new features in CHANGELOG.md. [1] [2]

Test Adjustments

  • Adjusted tests to expect numeric status codes (integer) rather than strings, reflecting the improved parsing logic.

- enhance status and request type parsing logic
- add handling to skip formatting when optional data missing
- include checks for log message prefixes
- add debug log statements (commented out) for easier tracing
- Increments the minor version to mark upcoming release
- Prepares for integration of pending updates and fixes
- Document enhanced status and request parsing logic
- Note handling for missing optional data to skip formatting
- Mention checks for log message prefixes
- Indicate addition of (commented out) debug log statements for tracing
- Change expected status from string to integer in test
- Ensure correctness by matching expected data type
@jonrandahl jonrandahl marked this pull request as ready for review September 15, 2025 06:07
@jonrandahl jonrandahl self-assigned this Sep 15, 2025

- Enhanced status and request type parsing logic
- Added handling to skip formatting when optional data missing
- Included checks for log message prefixes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the change log have a link to a gh ticket or is there no project board for this work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DanielCouzens -

Because this gem is used on multiple applications and this update, while initiated via the catalog lift & shift, is not specific to that app and will benefit all applications using the gem.

Once the updated gem has been published I will link to the ticket that prompted the updates in that repo.

Hope that makes sense!

Copy link
Collaborator

@bogdanadrianmarc bogdanadrianmarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good 👍

@jonrandahl jonrandahl merged commit ae316a9 into main Sep 15, 2025
2 checks passed
@jonrandahl jonrandahl deleted the task/release-v2.1.0 branch September 15, 2025 08:10
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.

3 participants