Skip to content

Update to Ruby 3.4 and Rails 7.1#236

Merged
fabionl merged 15 commits into
masterfrom
develop
Sep 14, 2025
Merged

Update to Ruby 3.4 and Rails 7.1#236
fabionl merged 15 commits into
masterfrom
develop

Conversation

@fabionl
Copy link
Copy Markdown
Collaborator

@fabionl fabionl commented Sep 14, 2025

No description provided.

fabionl added 15 commits June 15, 2025 09:14
* Add local port mapping for Postgres and enhance logging in data rake task

* Fix facility suitability migration

(cherry picked from commit e82d4f4)
* Update database configuration to use environment variable for test database URL

* Add VancouverApiClient and supporting classes for Vancouver Open Data API

- Implement VancouverApiClient for interacting with the Vancouver Open Data API.
- Create VancouverApiConfig for configuration management including base URL and timeouts.
- Add FaradayAdapter for HTTP requests with customizable options.
- Implement dataset retrieval methods: get_dataset, get_datasets, get_dataset_records, and get_dataset_record.
- Introduce error handling with custom VancouverApiError class for better error reporting.
- Add comprehensive RSpec tests for client creation, dataset APIs, error handling, and request structure.
- Include shared helpers for mocking responses in tests.

* Fix indentation for form_with in facilities index view

* Refactor services structure for external services.

* Refactor API handling in ToolsController and add External::ApiHelper for better API management

* cleanup

* Refactor FacilityBuilder

* Update facility verification status to true for new imports

* Add external_id field to Facility model and update FacilityBuilder to assign it

* Refactor FacilityBuilder to streamline facility data extraction and ensure verified status is set to true

* Fix facility building spec

* Refactor FacilityBuilder geometry validation and update specs to check external_id assignment

* Rename LIMIT to PAGE_SIZE for consistency in Syncer class and update related logging and API call references

* Add integration and unit tests for Vancouver City FacilitySyncer

- Implement integration scenarios for comprehensive and minimal facility data.
- Add edge case tests for special characters and edge coordinates.
- Simulate concurrent operations and verify data consistency.
- Create internal update operation tests to handle service synchronization.
- Introduce operation detection tests to determine create, external_update, and internal_update operations.
- Ensure result structure compliance with ApplicationService::Result.
- Validate service synchronization logic for adding and maintaining services.
- Handle edge cases for service creation and duplication gracefully.

* Refactor ResultData structure in FacilityBuilder and FacilitySyncer for consistency and update related specs

* Add progress indicator and loading state for facility import form

* Add service key mapping and update related specs for Vancouver City API integration

* Add API key validation and remove redundant tests in FacilityServiceBuilder and FacilitySyncer

* Update service parameter naming in facilities index

* Fix redirect path for successful facility import in ToolsController

* Fix FacilitySyncer specs
* Remove deprecated version from docker-compose

* Fix crash when attempting to bundle install

* Upgrade Rails to 7.1.0 and update related dependencies; enhance development and production configurations.

* Refactor Postgres connection handling in Docker setup; use environment variables for host and port

* Enhance test script to conditionally run all tests or specific rspec tests based on arguments

* Remove version declaration from CI Docker Compose file

* Add --remove-orphans flag to docker-compose test commands for improved cleanup

* Update docker commands to include project name for consistency across scripts

* Refactor setup script to improve error handling and formatting consistency

* Fix facilities fake data generation

* Update application configuration to disable autoloaded paths in load path and set default headers

* Fix migrations (#219)

* Add local port mapping for Postgres and enhance logging in data rake task

* Fix facility suitability migration

* Fix migration to use MigrationFacility class for updating welcomes

* Fix migration to use MigrationFacility class for updating zone references

* Fix migration to use MigrationFacility class for importing facility schedules

* Finish going through each new_framework_defaults initializer

* Finish upgrading to Rails 7.1

* Fix deprecation warnings

* Fix bug on WelcomesIconComponent when welcomes is not supported, and add specs for the component
* Update to ruby 3.3

* Update ruby version of github workflows
* master:
  Deploy Vancouver City APIs integration (#222)
  Fix migrations (#219)
Comment thread Gemfile.lock
activesupport (= 7.0.8.4)
rackup (2.2.1)
rack (>= 3)
rails (7.1.5.2)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[brakeman] reported by reviewdog 🐶
Unmaintained Dependency General Support for Rails 7.1.5.2 ends on 2025-10-01 near line 308 Medium

@fabionl fabionl merged commit 4653937 into master Sep 14, 2025
2 checks passed
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