-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
fix(DC): Bring EntityContainsColumnsValidator back to config entities #3540
Conversation
Codecov ReportBase: 92.20% // Head: 92.17% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3540 +/- ##
==========================================
- Coverage 92.20% 92.17% -0.03%
==========================================
Files 723 720 -3
Lines 33832 33779 -53
==========================================
- Hits 31195 31137 -58
- Misses 2637 2642 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -61,24 +61,30 @@ def _config_matches_python_definition( | |||
self, config_path: str, entity: Type[Entity], entity_key: EntityKey | |||
) -> None: | |||
config_entity = build_entity_from_config(config_path) | |||
print(config_entity.get_validators()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❗
EntityColumnSet(self.columns), ColumnValidationMode.DO_NOTHING | ||
) | ||
] | ||
return [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓
…#3579) A repeat of #3540 but fixing two bad lines of code which should not have been merged Due to a bug in our testing, we have not been including the EntityContainsColumnsValidator in the entities built with config. Having a place where the built in validators are defined makes it easier to auto-convert entities as we can skip the default ones in the config. ### Blast Radius This will affect only config entities (metrics) and this is re-introducing a columns validator which is turned off. This is essentially a no-op.
Due to a bug in our testing, we have not been including the EntityContainsColumnsValidator in the entities built with config. Having a place where the built in validators are defined makes it easier to auto-convert entities as we can skip the default ones in the config.
Blast Radius
This will affect only config entities (metrics) and this is re-introducing a columns validator which is turned off. This is essentially a no-op.