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 Rails 6 #4114

Merged
merged 3 commits into from
Aug 29, 2019
Merged

Upgrade to Rails 6 #4114

merged 3 commits into from
Aug 29, 2019

Conversation

david-yz-liu
Copy link
Collaborator

No description provided.

app/models/user.rb Outdated Show resolved Hide resolved
app/lib/markus_csv.rb Show resolved Hide resolved
spec/models/rubric_criterion_spec.rb Show resolved Hide resolved
spec/controllers/submissions_controller_spec.rb Outdated Show resolved Hide resolved
spec/controllers/groups_controller_spec.rb Outdated Show resolved Hide resolved
app/controllers/annotation_categories_controller.rb Outdated Show resolved Hide resolved
app/models/grade_entry_form.rb Show resolved Hide resolved
app/lib/csv_invalid_line_error.rb Outdated Show resolved Hide resolved
app/jobs/split_pdf_job.rb Show resolved Hide resolved
app/lib/memory_revision.rb Show resolved Hide resolved
app/lib/memory_revision.rb Show resolved Hide resolved
app/lib/memory_revision.rb Show resolved Hide resolved
app/lib/memory_revision.rb Show resolved Hide resolved
app/lib/memory_revision.rb Show resolved Hide resolved
app/lib/memory_revision.rb Show resolved Hide resolved
app/lib/memory_revision.rb Show resolved Hide resolved
app/lib/memory_revision.rb Show resolved Hide resolved
app/lib/git_revision.rb Show resolved Hide resolved
app/lib/git_revision.rb Show resolved Hide resolved
spec/jobs/split_pdf_job_spec.rb Show resolved Hide resolved
app/lib/git_revision.rb Show resolved Hide resolved
app/lib/git_revision.rb Show resolved Hide resolved
app/lib/git_revision.rb Show resolved Hide resolved
app/lib/git_revision.rb Show resolved Hide resolved
app/lib/subversion_revision.rb Show resolved Hide resolved
app/lib/subversion_revision.rb Show resolved Hide resolved
app/lib/subversion_revision.rb Show resolved Hide resolved
app/lib/subversion_revision.rb Show resolved Hide resolved
app/lib/subversion_revision.rb Show resolved Hide resolved
@mishaschwartz
Copy link
Contributor

Just so I understand, the changes made here are:

  • update rails version and related gems
  • change update_attributes everywhere to just update
  • rename MarkusCSV to MarkusCsv
  • change CSVInvalidLineError to CsvInvalidLineError
  • change .utf8_encode to .encode(Encoding::UTF_8, ...)
  • remove .utf8_encode methods
  • move repository revision classes into their own files
  • rename SplitPdfJob to SplitPDFJob
  • make the mathjax config file a .html.erb file not a .js.erb file
  • use Rails.cache instead of redis for storing activejob statuses
  • remove updated_at and created_at column creating commands from a migration from 2016 (??)
  • set BINDING environment variable in markus install script instead of HOST
  • make pdf job tests pending
  • render views when running rspec tests

Is there anything I'm missing?
Are these all required to update to Rails 6?

@david-yz-liu
Copy link
Collaborator Author

Thanks for summarizing this!

  • update_attributes will be deprecated in Rails 6.1 (emits a warning in 6.0)
  • Rails 6 uses the zeitwerk code loader by default. The class renaming was to conform to its default name handling; it also expects one class per file. There's still another deprecation warning related to how the MarkUs configuration is being loaded at initialization time, so we'll need to look at that in more detail later. I'll make an issue for it.
  • redis-rails had a dependency conflict, and isn't necessary any more because Rails 5.2+ has built-in Redis support, at least for our purposes I think.
  • The HOST variable is deprecated in Rails 6.
  • The mathjax file couldn't be found: default search was for .html only, because this partial was included in an HTML file). I couldn't find a reference for whether this changed in Rails 6, so I'm not sure about this one.

Getting tests to work:

@david-yz-liu david-yz-liu merged commit c72d468 into MarkUsProject:master Aug 29, 2019
@david-yz-liu david-yz-liu deleted the rails6 branch August 9, 2024 01:01
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.

2 participants