Skip to content

v2.0.0

Compare
Choose a tag to compare
@joshtemple joshtemple released this 01 Mar 02:22
· 444 commits to master since this release

Breaking changes in 2.0.0

  • Previously, you would exclude models or explores by passing --exclude orders/order_items sessions/*. We've simplified this syntax by eliminating --exclude and combining exclusion into the --explores argument. To exclude orders/order_items, pass it with a leading hyphen as --explores -orders/order_items [reference].
  • The same goes for folders and the content validator. Instead of using --exclude-folders, pass the folder ID with a leading hyphen to --folders, e.g. --folders -29 [reference].

Features

  • Incremental SQL validation. Spectacles now accepts --incremental, which only tests explores that have changed.

    To determine which explores have changed, Spectacles compares the base "ref" (whatever Git state was passed by --branch or --commit-ref) to the target ref. By default, Spectacles compares to production, but you can configure the target ref with --target, e.g. --target develop or --target 2de56a.

    Spectacles will only test an explore in your project if the SQL on the base ref is different than SQL on the target ref. Additionally, Spectacles will only display dimension-level SQL errors if they don't already exist on the target ref. (#48, #369, #371) [docs].

Fixes

  • Fixes issue where certain Explores would return a failing status but not show any specific errors unless run in batch mode (#512)
  • Fixes issue with URLs in the LookML Validator (#500)