Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Backport to Rails 6 #14

Merged
merged 11 commits into from
May 18, 2022
Merged

Backport to Rails 6 #14

merged 11 commits into from
May 18, 2022

Conversation

freshtonic
Copy link
Contributor

Detect Rails version in the railtie.

If version < 6, bail hard.
If version == 6, apply the monkey patch.

@freshtonic freshtonic force-pushed the backport-to-rails-6 branch 9 times, most recently from 66904db to e1eca99 Compare May 13, 2022 04:58
spec/spec_helper.rb Outdated Show resolved Hide resolved
gemfiles/rails6.gemfile Outdated Show resolved Hide resolved
@freshtonic freshtonic temporarily deployed to CI May 15, 2022 23:54 Inactive
@freshtonic freshtonic temporarily deployed to CI May 15, 2022 23:54 Inactive
@freshtonic freshtonic temporarily deployed to CI May 16, 2022 00:57 Inactive
@freshtonic freshtonic temporarily deployed to CI May 16, 2022 00:57 Inactive
@freshtonic freshtonic force-pushed the backport-to-rails-6 branch 8 times, most recently from 40567af to 7420907 Compare May 17, 2022 13:24
@freshtonic freshtonic changed the title Backport ActiveRecord::QueryMethods::WhereChain#in_order_of to Rails 6 Backport to Rails 6 May 17, 2022
RSpec assumes bugs are in the code under test (not its dependencies) so
it hides a bunch of the backtrace by default.

This changes ensures the full backtrace is exposed. When the client
stabilises we can go back to the default.
@freshtonic freshtonic force-pushed the backport-to-rails-6 branch 2 times, most recently from 9dada95 to 6594ddc Compare May 18, 2022 03:26
Comment on lines +13 to +16
CS_WORKSPACE: ${{ secrets.CS_WORKSPACE }}
CS_KMS_KEY_ARN: ${{ secrets.CS_KMS_KEY_ARN }}
CS_NAMING_KEY: ${{ secrets.CS_NAMING_KEY }}
Copy link
Contributor

Choose a reason for hiding this comment

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

These aren't secrets, and putting them in as secrets makes it really difficult to "reverse engineer" what the action is doing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to merge as-is to get this PR landed.

I'm also not sure we really want those values as plain text in the repo even if they technically aren't secrets.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it turns out to be a problem we can fix it then

.rspec Outdated Show resolved Hide resolved
Gemfile Outdated Show resolved Hide resolved
gemfiles/rails7.gemfile Outdated Show resolved Hide resolved
lib/active_stash/logger.rb Outdated Show resolved Hide resolved
lib/active_stash/railtie.rb Show resolved Hide resolved
Detect Rails version in the railtie.

If version < 6, bail hard.
If version == 6, apply the monkey patch.
You can now provide an env var RSPEC_FULL_BACKTRACE if you need full
backtraces.

This is enabled in CI.
- pry not needed by default
- rake and rspec moved to gemspec
@freshtonic freshtonic merged commit 53c44e3 into main May 18, 2022
@freshtonic freshtonic deleted the backport-to-rails-6 branch May 18, 2022 06:14
freshtonic added a commit that referenced this pull request Dec 21, 2022
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants