[
https://issues.apache.org/jira/browse/AIRFLOW-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15695169#comment-15695169
]
ASF subversion and git services commented on AIRFLOW-652:
---------------------------------------------------------
Commit 8f4473c5deadb7ec03afc84455cc8c059b889f45 in incubator-airflow's branch
refs/heads/master from [~sekikn]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=8f4473c ]
[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
> Endpoint /admin/airflow/sandbox seems unnecessary
> -------------------------------------------------
>
> Key: AIRFLOW-652
> URL: https://issues.apache.org/jira/browse/AIRFLOW-652
> Project: Apache Airflow
> Issue Type: Improvement
> Components: webserver
> Reporter: Kengo Seki
> Assignee: Kengo Seki
> Priority: Minor
>
> airflow/www/views.py exposes an endpoint /sandbox as follows:
> {code}
> 627 @expose('/sandbox')
> 628 @login_required
> 629 def sandbox(self):
> 630 title = "Sandbox Suggested Configuration"
> 631 cfg_loc = conf.AIRFLOW_CONFIG + '.sandbox'
> 632 f = open(cfg_loc, 'r')
> 633 config = f.read()
> 634 f.close()
> 635 code_html = Markup(highlight(
> 636 config,
> 637 lexers.IniLexer(), # Lexer call
> 638 HtmlFormatter(noclasses=True))
> 639 )
> 640 return self.render(
> 641 'airflow/code.html',
> 642 code_html=code_html, title=title, subtitle=cfg_loc)
> {code}
> But this endpoint seems unused. If there is no airflow.cfg.sandbox file,
> "Ooops" page is shown. I think we can remove this for code cleanup.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)