-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Hanami-DB 2.2 is not compatible with rom-repository 5.4 #698
Labels
Comments
@wuarmin, thanks for reporting! Yes, since it was marked as private, I didn't think it was in use. We can then add an alias and deprecate it. I'll take a look later today and cut a release. |
flash-gordon
added a commit
that referenced
this issue
Jan 9, 2025
It was part of private API used by hanami/db. This marks prepare_relation as replacement
flash-gordon
added a commit
that referenced
this issue
Jan 9, 2025
It was part of the private API used by hanami/db. This marks prepare_relation as a replacement
flash-gordon
added a commit
that referenced
this issue
Jan 9, 2025
It was part of the private API used by hanami/db. This marks prepare_relation as a replacement
@wuarmin I pushed rom-repo + rom 5.4.1 with deprecation and submitted a patch to hanami hanami/db#16 |
@flash-gordon thanks for the quick fix. It works now, and I see the deprecation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Due to yesterday's refactoring in
repository/relation_reader.rb
, the methodROM::Repository#set_relation
, which is used inhanami/db
, no longer exists. It was renamed toprepare_relation
.https://github.com/hanami/db/blob/344a14933f7e1c66304f353119d3467d15ae997e/lib/hanami/db/repo.rb#L43
To Reproduce
bundle update
bundle exec rspec spec/slices/my_slice/repos/user_repo_spec.rb
Backtrace:
@flash-gordon What's the best way to bring back
set_relation
? Renamingprepare_relation
toset_relation
would fix the issue.At the moment, every Hanami-db-app, which updates deps will run into this error.
It should be noted that
set_relation
was marked as a private api.thanks
The text was updated successfully, but these errors were encountered: