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

MINOR - PII Scanner tests and log levels #17686

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

pmbrull
Copy link
Collaborator

@pmbrull pmbrull commented Sep 3, 2024

Describe your changes:

  • Validate we are not passing +1 PII labels
  • Relax logging level for PII errors on profiler. Also, the patch_mixin will just report a warning. We can highlight errors on the ingestion logic when needed

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@@ -226,36 +225,3 @@ def get_database_names(self) -> Iterable[str]:
except Exception as exc:
logger.debug(f"Failed to fetch database names {exc}")
logger.debug(traceback.format_exc())

def get_table_entities(self, database):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think it was used at all @ulixius9, I only see in _iter the call to the ES search

@@ -138,7 +137,7 @@ def _iter(self, *_, **__) -> Iterable[Either[ProfilerSourceAndEntity]]:
service_name=None,
schema_name=schema_name,
table_name=table_name,
fields="tableProfilerConfig",
fields=",".join(self._get_fields()),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

centralized how we are getting the required fields

Copy link

sonarcloud bot commented Sep 3, 2024

@pmbrull pmbrull merged commit 2237d5a into open-metadata:main Sep 4, 2024
13 of 16 checks passed
pmbrull added a commit that referenced this pull request Sep 4, 2024
* MINOR - PII Scanner tests and log levels

* MINOR - PII Scanner tests and log levels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ingestion safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants