Repository: incubator-airflow Updated Branches: refs/heads/master 98197d956 -> 8f4473c5d
[AIRFLOW-652] Remove obsolete endpoint views.py exposes an endpoint /sandbox, but it's unused. This commit removes that for code cleanup. Closes #1904 from sekikn/AIRFLOW-652 Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/8f4473c5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/8f4473c5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/8f4473c5 Branch: refs/heads/master Commit: 8f4473c5deadb7ec03afc84455cc8c059b889f45 Parents: 98197d9 Author: Kengo Seki <[email protected]> Authored: Thu Nov 24 23:56:46 2016 -0800 Committer: Siddharth Anand <[email protected]> Committed: Thu Nov 24 23:57:13 2016 -0800 ---------------------------------------------------------------------- airflow/www/views.py | 17 ----------------- 1 file changed, 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/8f4473c5/airflow/www/views.py ---------------------------------------------------------------------- diff --git a/airflow/www/views.py b/airflow/www/views.py index d4c69dc..d22e8e4 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -624,23 +624,6 @@ class Airflow(BaseView): nukular=ascii_.nukular, info=traceback.format_exc()), 500 - @expose('/sandbox') - @login_required - def sandbox(self): - title = "Sandbox Suggested Configuration" - cfg_loc = conf.AIRFLOW_CONFIG + '.sandbox' - f = open(cfg_loc, 'r') - config = f.read() - f.close() - code_html = Markup(highlight( - config, - lexers.IniLexer(), # Lexer call - HtmlFormatter(noclasses=True)) - ) - return self.render( - 'airflow/code.html', - code_html=code_html, title=title, subtitle=cfg_loc) - @expose('/noaccess') def noaccess(self): return self.render('airflow/noaccess.html')
