-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Properly initializing data source references in dataView #10726
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
Conversation
Signed-off-by: Joey Liu <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #10726 +/- ##
==========================================
+ Coverage 60.34% 60.35% +0.01%
==========================================
Files 4462 4463 +1
Lines 119480 119602 +122
Branches 19746 19773 +27
==========================================
+ Hits 72095 72186 +91
- Misses 42382 42405 +23
- Partials 5003 5011 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Joey Liu <[email protected]>
name: attributes.title || this.dataSourceRef.name || this.dataSourceRef.id, | ||
}; | ||
} catch (error) { | ||
// If data source fetch fails, keep the existing dataSourceRef as-is |
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.
Nit: Seems a little weird to have an error and not do anything in this catch block, is there any logging we could do?
timeFieldName: this.timeFieldName, | ||
displayName: this.displayName, | ||
description: this.description, | ||
schemaMappings: this.schemaMappings, |
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.
Is this all the metadata, or is there more metadata? Could there be a version
field for the dataset here?
Description
Fixed data source reference initialization and Dataset conversion in DataView classes to ensure proper metadata handling and avoid async constructor calls.
Problems Fixed
Issues Resolved
Screenshot
Before data source references fix:
After data source references fix:
Before Premature Query Execution fix:
Screen.Recording.2025-10-15.at.4.02.07.PM.mp4
After Premature Query Execution fix:
Screen.Recording.2025-10-15.at.3.56.11.PM.mp4
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration