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

feat: Support GoodJob v4 #213

Merged
merged 3 commits into from
Jul 9, 2024
Merged

feat: Support GoodJob v4 #213

merged 3 commits into from
Jul 9, 2024

Conversation

carlosantoniodasilva
Copy link
Member

@carlosantoniodasilva carlosantoniodasilva commented Jul 9, 2024

This adds support to GoodJob v4. The main change is that queries now go
through GoodJob::Job instead of GoodJob::Execution, based on the
changelog:

Enqueues and executes jobs via the GoodJob::Job model instead of GoodJob::Execution

They've also dropped support to Ruby 2.6/2.7, which we still support.

I've tweaked the existing Gemfile for AR 6.1 to run against GoodJob v3,
so we have test coverage there, and the main Gemfile and AR 7.0 versions
will run against v4 going forward.

Similarly, we have 2 sample apps for GoodJob, and I've kept one pointing
to GoodJob v3 (the multi-db sample), while upgrading the other to v4, so
we can test both for now.

https://island94.org/2024/07/introducing-goodjob-v4
https://github.com/bensheldon/good_job/tree/v4.0.2?tab=readme-ov-file#upgrading-v3-to-v4

Closes https://linear.app/judo/issue/PRD-579/add-support-for-goodjob-v4

This adds support to GoodJob v4. The main change is that queries now go
through `GoodJob::Job` instead of `GoodJob::Execution`, based on the
changelog:

> Enqueues and executes jobs via the GoodJob::Job model instead of GoodJob::Execution

They've also dropped support to Ruby 2.6/2.7, which we still support.

I've tweaked the existing Gemfile for AR 6.1 to run against GoodJob v3,
so we have test coverage there, and the main Gemfile and AR 7.0 versions
will run against v4 going forward.

Similarly, we have 2 sample apps for GoodJob, and I've kept one pointing
to GoodJob v3 (the multi-db sample), while upgrading the other to v4, so
we can test both for now.

https://island94.org/2024/07/introducing-goodjob-v4
@carlosantoniodasilva carlosantoniodasilva self-assigned this Jul 9, 2024
@carlosantoniodasilva carlosantoniodasilva marked this pull request as ready for review July 9, 2024 17:01
@carlosantoniodasilva carlosantoniodasilva merged commit 1d8f75c into main Jul 9, 2024
124 checks passed
@carlosantoniodasilva carlosantoniodasilva deleted the ca-good-job-upgrade branch July 9, 2024 17:04
carlosantoniodasilva pushed a commit that referenced this pull request Jul 10, 2024
## [1.8.0](v1.7.1...v1.8.0) (2024-07-09)

### Features

* Support GoodJob v4 ([#213](#213)) ([1d8f75c](1d8f75c))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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