Skip to content
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

[#170] cache key breaks when receiving a belongs to reflection #171

Merged
merged 1 commit into from
Sep 12, 2021

Conversation

rpbaltazar
Copy link
Contributor

@rpbaltazar rpbaltazar commented Sep 12, 2021

Attempt to address issue reported in #170

Tests in production application are working with this fix, but:

checked what changed between rails 6.0.3 and 6.0.4 and here is the commit that causes the changes to break: rails/rails@45081c9#diff-b1aed4985f41ad87dc1be30472b728a19f1a7354f25ce71bf6ce9a7744a9cd0dR445

rails internally uses the concurrent map implementation. The concurrent map implementation uses whatever values passed as keys, so converting the reflection instance to an array with the tenant should be safe

@rpbaltazar rpbaltazar force-pushed the 170-no-implicit-conversion branch from 592e5f8 to ecc74e8 Compare September 12, 2021 08:34
@rpbaltazar rpbaltazar marked this pull request as ready for review September 12, 2021 14:09
@rpbaltazar rpbaltazar merged commit 06ad2d6 into development Sep 12, 2021
@rpbaltazar rpbaltazar deleted the 170-no-implicit-conversion branch September 12, 2021 14:09
rpbaltazar added a commit that referenced this pull request Sep 13, 2021
**Implemented enhancements:**

- #112 - Allow a list of schemas when switching using schemas - #154
- Create schema between different versions of DB - #155 

**Fixed bugs:**

- #170 - Cache Key breaks on rails 6.0.4 - #171 

**Closed issues:**

- Add ruby 3 to the build matrix - #162 
- update rubocop and fixed broken rules - #157 
- added junit formatter and saving test output in circle - #172
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