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

fix(datasets): BI-5245 fix source refresh with deleted fields, do not force refresh always #604

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

KonstantAnxiety
Copy link
Contributor

@KonstantAnxiety KonstantAnxiety commented Sep 11, 2024

Therefore speed up dataset validation in some cases

@KonstantAnxiety KonstantAnxiety changed the title fix(datasets): BI-5245 fix source refresh with deleted fields, do not force refresh always` fix(datasets): BI-5245 fix source refresh with deleted fields, do not force refresh always Sep 11, 2024
return [
field
for field in self.fields
if isinstance(field.calc_spec, DirectCalculationSpec) and field.source == source_id
Copy link
Contributor Author

@KonstantAnxiety KonstantAnxiety Sep 11, 2024

Choose a reason for hiding this comment

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

Classic naming issue: there are db sources (e.g. database table) and dataset sources (Dataset -> DataSource), which wrap db sources

field.source is the table name, it can't be equal to the source_id (which is a dataset source id), so this method has been returning an empty array all this time

@KonstantAnxiety KonstantAnxiety force-pushed the konstasa/refresh-source-no-force branch from 5ad3533 to 06ac1da Compare September 30, 2024 08:43
@KonstantAnxiety KonstantAnxiety merged commit f7b2299 into main Oct 4, 2024
60 checks passed
@KonstantAnxiety KonstantAnxiety deleted the konstasa/refresh-source-no-force branch October 4, 2024 11:32
@KonstantAnxiety KonstantAnxiety added component/datasets Datasets changelog Changes should be included in changelog type/fix Bug fixes labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Changes should be included in changelog component/datasets Datasets type/fix Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants