Skip to content

Release 2.7.3 - #210

Merged
simukappu merged 8 commits into
mainfrom
develop
Nov 13, 2026
Merged

simukappu merged 8 commits into
mainfrom
develop

Conversation

@simukappu

@simukappu simukappu commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Changes for 2.7.3.

  • Embed target in each subscription of the subscriptions API index response, as the show response and the API reference schema do. config.restrict_api_response_fields also applies to it.
  • Add target_type, target_id, notifiable_type, notifiable_id and 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.
    • Both mismatches were found because openapi_parser 2.7.0 now validates them, and the API reference specs failed on every matrix.
  • Use minor Ruby versions in the CI matrix (e.g. '3.4'). ubuntu-latest now points to ubuntu-26.04, where ruby/setup-ruby provides builds only for the latest patch release of each minor version.
  • Keep line coverage at 100% on every job and fail CI below it (SimpleCov minimum_coverage 100 on CI). The Mongoid job with AN_TEST_DB=mongodb was at 99.85% because no spec reached the find_each branch of notify_all.
  • Report coverage to Coveralls in LCOV format as one parallel build. The action read .resultset.json, which keeps :nocov: lines, so Coveralls showed 99.74%; coveralls_reborn is replaced with simplecov-lcov.
  • Bump ruby/setup-ruby from 1.335.0 to 1.338.0 (same change as Bump ruby/setup-ruby from 1.335.0 to 1.338.0 #209; SHA checked against the v1.338.0 tag).

The version bump and release follow after this PR is approved. Please do not merge this PR on GitHub; main is fast-forwarded from develop.

🤖 Generated with Claude Code

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

coveralls commented Nov 13, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 100.0% (+0.3%) from 99.745% — develop into main

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.
@simukappu
simukappu merged commit 15fbca0 into main Nov 13, 2026
57 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.

2 participants