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

Splitting up connector code and tests #5466

Merged
merged 13 commits into from
Dec 7, 2024

Conversation

galvana
Copy link
Contributor

@galvana galvana commented Nov 5, 2024

Closes LA-109

Description Of Changes

Breaking up some large code and test files to make them easier to work with, and to make it easier to see which connectors don't have enough test coverage.

Code Changes

  • Broke out sql_connector.py into separate files for each connector
  • Broke out query_config.py into separate files
  • Broke out test_request_runner_service.py into separate files for each connector. I left generic request runner service tests in the original file.

Steps to Confirm

  • The tests should pass, this doesn't change any functionality

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 5, 2024 11:31pm

@galvana galvana added the run unsafe ci checks Runs fides-related CI checks that require sensitive credentials label Nov 5, 2024
Copy link

cypress bot commented Nov 5, 2024

fides    Run #11310

Run Properties:  status check passed Passed #11310  •  git commit 9a74c12c1d ℹ️: Merge e4b5a404f5ee733106b120ff7ef83f4a49b0c76a into ca8e8470f38218fd95d448e1cf64...
Project fides
Branch Review refs/pull/5466/merge
Run status status check passed Passed #11310
Run duration 00m 58s
Commit git commit 9a74c12c1d ℹ️: Merge e4b5a404f5ee733106b120ff7ef83f4a49b0c76a into ca8e8470f38218fd95d448e1cf64...
Committer Adrian Galvan
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
View all changes introduced in this branch ↗︎

Copy link
Contributor

@Vagoasdf Vagoasdf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks okay, but there is a method, _generate_table_name() that we havent moved to the snowflake config. It should be moved too, right?

"""Returns field names in clauses surrounded by quotation marks as required by Snowflake syntax."""
return f'"{string_path}" {operator} (:{operand})'

def _generate_table_name(self) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're missing this method on the new snowflake query config

@galvana galvana merged commit b0ef6f2 into main Dec 7, 2024
40 checks passed
@galvana galvana deleted the LA-109-split-up-connector-code-and-tests branch December 7, 2024 05:52
Copy link

cypress bot commented Dec 7, 2024

fides    Run #11343

Run Properties:  status check passed Passed #11343  •  git commit b0ef6f2083: Splitting up connector code and tests (#5466)
Project fides
Branch Review main
Run status status check passed Passed #11343
Run duration 00m 55s
Commit git commit b0ef6f2083: Splitting up connector code and tests (#5466)
Committer Adrian Galvan
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run unsafe ci checks Runs fides-related CI checks that require sensitive credentials
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants