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

Incremental SQL validation #414

Closed
wants to merge 43 commits into from
Closed

Conversation

joshtemple
Copy link
Collaborator

@joshtemple joshtemple commented Sep 15, 2021

Change description

Description to come once draft work is finished

Type of change

  • Bug fix (fixes an issue)
  • New feature (adds functionality)

Related issues

Closes #48, closes #371, closes #369

Checklists

Security

  • Security impact of change has been considered
  • Code follows security best practices and guidelines

Code review

  • Pull request has a descriptive title and context useful to a reviewer

Also removes the parent Validator class entirely, which was violating Liskov substitution principle and frankly wasn't very useful as a parent class anyway.
Includes moving build_project to its own method in lookml.py and an update to explore selection that uses a ~/repos/spectacles to represent excluded explores in a single list instead of using two lists (selectors/exclusions) to represent.
I chose to remove the tests that included warnings. Fail and Pass should be sufficient.
Didn't set dimension tests correctly in non-incremental case.
Because .sql can sometimes be None (non incremental-case) this was causing all SqlTests to be equal, causing some really weird errors in how we removed tests from the  attribute.
Set operations are problematic here because we don't have control over which object is returned (from set A or set B). This is important because we only want to use the objects from the base project, not the target project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant