Repository navigation
Conversation
The subscriptions API index rendered subscriptions without their target, while the show response and the OpenAPI schema (Subscription requires target) include it. openapi_parser 2.7.0 now validates array items, so the API reference spec started failing. Render index subscriptions with the same include and methods options as show.
Dynamoid models store polymorphic associations as composite keys such as target_key, so REST API responses lacked target_type, target_id, notifiable_type and notifiable_id, which the OpenAPI schema requires. openapi_parser 2.7.0 now reports this, and the API reference specs failed on every Dynamoid matrix. Add the association type and id readers to the notification and subscription JSON methods with Dynamoid.
ruby/setup-ruby provides builds for ubuntu-26.04 (now ubuntu-latest) only for the latest patch release of each Ruby minor version, so jobs with pinned patch versions failed at Set up Ruby. Specify minor versions so CI tests the latest patch releases.
With AN_TEST_DB=mongodb, target models are Mongoid documents, so no spec reached the find_each branch of process_targets_in_batches and line coverage of the job was 99.85%. Add a spec with a targets collection responding to find_each.
Set SimpleCov minimum_coverage to 100 on CI, so each job of the matrix fails when its line coverage drops below 100%.
The Coveralls GitHub Action read SimpleCov's .resultset.json, which keeps :nocov: lines, so Coveralls showed 99.74% while every job had 100% line coverage. coveralls_reborn could not submit either (Couldn't find a repository matching this job). Replace coveralls_reborn with simplecov-lcov, upload the LCOV report, and send the matrix jobs as one parallel Coveralls build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes for 2.7.3.
targetin each subscription of the subscriptions APIindexresponse, as theshowresponse and the API reference schema do.config.restrict_api_response_fieldsalso applies to it.target_type,target_id,notifiable_type,notifiable_idand the other polymorphic association types and ids to REST API responses with Dynamoid ORM, as with ActiveRecord and Mongoid ORMs and the API reference schema.'3.4').ubuntu-latestnow points to ubuntu-26.04, where ruby/setup-ruby provides builds only for the latest patch release of each minor version.minimum_coverage 100on CI). The Mongoid job withAN_TEST_DB=mongodbwas at 99.85% because no spec reached thefind_eachbranch ofnotify_all..resultset.json, which keeps:nocov:lines, so Coveralls showed 99.74%;coveralls_rebornis replaced withsimplecov-lcov.The version bump and release follow after this PR is approved. Please do not merge this PR on GitHub;
mainis fast-forwarded fromdevelop.🤖 Generated with Claude Code