|
@@ -22,162 +22,162 @@ from oozie.views import editor2 as oozie_views_editor2
|
|
|
from oozie.views import api as oozie_views_api
|
|
from oozie.views import api as oozie_views_api
|
|
|
from oozie.views import dashboard as oozie_views_dashboard
|
|
from oozie.views import dashboard as oozie_views_dashboard
|
|
|
|
|
|
|
|
-if sys.version_info[0] < 3:
|
|
|
|
|
- from django.conf.urls import url
|
|
|
|
|
|
|
+if sys.version_info[0] > 2:
|
|
|
|
|
+ from django.urls import re_path
|
|
|
else:
|
|
else:
|
|
|
- from django.urls import re_path as url
|
|
|
|
|
|
|
+ from django.conf.urls import url as re_path
|
|
|
|
|
|
|
|
IS_URL_NAMESPACED = True
|
|
IS_URL_NAMESPACED = True
|
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
urlpatterns = [
|
|
|
|
|
|
|
|
- url(r'^list_workflows/?$', oozie_views_editor.list_workflows, name='list_workflows'),
|
|
|
|
|
- url(r'^list_trashed_workflows/?$', oozie_views_editor.list_trashed_workflows, name='list_trashed_workflows'),
|
|
|
|
|
- url(r'^create_workflow/?$', oozie_views_editor.create_workflow, name='create_workflow'),
|
|
|
|
|
- url(r'^edit_workflow/(?P<workflow>\d+)/?$', oozie_views_editor.edit_workflow, name='edit_workflow'),
|
|
|
|
|
- url(r'^delete_workflow$', oozie_views_editor.delete_workflow, name='delete_workflow'),
|
|
|
|
|
- url(r'^restore_workflow/?$', oozie_views_editor.restore_workflow, name='restore_workflow'),
|
|
|
|
|
- url(r'^clone_workflow/(?P<workflow>\d+)$', oozie_views_editor.clone_workflow, name='clone_workflow'),
|
|
|
|
|
- url(r'^submit_workflow/(?P<workflow>\d+)$', oozie_views_editor.submit_workflow, name='submit_workflow'),
|
|
|
|
|
- url(r'^schedule_workflow/(?P<workflow>\d+)$', oozie_views_editor.schedule_workflow, name='schedule_workflow'),
|
|
|
|
|
- url(r'^import_workflow/?$', oozie_views_editor.import_workflow, name='import_workflow'),
|
|
|
|
|
- url(r'^import_coordinator/?$', oozie_views_editor.import_coordinator, name='import_coordinator'),
|
|
|
|
|
- url(r'^export_workflow/(?P<workflow>\d+)$', oozie_views_editor.export_workflow, name='export_workflow'),
|
|
|
|
|
-
|
|
|
|
|
- url(r'^list_coordinators(?:/(?P<workflow_id>[-\w]+))?/?$', oozie_views_editor.list_coordinators, name='list_coordinators'),
|
|
|
|
|
- url(r'^list_trashed_coordinators/?$', oozie_views_editor.list_trashed_coordinators, name='list_trashed_coordinators'),
|
|
|
|
|
- url(r'^create_coordinator(?:/(?P<workflow>[-\w]+))?/?$', oozie_views_editor.create_coordinator, name='create_coordinator'),
|
|
|
|
|
- url(r'^edit_coordinator/(?P<coordinator>[-\w]+)$', oozie_views_editor.edit_coordinator, name='edit_coordinator'),
|
|
|
|
|
- url(r'^delete_coordinator$', oozie_views_editor.delete_coordinator, name='delete_coordinator'),
|
|
|
|
|
- url(r'^restore_coordinator$', oozie_views_editor.restore_coordinator, name='restore_coordinator'),
|
|
|
|
|
- url(r'^clone_coordinator/(?P<coordinator>\d+)$', oozie_views_editor.clone_coordinator, name='clone_coordinator'),
|
|
|
|
|
- url(
|
|
|
|
|
|
|
+ re_path(r'^list_workflows/?$', oozie_views_editor.list_workflows, name='list_workflows'),
|
|
|
|
|
+ re_path(r'^list_trashed_workflows/?$', oozie_views_editor.list_trashed_workflows, name='list_trashed_workflows'),
|
|
|
|
|
+ re_path(r'^create_workflow/?$', oozie_views_editor.create_workflow, name='create_workflow'),
|
|
|
|
|
+ re_path(r'^edit_workflow/(?P<workflow>\d+)/?$', oozie_views_editor.edit_workflow, name='edit_workflow'),
|
|
|
|
|
+ re_path(r'^delete_workflow$', oozie_views_editor.delete_workflow, name='delete_workflow'),
|
|
|
|
|
+ re_path(r'^restore_workflow/?$', oozie_views_editor.restore_workflow, name='restore_workflow'),
|
|
|
|
|
+ re_path(r'^clone_workflow/(?P<workflow>\d+)$', oozie_views_editor.clone_workflow, name='clone_workflow'),
|
|
|
|
|
+ re_path(r'^submit_workflow/(?P<workflow>\d+)$', oozie_views_editor.submit_workflow, name='submit_workflow'),
|
|
|
|
|
+ re_path(r'^schedule_workflow/(?P<workflow>\d+)$', oozie_views_editor.schedule_workflow, name='schedule_workflow'),
|
|
|
|
|
+ re_path(r'^import_workflow/?$', oozie_views_editor.import_workflow, name='import_workflow'),
|
|
|
|
|
+ re_path(r'^import_coordinator/?$', oozie_views_editor.import_coordinator, name='import_coordinator'),
|
|
|
|
|
+ re_path(r'^export_workflow/(?P<workflow>\d+)$', oozie_views_editor.export_workflow, name='export_workflow'),
|
|
|
|
|
+
|
|
|
|
|
+ re_path(r'^list_coordinators(?:/(?P<workflow_id>[-\w]+))?/?$', oozie_views_editor.list_coordinators, name='list_coordinators'),
|
|
|
|
|
+ re_path(r'^list_trashed_coordinators/?$', oozie_views_editor.list_trashed_coordinators, name='list_trashed_coordinators'),
|
|
|
|
|
+ re_path(r'^create_coordinator(?:/(?P<workflow>[-\w]+))?/?$', oozie_views_editor.create_coordinator, name='create_coordinator'),
|
|
|
|
|
+ re_path(r'^edit_coordinator/(?P<coordinator>[-\w]+)$', oozie_views_editor.edit_coordinator, name='edit_coordinator'),
|
|
|
|
|
+ re_path(r'^delete_coordinator$', oozie_views_editor.delete_coordinator, name='delete_coordinator'),
|
|
|
|
|
+ re_path(r'^restore_coordinator$', oozie_views_editor.restore_coordinator, name='restore_coordinator'),
|
|
|
|
|
+ re_path(r'^clone_coordinator/(?P<coordinator>\d+)$', oozie_views_editor.clone_coordinator, name='clone_coordinator'),
|
|
|
|
|
+ re_path(
|
|
|
r'^create_coordinator_dataset/(?P<coordinator>[-\w]+)$',
|
|
r'^create_coordinator_dataset/(?P<coordinator>[-\w]+)$',
|
|
|
oozie_views_editor.create_coordinator_dataset,
|
|
oozie_views_editor.create_coordinator_dataset,
|
|
|
name='create_coordinator_dataset'
|
|
name='create_coordinator_dataset'
|
|
|
),
|
|
),
|
|
|
- url(r'^edit_coordinator_dataset/(?P<dataset>\d+)$', oozie_views_editor.edit_coordinator_dataset, name='edit_coordinator_dataset'),
|
|
|
|
|
- url(
|
|
|
|
|
|
|
+ re_path(r'^edit_coordinator_dataset/(?P<dataset>\d+)$', oozie_views_editor.edit_coordinator_dataset, name='edit_coordinator_dataset'),
|
|
|
|
|
+ re_path(
|
|
|
r'^create_coordinator_data/(?P<coordinator>[-\w]+)/(?P<data_type>(input|output))$',
|
|
r'^create_coordinator_data/(?P<coordinator>[-\w]+)/(?P<data_type>(input|output))$',
|
|
|
oozie_views_editor.create_coordinator_data,
|
|
oozie_views_editor.create_coordinator_data,
|
|
|
name='create_coordinator_data'
|
|
name='create_coordinator_data'
|
|
|
),
|
|
),
|
|
|
- url(r'^submit_coordinator/(?P<coordinator>\d+)$', oozie_views_editor.submit_coordinator, name='submit_coordinator'),
|
|
|
|
|
-
|
|
|
|
|
- url(r'^list_bundles$', oozie_views_editor.list_bundles, name='list_bundles'),
|
|
|
|
|
- url(r'^list_trashed_bundles$', oozie_views_editor.list_trashed_bundles, name='list_trashed_bundles'),
|
|
|
|
|
- url(r'^create_bundle$', oozie_views_editor.create_bundle, name='create_bundle'),
|
|
|
|
|
- url(r'^edit_bundle/(?P<bundle>\d+)$', oozie_views_editor.edit_bundle, name='edit_bundle'),
|
|
|
|
|
- url(r'^submit_bundle/(?P<bundle>\d+)$', oozie_views_editor.submit_bundle, name='submit_bundle'),
|
|
|
|
|
- url(r'^clone_bundle/(?P<bundle>\d+)$', oozie_views_editor.clone_bundle, name='clone_bundle'),
|
|
|
|
|
- url(r'^delete_bundle$', oozie_views_editor.delete_bundle, name='delete_bundle'),
|
|
|
|
|
- url(r'^restore_bundle$', oozie_views_editor.restore_bundle, name='restore_bundle'),
|
|
|
|
|
- url(r'^create_bundled_coordinator/(?P<bundle>\d+)$', oozie_views_editor.create_bundled_coordinator, name='create_bundled_coordinator'),
|
|
|
|
|
- url(
|
|
|
|
|
|
|
+ re_path(r'^submit_coordinator/(?P<coordinator>\d+)$', oozie_views_editor.submit_coordinator, name='submit_coordinator'),
|
|
|
|
|
+
|
|
|
|
|
+ re_path(r'^list_bundles$', oozie_views_editor.list_bundles, name='list_bundles'),
|
|
|
|
|
+ re_path(r'^list_trashed_bundles$', oozie_views_editor.list_trashed_bundles, name='list_trashed_bundles'),
|
|
|
|
|
+ re_path(r'^create_bundle$', oozie_views_editor.create_bundle, name='create_bundle'),
|
|
|
|
|
+ re_path(r'^edit_bundle/(?P<bundle>\d+)$', oozie_views_editor.edit_bundle, name='edit_bundle'),
|
|
|
|
|
+ re_path(r'^submit_bundle/(?P<bundle>\d+)$', oozie_views_editor.submit_bundle, name='submit_bundle'),
|
|
|
|
|
+ re_path(r'^clone_bundle/(?P<bundle>\d+)$', oozie_views_editor.clone_bundle, name='clone_bundle'),
|
|
|
|
|
+ re_path(r'^delete_bundle$', oozie_views_editor.delete_bundle, name='delete_bundle'),
|
|
|
|
|
+ re_path(r'^restore_bundle$', oozie_views_editor.restore_bundle, name='restore_bundle'),
|
|
|
|
|
+ re_path(r'^create_bundled_coordinator/(?P<bundle>\d+)$', oozie_views_editor.create_bundled_coordinator, name='create_bundled_coordinator'),
|
|
|
|
|
+ re_path(
|
|
|
r'^edit_bundled_coordinator/(?P<bundle>\d+)/(?P<bundled_coordinator>\d+)$',
|
|
r'^edit_bundled_coordinator/(?P<bundle>\d+)/(?P<bundled_coordinator>\d+)$',
|
|
|
oozie_views_editor.edit_bundled_coordinator,
|
|
oozie_views_editor.edit_bundled_coordinator,
|
|
|
name='edit_bundled_coordinator'
|
|
name='edit_bundled_coordinator'
|
|
|
),
|
|
),
|
|
|
|
|
|
|
|
- url(r'^list_history$', oozie_views_editor.list_history, name='list_history'), # Unused
|
|
|
|
|
- url(r'^list_history/(?P<record_id>[-\w]+)$', oozie_views_editor.list_history_record, name='list_history_record'),
|
|
|
|
|
- url(r'^install_examples/?$', oozie_views_editor.install_examples, name='install_examples'),
|
|
|
|
|
|
|
+ re_path(r'^list_history$', oozie_views_editor.list_history, name='list_history'), # Unused
|
|
|
|
|
+ re_path(r'^list_history/(?P<record_id>[-\w]+)$', oozie_views_editor.list_history_record, name='list_history_record'),
|
|
|
|
|
+ re_path(r'^install_examples/?$', oozie_views_editor.install_examples, name='install_examples'),
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
urlpatterns += [
|
|
urlpatterns += [
|
|
|
|
|
|
|
|
- url(r'^editor/workflow/list/?$', oozie_views_editor2.list_editor_workflows, name='list_editor_workflows'),
|
|
|
|
|
- url(r'^editor/workflow/edit/?$', oozie_views_editor2.edit_workflow, name='edit_workflow'),
|
|
|
|
|
- url(r'^editor/workflow/new/?$', oozie_views_editor2.new_workflow, name='new_workflow'),
|
|
|
|
|
- url(r'^editor/workflow/delete/?$', oozie_views_editor2.delete_job, name='delete_editor_workflow'),
|
|
|
|
|
- url(r'^editor/workflow/copy/?$', oozie_views_editor2.copy_workflow, name='copy_workflow'),
|
|
|
|
|
- url(r'^editor/workflow/save/?$', oozie_views_editor2.save_workflow, name='save_workflow'),
|
|
|
|
|
- url(r'^editor/workflow/submit/(?P<doc_id>\d+)$', oozie_views_editor2.submit_workflow, name='editor_submit_workflow'),
|
|
|
|
|
- url(
|
|
|
|
|
|
|
+ re_path(r'^editor/workflow/list/?$', oozie_views_editor2.list_editor_workflows, name='list_editor_workflows'),
|
|
|
|
|
+ re_path(r'^editor/workflow/edit/?$', oozie_views_editor2.edit_workflow, name='edit_workflow'),
|
|
|
|
|
+ re_path(r'^editor/workflow/new/?$', oozie_views_editor2.new_workflow, name='new_workflow'),
|
|
|
|
|
+ re_path(r'^editor/workflow/delete/?$', oozie_views_editor2.delete_job, name='delete_editor_workflow'),
|
|
|
|
|
+ re_path(r'^editor/workflow/copy/?$', oozie_views_editor2.copy_workflow, name='copy_workflow'),
|
|
|
|
|
+ re_path(r'^editor/workflow/save/?$', oozie_views_editor2.save_workflow, name='save_workflow'),
|
|
|
|
|
+ re_path(r'^editor/workflow/submit/(?P<doc_id>\d+)$', oozie_views_editor2.submit_workflow, name='editor_submit_workflow'),
|
|
|
|
|
+ re_path(
|
|
|
r'^editor/workflow/submit_single_action/(?P<doc_id>\d+)/(?P<node_id>.+)$',
|
|
r'^editor/workflow/submit_single_action/(?P<doc_id>\d+)/(?P<node_id>.+)$',
|
|
|
oozie_views_editor2.submit_single_action,
|
|
oozie_views_editor2.submit_single_action,
|
|
|
name='submit_single_action'
|
|
name='submit_single_action'
|
|
|
),
|
|
),
|
|
|
- url(r'^editor/workflow/new_node/?$', oozie_views_editor2.new_node, name='new_node'),
|
|
|
|
|
- url(r'^editor/workflow/add_node/?$', oozie_views_editor2.add_node, name='add_node'),
|
|
|
|
|
- url(r'^editor/workflow/parameters/?$', oozie_views_editor2.workflow_parameters, name='workflow_parameters'),
|
|
|
|
|
- url(r'^editor/workflow/action/parameters/?$', oozie_views_editor2.action_parameters, name='action_parameters'),
|
|
|
|
|
- url(r'^editor/workflow/gen_xml/?$', oozie_views_editor2.gen_xml_workflow, name='gen_xml_workflow'),
|
|
|
|
|
- url(r'^editor/workflow/open_v1/?$', oozie_views_editor2.open_old_workflow, name='open_old_workflow'),
|
|
|
|
|
-
|
|
|
|
|
- url(r'^editor/coordinator/list/?$', oozie_views_editor2.list_editor_coordinators, name='list_editor_coordinators'),
|
|
|
|
|
- url(r'^editor/coordinator/edit/?$', oozie_views_editor2.edit_coordinator, name='edit_coordinator'),
|
|
|
|
|
- url(r'^editor/coordinator/new/?$', oozie_views_editor2.new_coordinator, name='new_coordinator'),
|
|
|
|
|
- url(r'^editor/coordinator/delete/?$', oozie_views_editor2.delete_job, name='delete_editor_coordinator'),
|
|
|
|
|
- url(r'^editor/coordinator/copy/?$', oozie_views_editor2.copy_coordinator, name='copy_coordinator'),
|
|
|
|
|
- url(r'^editor/coordinator/save/?$', oozie_views_editor2.save_coordinator, name='save_coordinator'),
|
|
|
|
|
- url(r'^editor/coordinator/submit/(?P<doc_id>[-\w]+)$', oozie_views_editor2.submit_coordinator, name='editor_submit_coordinator'),
|
|
|
|
|
- url(r'^editor/coordinator/gen_xml/?$', oozie_views_editor2.gen_xml_coordinator, name='gen_xml_coordinator'),
|
|
|
|
|
- url(r'^editor/coordinator/open_v1/?$', oozie_views_editor2.open_old_coordinator, name='open_old_coordinator'),
|
|
|
|
|
- url(r'^editor/coordinator/parameters/?$', oozie_views_editor2.coordinator_parameters, name='coordinator_parameters'),
|
|
|
|
|
-
|
|
|
|
|
- url(r'^editor/bundle/list/?$', oozie_views_editor2.list_editor_bundles, name='list_editor_bundles'),
|
|
|
|
|
- url(r'^editor/bundle/edit/?$', oozie_views_editor2.edit_bundle, name='edit_bundle'),
|
|
|
|
|
- url(r'^editor/bundle/new/?$', oozie_views_editor2.new_bundle, name='new_bundle'),
|
|
|
|
|
- url(r'^editor/bundle/delete/?$', oozie_views_editor2.delete_job, name='delete_editor_bundle'),
|
|
|
|
|
- url(r'^editor/bundle/copy/?$', oozie_views_editor2.copy_bundle, name='copy_bundle'),
|
|
|
|
|
- url(r'^editor/bundle/save/?$', oozie_views_editor2.save_bundle, name='save_bundle'),
|
|
|
|
|
- url(r'^editor/bundle/submit/(?P<doc_id>\d+)$', oozie_views_editor2.submit_bundle, name='editor_submit_bundle'),
|
|
|
|
|
- url(r'^editor/bundle/open_v1/?$', oozie_views_editor2.open_old_bundle, name='open_old_bundle'),
|
|
|
|
|
|
|
+ re_path(r'^editor/workflow/new_node/?$', oozie_views_editor2.new_node, name='new_node'),
|
|
|
|
|
+ re_path(r'^editor/workflow/add_node/?$', oozie_views_editor2.add_node, name='add_node'),
|
|
|
|
|
+ re_path(r'^editor/workflow/parameters/?$', oozie_views_editor2.workflow_parameters, name='workflow_parameters'),
|
|
|
|
|
+ re_path(r'^editor/workflow/action/parameters/?$', oozie_views_editor2.action_parameters, name='action_parameters'),
|
|
|
|
|
+ re_path(r'^editor/workflow/gen_xml/?$', oozie_views_editor2.gen_xml_workflow, name='gen_xml_workflow'),
|
|
|
|
|
+ re_path(r'^editor/workflow/open_v1/?$', oozie_views_editor2.open_old_workflow, name='open_old_workflow'),
|
|
|
|
|
+
|
|
|
|
|
+ re_path(r'^editor/coordinator/list/?$', oozie_views_editor2.list_editor_coordinators, name='list_editor_coordinators'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/edit/?$', oozie_views_editor2.edit_coordinator, name='edit_coordinator'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/new/?$', oozie_views_editor2.new_coordinator, name='new_coordinator'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/delete/?$', oozie_views_editor2.delete_job, name='delete_editor_coordinator'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/copy/?$', oozie_views_editor2.copy_coordinator, name='copy_coordinator'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/save/?$', oozie_views_editor2.save_coordinator, name='save_coordinator'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/submit/(?P<doc_id>[-\w]+)$', oozie_views_editor2.submit_coordinator, name='editor_submit_coordinator'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/gen_xml/?$', oozie_views_editor2.gen_xml_coordinator, name='gen_xml_coordinator'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/open_v1/?$', oozie_views_editor2.open_old_coordinator, name='open_old_coordinator'),
|
|
|
|
|
+ re_path(r'^editor/coordinator/parameters/?$', oozie_views_editor2.coordinator_parameters, name='coordinator_parameters'),
|
|
|
|
|
+
|
|
|
|
|
+ re_path(r'^editor/bundle/list/?$', oozie_views_editor2.list_editor_bundles, name='list_editor_bundles'),
|
|
|
|
|
+ re_path(r'^editor/bundle/edit/?$', oozie_views_editor2.edit_bundle, name='edit_bundle'),
|
|
|
|
|
+ re_path(r'^editor/bundle/new/?$', oozie_views_editor2.new_bundle, name='new_bundle'),
|
|
|
|
|
+ re_path(r'^editor/bundle/delete/?$', oozie_views_editor2.delete_job, name='delete_editor_bundle'),
|
|
|
|
|
+ re_path(r'^editor/bundle/copy/?$', oozie_views_editor2.copy_bundle, name='copy_bundle'),
|
|
|
|
|
+ re_path(r'^editor/bundle/save/?$', oozie_views_editor2.save_bundle, name='save_bundle'),
|
|
|
|
|
+ re_path(r'^editor/bundle/submit/(?P<doc_id>\d+)$', oozie_views_editor2.submit_bundle, name='editor_submit_bundle'),
|
|
|
|
|
+ re_path(r'^editor/bundle/open_v1/?$', oozie_views_editor2.open_old_bundle, name='open_old_bundle'),
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns += [
|
|
urlpatterns += [
|
|
|
|
|
|
|
|
- url(r'^workflows/?$', oozie_views_api.workflows, name='workflows'),
|
|
|
|
|
- url(r'^workflows/(?P<workflow>\d+)$', oozie_views_api.workflow, name='workflow'),
|
|
|
|
|
- url(r'^workflows/(?P<workflow>\d+)/save$', oozie_views_api.workflow_save, name='workflow_save'),
|
|
|
|
|
- url(r'^workflows/(?P<workflow>\d+)/actions$', oozie_views_api.workflow_actions, name='workflow_actions'),
|
|
|
|
|
- url(
|
|
|
|
|
|
|
+ re_path(r'^workflows/?$', oozie_views_api.workflows, name='workflows'),
|
|
|
|
|
+ re_path(r'^workflows/(?P<workflow>\d+)$', oozie_views_api.workflow, name='workflow'),
|
|
|
|
|
+ re_path(r'^workflows/(?P<workflow>\d+)/save$', oozie_views_api.workflow_save, name='workflow_save'),
|
|
|
|
|
+ re_path(r'^workflows/(?P<workflow>\d+)/actions$', oozie_views_api.workflow_actions, name='workflow_actions'),
|
|
|
|
|
+ re_path(
|
|
|
r'^workflows/(?P<workflow>\d+)/nodes/(?P<node_type>\w+)/validate$',
|
|
r'^workflows/(?P<workflow>\d+)/nodes/(?P<node_type>\w+)/validate$',
|
|
|
oozie_views_api.workflow_validate_node,
|
|
oozie_views_api.workflow_validate_node,
|
|
|
name='workflow_validate_node'
|
|
name='workflow_validate_node'
|
|
|
),
|
|
),
|
|
|
- url(r'^workflows/autocomplete_properties/?$', oozie_views_api.autocomplete_properties, name='autocomplete_properties'),
|
|
|
|
|
|
|
+ re_path(r'^workflows/autocomplete_properties/?$', oozie_views_api.autocomplete_properties, name='autocomplete_properties'),
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns += [
|
|
urlpatterns += [
|
|
|
|
|
|
|
|
- url(r'^$', oozie_views_dashboard.list_oozie_workflows, name='index'),
|
|
|
|
|
|
|
+ re_path(r'^$', oozie_views_dashboard.list_oozie_workflows, name='index'),
|
|
|
|
|
|
|
|
- url(r'^list_oozie_workflows/?$', oozie_views_dashboard.list_oozie_workflows, name='list_oozie_workflows'),
|
|
|
|
|
- url(r'^list_oozie_coordinators/?$', oozie_views_dashboard.list_oozie_coordinators, name='list_oozie_coordinators'),
|
|
|
|
|
- url(r'^list_oozie_bundles/?$', oozie_views_dashboard.list_oozie_bundles, name='list_oozie_bundles'),
|
|
|
|
|
- url(r'^list_oozie_workflow/(?P<job_id>[-\w]+)/?$', oozie_views_dashboard.list_oozie_workflow, name='list_oozie_workflow'),
|
|
|
|
|
- url(r'^list_oozie_coordinator/(?P<job_id>[-\w]+)/?$', oozie_views_dashboard.list_oozie_coordinator, name='list_oozie_coordinator'),
|
|
|
|
|
- url(
|
|
|
|
|
|
|
+ re_path(r'^list_oozie_workflows/?$', oozie_views_dashboard.list_oozie_workflows, name='list_oozie_workflows'),
|
|
|
|
|
+ re_path(r'^list_oozie_coordinators/?$', oozie_views_dashboard.list_oozie_coordinators, name='list_oozie_coordinators'),
|
|
|
|
|
+ re_path(r'^list_oozie_bundles/?$', oozie_views_dashboard.list_oozie_bundles, name='list_oozie_bundles'),
|
|
|
|
|
+ re_path(r'^list_oozie_workflow/(?P<job_id>[-\w]+)/?$', oozie_views_dashboard.list_oozie_workflow, name='list_oozie_workflow'),
|
|
|
|
|
+ re_path(r'^list_oozie_coordinator/(?P<job_id>[-\w]+)/?$', oozie_views_dashboard.list_oozie_coordinator, name='list_oozie_coordinator'),
|
|
|
|
|
+ re_path(
|
|
|
r'^list_oozie_workflow_action/(?P<action>[-\w@]+)/?$',
|
|
r'^list_oozie_workflow_action/(?P<action>[-\w@]+)/?$',
|
|
|
oozie_views_dashboard.list_oozie_workflow_action,
|
|
oozie_views_dashboard.list_oozie_workflow_action,
|
|
|
name='list_oozie_workflow_action'
|
|
name='list_oozie_workflow_action'
|
|
|
),
|
|
),
|
|
|
- url(r'^list_oozie_bundle/(?P<job_id>[-\w]+)$', oozie_views_dashboard.list_oozie_bundle, name='list_oozie_bundle'),
|
|
|
|
|
|
|
+ re_path(r'^list_oozie_bundle/(?P<job_id>[-\w]+)$', oozie_views_dashboard.list_oozie_bundle, name='list_oozie_bundle'),
|
|
|
|
|
|
|
|
- url(r'^rerun_oozie_job/(?P<job_id>[-\w]+)(?:/(?P<app_path>.+?))?/?$', oozie_views_dashboard.rerun_oozie_job, name='rerun_oozie_job'),
|
|
|
|
|
- url(
|
|
|
|
|
|
|
+ re_path(r'^rerun_oozie_job/(?P<job_id>[-\w]+)(?:/(?P<app_path>.+?))?/?$', oozie_views_dashboard.rerun_oozie_job, name='rerun_oozie_job'),
|
|
|
|
|
+ re_path(
|
|
|
r'^rerun_oozie_coord/(?P<job_id>[-\w]+)(?:/(?P<app_path>.+?))?/?$',
|
|
r'^rerun_oozie_coord/(?P<job_id>[-\w]+)(?:/(?P<app_path>.+?))?/?$',
|
|
|
oozie_views_dashboard.rerun_oozie_coordinator,
|
|
oozie_views_dashboard.rerun_oozie_coordinator,
|
|
|
name='rerun_oozie_coord'
|
|
name='rerun_oozie_coord'
|
|
|
),
|
|
),
|
|
|
- url(r'^rerun_oozie_bundle/(?P<job_id>[-\w]+)/(?P<app_path>.+?)$', oozie_views_dashboard.rerun_oozie_bundle, name='rerun_oozie_bundle'),
|
|
|
|
|
- url(r'^sync_coord_workflow/(?P<job_id>[-\w]+)$', oozie_views_dashboard.sync_coord_workflow, name='sync_coord_workflow'),
|
|
|
|
|
- url(
|
|
|
|
|
|
|
+ re_path(r'^rerun_oozie_bundle/(?P<job_id>[-\w]+)/(?P<app_path>.+?)$', oozie_views_dashboard.rerun_oozie_bundle, name='rerun_oozie_bundle'),
|
|
|
|
|
+ re_path(r'^sync_coord_workflow/(?P<job_id>[-\w]+)$', oozie_views_dashboard.sync_coord_workflow, name='sync_coord_workflow'),
|
|
|
|
|
+ re_path(
|
|
|
r'^manage_oozie_jobs/(?P<job_id>[-\w]+)/(?P<action>(start|suspend|resume|kill|rerun|change|ignore))$',
|
|
r'^manage_oozie_jobs/(?P<job_id>[-\w]+)/(?P<action>(start|suspend|resume|kill|rerun|change|ignore))$',
|
|
|
oozie_views_dashboard.manage_oozie_jobs,
|
|
oozie_views_dashboard.manage_oozie_jobs,
|
|
|
name='manage_oozie_jobs'
|
|
name='manage_oozie_jobs'
|
|
|
),
|
|
),
|
|
|
- url(r'^bulk_manage_oozie_jobs/?$', oozie_views_dashboard.bulk_manage_oozie_jobs, name='bulk_manage_oozie_jobs'),
|
|
|
|
|
|
|
+ re_path(r'^bulk_manage_oozie_jobs/?$', oozie_views_dashboard.bulk_manage_oozie_jobs, name='bulk_manage_oozie_jobs'),
|
|
|
|
|
|
|
|
- url(r'^submit_external_job/(?P<application_path>.+?)$', oozie_views_dashboard.submit_external_job, name='submit_external_job'),
|
|
|
|
|
- url(r'^get_oozie_job_log/(?P<job_id>[-\w]+)$', oozie_views_dashboard.get_oozie_job_log, name='get_oozie_job_log'),
|
|
|
|
|
|
|
+ re_path(r'^submit_external_job/(?P<application_path>.+?)$', oozie_views_dashboard.submit_external_job, name='submit_external_job'),
|
|
|
|
|
+ re_path(r'^get_oozie_job_log/(?P<job_id>[-\w]+)$', oozie_views_dashboard.get_oozie_job_log, name='get_oozie_job_log'),
|
|
|
|
|
|
|
|
- url(r'^list_oozie_info/?$', oozie_views_dashboard.list_oozie_info, name='list_oozie_info'),
|
|
|
|
|
|
|
+ re_path(r'^list_oozie_info/?$', oozie_views_dashboard.list_oozie_info, name='list_oozie_info'),
|
|
|
|
|
|
|
|
- url(r'^list_oozie_sla/?$', oozie_views_dashboard.list_oozie_sla, name='list_oozie_sla'),
|
|
|
|
|
|
|
+ re_path(r'^list_oozie_sla/?$', oozie_views_dashboard.list_oozie_sla, name='list_oozie_sla'),
|
|
|
]
|
|
]
|