Closed ziadsawalha closed 6 months ago
Thanks @ziadsawalha 👍
We should probably add a test for this.
Saw this was released in 1.0.1. Thanks!
Do you still want a test for this? What would we test... that we always cast job args to JSON types or just that we cast GID?
I expected the Sidekiq tests to already cover this case, so we'd probably want a test that replicates the error (before this fix) and that would be good enough.
PROBLEM: Upgrading to acts_as_tenant 1.0 started raising this error:
POSSIBLE CAUSE: 6ecf5d2d2e74338362142f5a52464a65ee6dae7c introduced the breaking change.
SUGGESTED FIX: Sidekiq best practices prefer JSON types and GlobalID::Locator.locate works with the string representation of GlobalID (which is a unique URI). This keeps the desired change of commit 6ecf5d2d2e74338362142f5a52464a65ee6dae7c, but is more compatible with Sidekiq (and requires less serialization overhead)
The fix is included in this PR.