Skip to content

Remove outdated dependencies (LG-3755)#4481

Merged
mitchellhenke merged 7 commits intomasterfrom
mitchellhenke/remove-outdated-dependencies-lg-3755
Dec 3, 2020
Merged

Remove outdated dependencies (LG-3755)#4481
mitchellhenke merged 7 commits intomasterfrom
mitchellhenke/remove-outdated-dependencies-lg-3755

Conversation

@mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Dec 3, 2020

  • Remove fasterer
  • Remove bummr
  • Remove sinatra
  • Update a bunch of gems
  • Update ROTP gem major version
  • Update ahoy major version

expect(response).to render_template(:new)
end

it 'logs Encryption::EncryptionError' do
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was somehow passing even though User doesn't have an unlock_user_access_key method (I think since f4adcf3)

Copy link
Contributor

Choose a reason for hiding this comment

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

it's that allow(user).to receive(:unlock_user_access_key) LOL....stubbing 😭

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but it wouldn't be called to trigger the error that's expected either 😬

end

def user_access_key
@_uak ||= user.unlock_user_access_key(password)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM!

gem 'rails', '~> 6.0.0'

gem 'ahoy_matey', '~> 2.2', '>= 2.2.1'
gem 'ahoy_matey', '~> 3.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

we rely heavily on the format JSON of ahoy in our logs and parsing, have we spot-checked this to make sure the output to events.log is still good?

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 took a peek and the format seems the same. The bigger changes in the upgrade were around bot detection logic and dropping support for older versions of Rails: https://github.com/ankane/ahoy/blob/master/CHANGELOG.md#300-2019-05-29

Copy link
Contributor

@stevegsa stevegsa left a comment

Choose a reason for hiding this comment

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

LGTM

@mitchellhenke mitchellhenke merged commit 175ed24 into master Dec 3, 2020
@mitchellhenke mitchellhenke deleted the mitchellhenke/remove-outdated-dependencies-lg-3755 branch December 3, 2020 19:12
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.

3 participants