Can anyone review my PR fixing redash dashboard ur...
# contribute-code
i
Can anyone review my PR fixing redash dashboard url bug? https://github.com/datahub-project/datahub/pull/5500 Thanks!
m
@incalculable-forest-10734: could you confirm my comment?
it seems like the url that would be generated would look like:
Copy code
<self.config.connect_uri>/dashboards/{dashboard_data.get('id')}-{dashboard_data.get('slug', '')}
so something like
dashboards/3-<slug>
have you tested that it works with the
slug
as the suffix?
and when slug is not present it will be
dashboards/3-
with the dangling
-
at the end
that somehow doesn't seem right
should it instead be: if slug is present dashboard url should be
{uri}/dashboard/<slug>
and if slug is not present then dashboard url should be
{uri}/dashboards/dashboard-id
i
@mammoth-bear-12532 Thanks for the code review. I understand my code break older versions of redash. So, fix the logic to maintain backward compatibility and push my code. Would you review https://github.com/datahub-project/datahub/pull/5500 again?