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

Spike: Resolve updated package requirements #479

Merged
merged 21 commits into from
Feb 19, 2025

Conversation

jonrandahl
Copy link
Contributor

@jonrandahl jonrandahl commented Feb 17, 2025

This PR primarily contains a regenerated Gemfile.lock to ensure compatibility with the latest Data Services API Gem.

This also bumped major versions for several gems, including actioncable, actionmailbox, and rails to v8.0.1

Other minor updates include improvements in various libraries like nokogiri and rubocop.

Additional changes

  • Added deprecation warning for to_time behaviour change
  • Set to_time_preserves_timezone to preserve system timezone
  • applied recommended linting corrections from Rubocop

Regenerated Gemfile.lock to ensure compatibility with the latest Data Services API Gem. This also bumped major versions for several gems, including actioncable, actionmailbox, and rails. Other minor updates include improvements in various libraries like nokogiri and rubocop.
- Added deprecation warning for `to_time` behaviour change
- Set `to_time_preserves_timezone` to preserve system timezone
Switched the logo link to use `link_to` for better readability and maintainability. This change also ensures that the path is generated correctly with the current locale.
Switched from `require: rubocop-rails` to `plugins: rubocop-rails` in the configuration. This aligns with the latest extension support.
- Changed flash message to use `flash.now` for immediate display.
- Updated several methods to simplify block passing syntax.
- Replaced `puts` with `Rails.logger.debug` for better logging practices.
- Cleaned up some method definitions by removing unnecessary comments and rubocop directives.
- Adjusted environment configurations for improved clarity.
Updated the constant initialization to avoid warnings. Changed from a conditional assignment to a direct assignment for better clarity and performance.
- Added comments to disable RuboCop metrics warnings
- Cleaned up module and class definitions for clarity
- Improved method organization in presenters
Cleaned up the code by removing the 'set' library import since it wasn't being used. This helps keep things tidy and improves readability.
- Added a deprecation warning for `to_time` behavior change
- Set `to_time_preserves_timezone` to preserve system timezone
- Applied recommended linting corrections from Rubocop
@jonrandahl jonrandahl self-assigned this Feb 18, 2025
@jonrandahl jonrandahl marked this pull request as ready for review February 18, 2025 10:00
- Updated test classes to use consistent formatting.
- Replaced `I18n.locale` with `I18n.with_locale` for better context handling.
- Cleaned up commented-out test methods across various test files.
- Added documentation comments where necessary for clarity.
Copy link
Contributor

@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.

LGTM!

- Added a raise statement after logging date parse errors
- Ensures that the error propagates up for better handling
- Changed instance variable assignment to use ||= for params
- Updated class comment to disable a style check for length
- No functional changes, just cleaning up the code a bit
- Made json initialization more robust
- Added rubocop disables for method complexity warnings
- Cleaned up task descriptions for better readability
- Added I18n support
- Updated test cases to check for invalid date formats
- Changed 'from' and 'to' date values in tests to reflect invalid scenarios
- Changed how test files are identified.
- Simplified the command to run tests using `make`.
- Removed system test execution from the hook.
- Improved feedback on push failure due to failing tests.
- Replaced 'capybara_minitest_spec' with 'capybara'
- Added 'minitest-rails-capybara' for enhanced testing
- Updated Gemfile.lock to reflect these changes
Improve error handling and testing setup:
- Added error raising for date parsing failures, logging errors.
- Updated the test suite to follow rubocop linting suggestions.
- Simplified pre-push githook to run a single `make test` command.
- Included deprecation warning for `to_time` behavior change.
Replaced Rails logger debug statements with puts for better visibility in development. This affects various commands and setup scripts, ensuring that important messages are printed directly to the console instead of being logged.
Updated the patch version from 1 to 2 for this set of changes.
- Updated version number in changelog to reflect latest changes in appropriate section
- Added error handling for date parsing failures
- Improved test suite with rubocop suggestions
- Simplified pre-push githook to use a single command
- Changed time measurement from microseconds to milliseconds
- Removed duplicate gem entry
- Updated rails gem and dependencies to v8.0.1
- Added dynamic `LOG_LEVEL` environment variable
- Enhanced Sentry logging for Rails and VUE/JS
Copy link
Contributor

@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.

Looks good!

@jonrandahl jonrandahl merged commit 8ab917b into dev Feb 19, 2025
2 checks passed
@jonrandahl jonrandahl deleted the spike/resolve-updated-package-requirements branch February 19, 2025 10:31
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.

2 participants