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

Upgrade to mySQL5.7, Ruby warning reductions, .md file updates #355

Merged
merged 19 commits into from
Mar 11, 2019

Conversation

sashadev-sky
Copy link
Member

@sashadev-sky sashadev-sky commented Feb 23, 2019

references #347, #345

Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!

  • tests pass -- rake test
  • code has been rebased on top of latest master (check if another pull request was added recently, and please rebase)
  • pull request is descriptively named and, if possible, multiple commits squashed if they're smaller changes

Thanks!

===========

Points that I bolded I would like some confirmation on:

Notes on mySQL update

  • update docker-compose image name
  • add a MYSQL.md file with setup instructions for macOS - encourage others to write the instructions for their systems maybe open up new issues for that
  • bump gem 'mysql2', '~> 0.3.20' -> gem 'mysql2', '< 0.4'

Notes on Ruby Warnings (unrelated to mySQL update)

  • File.exists? (deprecated since ruby 2.2.0) updated to File.exist? everywhere in repo but made little impact almost all of them come from gems and from the source code for running a rake test. Source code is updated to File.exist? for Rails 4. Current recommendation: turn off warnings
  • WARN: tilt autoloading 'sass' in a non thread-safe way; explicit require 'sass' suggested.: added a require to the sass gem in the gemfile to create an explicit require call
  • URI.encode obsolete -> replaced with .to_param in repo
    • same as URI.escape obsolete error (they are alias methods) but this error is not in our repo it is in gems

Misc

==========

@sashadev-sky sashadev-sky changed the title Upgrade to mySQL5.7 Upgrade to mySQL5.7 (also upgraded PR template with reference # prompt) Feb 23, 2019
@sashadev-sky sashadev-sky changed the title Upgrade to mySQL5.7 (also upgraded PR template with reference # prompt) Upgrade to mySQL5.7 (& add reference # prompt to PR template) Feb 23, 2019
@sashadev-sky
Copy link
Member Author

@coderjolly would you be able to pick a time to go over the macOS setup instructions with me really quick? I already have everything installed so these could be off need a 2nd person to look!

@sashadev-sky
Copy link
Member Author

@jywarren I haven't gone through everything yet but a lot of these errors come from gems so they might be there for a while. Instead I made a file test_unit.rake with automated rake tasks for all of the unit and functional tests with the option to suppress warnings. Please let me know your thoughts on it! They can be connected for travis tests as well

@sashadev-sky sashadev-sky changed the title Upgrade to mySQL5.7 (& add reference # prompt to PR template) Upgrade to mySQL5.7, Ruby warning reductions, .md file updates Feb 24, 2019
@grvsachdeva
Copy link
Member

Hey @sashadev-sky, really awesome work, sorry haven't gone through the PR closely. I can review it on Friday(busy with exams rn).

I guess, as barnraising is over, @jywarren will be back soon. Thank you!

@sashadev-sky
Copy link
Member Author

@gauravano no problem good luck!

@grvsachdeva
Copy link
Member

Thank you!

lib/tasks/test_unit.rake Outdated Show resolved Hide resolved
lib/tasks/test_unit.rake Outdated Show resolved Hide resolved
@jywarren
Copy link
Member

This is really epic, @sashadev-sky !!!!! Amazing! Just a few small Qs and we're fine to merge this!

@sashadev-sky
Copy link
Member Author

@jywarren thank you!! I still have not added the ability to set them up with Travis, I was waiting on some feedback first (do we want it to run with Travis instead of the default tests?)

@jywarren
Copy link
Member

jywarren commented Mar 5, 2019

I believe we're aiming for MK to run on whatever we have configured in the Docker container, as we'll be increasingly treating that as the standard. So if it runs in Travis, we should be good on Mysql versions!

@sashadev-sky
Copy link
Member Author

@jywarren Ok there is no version specified in the docker container for mysql as far as I can see. Does it just run with whatever it finds locally installed in the terminal session? @icarito please advise if you know!

all Rake Test Task related things have been moved into PR #380 so discussion over that here can be closed now. 👍

@sashadev-sky
Copy link
Member Author

@jywarren so after moving the rake test tasks into a different PR there isn't a lot else going on here, just a clean up mostly (see PR description). Do you think this is ready for merge? Couldn't find any macOS takers to test out the mysql instructions but I figure that'll work itself out as more people start contributing

@jywarren
Copy link
Member

Yes, this looks super. Thanks! Merging!!!

@jywarren jywarren merged commit a3bf9f6 into publiclab:main Mar 11, 2019
@sashadev-sky sashadev-sky deleted the mySQL5.7 branch June 13, 2019 04:54
chen-robert pushed a commit to chen-robert/mapknitter that referenced this pull request Dec 5, 2019
…clab#355)

* delete old rails configurations

* update pr template

* update readme and docker image name

* add a mysql setup file

* update broken recaptcha link

* use File.exist? instead

* bump mysql2

* control mysql2 gem

* add custom rake test functions to provide option to suppress warnings

* small edit to mysql.md

* another one

* add rake task for total tests

* add a require for sass gem

* update deprecated URI.encode

* undo a comment on Rakefile I made

* ensure consistency for rake task names

* migrate rake tasks to new branch

* update readme

* update encoding method
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.

3 participants