Skip to content

Conversation

rauchy
Copy link
Contributor

@rauchy rauchy commented Jul 22, 2019

Deprecated Query Runners/Alert Destinations will not show up in the list of available types when creating a new one, but will remain there for those data sources/destinations that use them already.

This is useful to deprecate the URL data source and HipChat alert destinations.

@arikfr arikfr added the Backend label Jul 11, 2019
@arikfr arikfr added this to the Next milestone Jul 11, 2019
@arikfr
Copy link
Member Author

arikfr commented Jul 11, 2019

Related #3805.

@rauchy rauchy self-assigned this Jul 22, 2019
}


@deprecated()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@arikfr not sure you actually wanted to deprecate this (and the URL data source) as part of this PR, so let me know if you want me to revert this commit.

Copy link
Member

Choose a reason for hiding this comment

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

No, it's cool. We do need to update the docs about the URL data source though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The page currently mixes JSON and URL and feels like it might need a slight rewrite (or some good chunks related to URL removed). WDYT @susodapop?

@rauchy rauchy requested a review from arikfr July 22, 2019 06:53
Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

👌

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

👍

@rauchy rauchy merged commit dd89bd8 into master Jul 22, 2019
@rauchy rauchy deleted the deprecated-flag-for-query-runners-and-alert-destinations branch July 22, 2019 07:36
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
…edash#3972)

* add a deprecated flag to query runners and show only non-deprecated query runners when adding a new data source

* add a deprecated flag to alert destinations and show only non-deprecated alert destinations when adding a new alert destination

* add a deprecated() decorator for a more succint way to deprecate

* deprecate URL query runner and HipChat alert destination

* use class properties instead of class methods for deprecation

* I <3 newlines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants