Skip to content

Treat Identity member 404 as not found - #7

Merged
ehimen-io merged 6 commits into
mainfrom
owens/CON-1324/member-details-404-returns-nil
Oct 20, 2026
Merged

ehimen-io merged 6 commits into
mainfrom
owens/CON-1324/member-details-404-returns-nil

Conversation

@ehimen-io

@ehimen-io ehimen-io commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When Identity has no member for a lookup, `member#details` returns nil instead of raising.

Also modernizes the repo: Ruby 3.4+, current CI, and Vertebrae 2 (drops juwelier).

Test plan

  • `bundle exec rspec`
  • `bundle exec rubocop`
  • Release 1.0.0 and bump Tokyo’s dependency

Callers such as Tokyo already treat a nil member as \"not found\"; avoid
raising Faraday::ResourceNotFound for missing members.

Bump to 0.1.5.
- Ruby 3.4+ (local/CI 4.0), refresh GitHub Actions and commit Gemfile.lock
- Require vertebrae >= 2.0; replace juwelier with a hand-maintained gemspec
- Handle 404 via Vertebrae::ResponseError and Faraday::ResourceNotFound
- JSON.generate for request bodies; fix WebMock stubs for Vertebrae paths
@ehimen-io ehimen-io changed the title CON-1324: Treat Identity member 404 as not found Treat Identity member 404 as not found Oct 20, 2026
@ehimen-io
ehimen-io marked this pull request as ready for review October 20, 2026 13:27

@lavaturtle lavaturtle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for doing all this modernization while you're in here! With a few tweaks I think this is great.

Comment thread identity-api-client.gemspec Resolved
Comment thread identity-api-client.gemspec Resolved
Comment thread identity-api-client.gemspec Resolved
Comment thread identity-api-client.gemspec Resolved
Comment thread identity-api-client.gemspec Resolved
Comment thread VERSION Resolved
Comment thread Gemfile.lock Resolved
Comment thread lib/identity-api-client/client.rb Resolved
- Bump to 1.0.0; drop committed Gemfile.lock
- Update gemspec metadata, exclude spec/, use vertebrae ~> 2.0
- Revert to params.to_json; rescue only Faraday::ResourceNotFound
@ehimen-io
ehimen-io requested a review from lavaturtle October 20, 2026 16:17

@lavaturtle lavaturtle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 Neat!

Comment thread identity-api-client.gemspec Resolved
Comment thread README.md Resolved
ehimen-io and others added 2 commits October 20, 2026 12:20
@ehimen-io
ehimen-io merged commit 04a65dd into main Oct 20, 2026
3 checks passed
@ehimen-io
ehimen-io deleted the owens/CON-1324/member-details-404-returns-nil branch October 20, 2026 16:21
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