looker-open-source / henry

A command line tool for Looker instance cleanup
MIT License
79 stars 27 forks source link

account for changing of case on explore names #32

Open bryan-at-looker opened 3 years ago

bryan-at-looker commented 3 years ago

In i__looker, Looker will track query.view with the case that it created with. This means if the case is changed away from the initial at any point, Henry will report the usage of the explore as 0, even if this is used extensively.

Here are the steps to repro:

  1. create New_Prd_ExplorE explore
  2. run a couple queries
  3. change explore name to new_prd_explore
  4. run more queries
  5. i__looker only registers all queries under New_Prd_ExplorE
  6. run henry analyze explore --model foo --explore new_prd_explore

henry returns 0, when in fact the result is >0.

This PR fixes this issue.