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

Make attribute last_scan_on sql-friendly #18198

Merged
merged 2 commits into from
Nov 15, 2018

Commits on Nov 14, 2018

  1. virtual_attribute: use single column in sub-select

    associations can have scopes, and those can include select clauses.
    
    When one of those relations are used, the sub-select generated will
    contains too many columns:
    
        sub-select returns 2 columns - expected 1
    
    This change ensures only 1 column is in the virtual_attribute sub-select.
    kbrock committed Nov 14, 2018
    Configuration menu
    Copy the full SHA
    aae11e5 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2018

  1. Convert last_scan_on to a sql friendly delegate

    This makes the drift state columns virtual
    
    This is used by the Host-host.yml and 21 screen views
    kbrock committed Nov 15, 2018
    Configuration menu
    Copy the full SHA
    1387ffe View commit details
    Browse the repository at this point in the history