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

Fix overwriting of HASH_DATA_COLUMNS #21

Merged

Conversation

dwilkins
Copy link
Contributor

@dwilkins dwilkins commented Oct 27, 2020

HASH_DATA_COLUMNS is being overwritten if other classes where squint is used have a column of the same name.

Fix:

  • Scope HASH_DATA_COLUMNS to the class where it's included instead of letting there be a hash that gets overwritten

Since the CircleCI config was old, several other changes were required:

  • Remove old rails versions below 5.1
  • New circleci.yml
  • Upgrade bundler to 2.0.2

Note for testers

For those running the tests in an existing dev environment:

  • bundle exec rake --rakefile test/dummy/Rakefile db:setup
  • bundle exec rake test

I removed pry while furiously attempting to get CircleCI to run again. Maybe we can add those back at some point.

manifest.js was added because of a sprockets change:
rails/sprockets-rails#444

- scope HASH_DATA_COLUMNS to the class where it's include instead of
  letting there be a hash that gets overwritten
@dwilkins dwilkins marked this pull request as draft October 27, 2020 20:09
@dwilkins dwilkins force-pushed the bug/fix-hash-data-columns-overwrite branch 22 times, most recently from 7d94c34 to cbb882b Compare October 28, 2020 02:19
- Also updating bundler to 2.0.2
- add manifest file for new sprockets
@dwilkins dwilkins force-pushed the bug/fix-hash-data-columns-overwrite branch from cbb882b to 80b28be Compare October 28, 2020 02:24
@dwilkins dwilkins changed the title Fix overwritting of HASH_DATA_COLUMNS Fix overwriting of HASH_DATA_COLUMNS Oct 28, 2020
@dwilkins dwilkins marked this pull request as ready for review October 28, 2020 02:31
@dwilkins dwilkins requested a review from jamescook October 28, 2020 15:37
Copy link
Contributor

@jamescook jamescook left a comment

Choose a reason for hiding this comment

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

Seems familiar :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants