Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !1786

Prevent dangerous query method on #order_by_id

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/sejinkim1904/fix-deprecation-warning into master Oct 06, 2020
  • Overview 8
  • Commits 2
  • Pipelines 0
  • Changes 2

Created by: sejinkim1904

What does this PR do?

  • Adds Arel.sql() to #order_by_id in /lib/order.rb to prevent deprecation warning for dangerous query method.
  • Adds test for sorting by has_many association

Where should the reviewer start?

/lib/order.rb

How should this be manually tested?

  • Temporarily remove Arel.sql() from #order_by_id
  • Run bundle exec appraisal rails52 rspec spec/features/index_page_spec.rb

What are the relevant tickets?

#1758

Questions:

  • Do Migrations Need to be ran? NO
  • Do Environment Variables need to be set? NO
  • Any other deploy steps? NO
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/sejinkim1904/fix-deprecation-warning