-
Notifications
You must be signed in to change notification settings - Fork 2
API Compare Dashboard Report #39
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
base: develop
Are you sure you want to change the base?
Conversation
lib/superset/request.rb
Outdated
|
||
def order_by | ||
# by default, we will order by changed_on as per the GUI | ||
",order_column:changed_on,order_direction:desc" |
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.
this default value is removed in a later commit that sets default to nil
as unfortunately Superset does not have a consistent naming convention for changed_on date
so we can not use this across all child classes
00b07f5
to
2c89619
Compare
end | ||
|
||
# add ERROR msg if multiple chart dataset schemas are found, ie all datasets should be sourced from the same db schema | ||
chart_dataset_schemas = dashboard[:datasets][:chart_datasets].map{|d| d[:schema]}.uniq |
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.
Should we also include the filter datasets here to see if filter dataset schema is different from chart dataset schema ?
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.
@soundarya-mv nice pickup, and yes we should.
see last commit
@data_sovereignty_issues ||= begin | ||
@report.map do |dashboard| | ||
reasons = [] | ||
chart_dataset_ids = dashboard[:datasets][:chart_datasets].map{|d| d[:id]} |
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.
If chart_datasets also contains filter_datasets, then won't the below condition be false always ?
https://jobready.atlassian.net/browse/NEP-18768
Example