-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
chore: add changed_on_delta_humanized field on dashboard schema #15542
Conversation
@@ -159,6 +159,7 @@ class DashboardGetResponseSchema(Schema): | |||
owners = fields.List(fields.Nested(UserSchema)) | |||
roles = fields.List(fields.Nested(RolesSchema)) | |||
table_names = fields.String() # legacy nonsense | |||
changed_on_humanized = fields.String(data_key="changed_on_delta_humanized") |
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.
superset.models.helps.AuditMixinNullable.changed_on_delta_humanized
is a instance method, unable to serializes.- ensure DashboardRestApi list_column and dashboard metadata are the same
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.
to ensure 2. we should add show_columns = list_columns on the REST API class, and follow the same existing pattern
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.
I will follow this PR, thanks, Daniel.
Codecov Report
@@ Coverage Diff @@
## master #15542 +/- ##
===========================================
+ Coverage 58.93% 76.96% +18.03%
===========================================
Files 373 976 +603
Lines 12014 51298 +39284
Branches 2945 6912 +3967
===========================================
+ Hits 7080 39480 +32400
- Misses 4755 11599 +6844
- Partials 179 219 +40
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
looks good to me!
LGTM! |
…he#15542) * chore: add changed_on_delta_humanized field on dashboard schema * fix ut
…he#15542) * chore: add changed_on_delta_humanized field on dashboard schema * fix ut
…he#15542) * chore: add changed_on_delta_humanized field on dashboard schema * fix ut
SUMMARY
added
changed_on_delta_humanized
field on dashboard schema. ensure rest API has this response data.related PR: #15186
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION