Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions superset-frontend/src/pages/DashboardList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ const DASHBOARD_COLUMNS_TO_FETCH = [
'published',
'url',
'slug',
'changed_by',
'changed_by.id',
'changed_by.first_name',
'changed_by.last_name',
'changed_on_delta_humanized',
'owners.id',
'owners.first_name',
'owners.last_name',
'owners',

@michael-s-molina michael-s-molina Feb 21, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@hainenber Can you confirm that the owners' fields, apart from id, first_name and last_name, are not being used? Same for changed_by's fields.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The attributes like owners.last_name are the one populating the owners field. For some reasons, you have to specify atributes for nested fields like owners and changed_by.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe you misunderstood what I mean. Previously, we had owners being declared which means that ALL attributes of owners were accessible like full_name. Now that you excluded owners from the fetched columns, if there's some component accessing full_name, it will break. I'm ok with removing the whole owners object but we need to check which attributes are in fact being used so that the projection is correct.

@hainenber hainenber Feb 21, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see. Then in that case, I'll only add the missing attributes and not to remove the nested field names to minimize any risks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Re-added old nested fields. Issue is still fixed with less risks :D

image

'tags.id',
'tags.name',
'tags.type',
Expand Down