Merge "Address RemovedInDjango40Warning"

This commit is contained in:
Zuul 2022-08-11 14:01:31 +00:00 committed by Gerrit Code Review
commit 0c57fd76c4
3 changed files with 158 additions and 148 deletions

View File

@ -12,7 +12,7 @@
# limitations under the License.
from django.conf.urls import url
from django.urls import re_path
import sahara_dashboard.content.data_processing.clusters.views as views
import sahara_dashboard.content.data_processing.clusters.image_registry. \
@ -27,91 +27,100 @@ import sahara_dashboard.content.data_processing.clusters.wizard. \
views as cluster_guide_views
urlpatterns = [url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^\?tab=cluster_tabs__image_registry_tab$',
views.IndexView.as_view(), name='image-registry-tab'),
url(r'^\?tab=cluster_tabs__node_group_templates_tab$',
views.IndexView.as_view(), name='nodegroup-templates-tab'),
url(r'^\?tab=cluster_tabs__clusters_templates_tab$',
views.IndexView.as_view(), name='cluster-templates-tab'),
url(r'^\?tab=cluster_tabs__clusters_tab$',
views.IndexView.as_view(), name='clusters-tab'),
url(r'^create-cluster-template$',
ct_views.CreateClusterTemplateView.as_view(),
name='create-cluster-template'),
url(r'^create-nodegroup-template$',
ngt_views.CreateNodegroupTemplateView.as_view(),
name='create-nodegroup-template'),
url(r'^configure-cluster-template$',
ct_views.ConfigureClusterTemplateView.as_view(),
name='configure-cluster-template'),
url(r'^import-cluster-template-file$',
ct_views.ImportClusterTemplateFileView.as_view(),
name='import-cluster-template-file'),
url(r'^import-cluster-template-name$',
ct_views.ImportClusterTemplateNameView.as_view(),
name='import-cluster-template-name'),
url(r'^import-cluster-template-nodegroups$',
ct_views.ImportClusterTemplateNodegroupsView.as_view(),
name='import-cluster-template-nodegroups'),
url(r'^configure-nodegroup-template$',
ngt_views.ConfigureNodegroupTemplateView.as_view(),
name='configure-nodegroup-template'),
url(r'^import-nodegroup-template-file$',
ngt_views.ImportNodegroupTemplateFileView.as_view(),
name='import-nodegroup-template-file'),
url(r'^import-nodegroup-template-details$',
ngt_views.ImportNodegroupTemplateDetailsView.as_view(),
name='import-nodegroup-template-details'),
url(r'^cluster-template/(?P<template_id>[^/]+)$',
ct_views.ClusterTemplateDetailsView.as_view(),
name='ct-details'),
url(r'^node-group-template/(?P<template_id>[^/]+)$',
ngt_views.NodegroupTemplateDetailsView.as_view(),
name='details'),
url(r'^cluster-template/(?P<template_id>[^/]+)/copy$',
ct_views.CopyClusterTemplateView.as_view(), name='ct-copy'),
url(r'^cluster-template/(?P<template_id>[^/]+)/edit$',
ct_views.EditClusterTemplateView.as_view(), name='ct-edit'),
url(r'^node-group-template/(?P<template_id>[^/]+)/copy$',
ngt_views.CopyNodegroupTemplateView.as_view(), name='copy'),
url(r'^node-group-template/(?P<template_id>[^/]+)/edit$',
ngt_views.EditNodegroupTemplateView.as_view(), name='edit'),
url(r'^create-cluster$',
cluster_views.CreateClusterView.as_view(),
name='create-cluster'),
url(r'^configure-cluster$',
cluster_views.ConfigureClusterView.as_view(),
name='configure-cluster'),
url(r'^cluster/(?P<cluster_id>[^/]+)$',
cluster_views.ClusterDetailsView.as_view(),
name='cluster-details'),
url(r'^cluster/(?P<cluster_id>[^/]+)/events$',
cluster_views.ClusterEventsView.as_view(), name='events'),
url(r'^cluster/(?P<cluster_id>[^/]+)/scale$',
cluster_views.ScaleClusterView.as_view(), name='scale'),
url(r'^cluster/(?P<cluster_id>[^/]+)/verifications$',
cluster_views.ClusterHealthChecksView.as_view(),
name='verifications'),
url(r'^cluster/(?P<cluster_id>[^/]+)/update_shares$',
cluster_views.UpdateClusterSharesView.as_view(),
name='update-shares'),
url(r'^edit_tags/(?P<image_id>[^/]+)/$',
image_views.EditTagsView.as_view(), name='edit_tags'),
url(r'^register/$',
image_views.RegisterImageView.as_view(), name='register'),
url(r'^cluster_guide$',
cluster_guide_views.ClusterGuideView.as_view(),
name='cluster_guide'),
url(r'^cluster_guide/(?P<reset_cluster_guide>[^/]+)/$',
cluster_guide_views.ResetClusterGuideView.as_view(),
name='reset_cluster_guide'),
url(r'^image_register/$',
cluster_guide_views.ImageRegisterView.as_view(),
name='image_register'),
url(r'^plugin_select$',
cluster_guide_views.PluginSelectView.as_view(),
name='plugin_select'),
url(r'^ngt_select$',
cluster_guide_views.NodeGroupSelectView.as_view(),
name='ngt_select'), ]
urlpatterns = [re_path(r'^$', views.IndexView.as_view(), name='index'),
re_path(r'^\?tab=cluster_tabs__image_registry_tab$',
views.IndexView.as_view(), name='image-registry-tab'),
re_path(r'^\?tab=cluster_tabs__node_group_templates_tab$',
views.IndexView.as_view(),
name='nodegroup-templates-tab'),
re_path(r'^\?tab=cluster_tabs__clusters_templates_tab$',
views.IndexView.as_view(),
name='cluster-templates-tab'),
re_path(r'^\?tab=cluster_tabs__clusters_tab$',
views.IndexView.as_view(), name='clusters-tab'),
re_path(r'^create-cluster-template$',
ct_views.CreateClusterTemplateView.as_view(),
name='create-cluster-template'),
re_path(r'^create-nodegroup-template$',
ngt_views.CreateNodegroupTemplateView.as_view(),
name='create-nodegroup-template'),
re_path(r'^configure-cluster-template$',
ct_views.ConfigureClusterTemplateView.as_view(),
name='configure-cluster-template'),
re_path(r'^import-cluster-template-file$',
ct_views.ImportClusterTemplateFileView.as_view(),
name='import-cluster-template-file'),
re_path(r'^import-cluster-template-name$',
ct_views.ImportClusterTemplateNameView.as_view(),
name='import-cluster-template-name'),
re_path(r'^import-cluster-template-nodegroups$',
ct_views.ImportClusterTemplateNodegroupsView.as_view(),
name='import-cluster-template-nodegroups'),
re_path(r'^configure-nodegroup-template$',
ngt_views.ConfigureNodegroupTemplateView.as_view(),
name='configure-nodegroup-template'),
re_path(r'^import-nodegroup-template-file$',
ngt_views.ImportNodegroupTemplateFileView.as_view(),
name='import-nodegroup-template-file'),
re_path(r'^import-nodegroup-template-details$',
ngt_views.ImportNodegroupTemplateDetailsView.as_view(),
name='import-nodegroup-template-details'),
re_path(r'^cluster-template/(?P<template_id>[^/]+)$',
ct_views.ClusterTemplateDetailsView.as_view(),
name='ct-details'),
re_path(r'^node-group-template/(?P<template_id>[^/]+)$',
ngt_views.NodegroupTemplateDetailsView.as_view(),
name='details'),
re_path(r'^cluster-template/(?P<template_id>[^/]+)/copy$',
ct_views.CopyClusterTemplateView.as_view(),
name='ct-copy'),
re_path(r'^cluster-template/(?P<template_id>[^/]+)/edit$',
ct_views.EditClusterTemplateView.as_view(),
name='ct-edit'),
re_path(r'^node-group-template/(?P<template_id>[^/]+)/copy$',
ngt_views.CopyNodegroupTemplateView.as_view(),
name='copy'),
re_path(r'^node-group-template/(?P<template_id>[^/]+)/edit$',
ngt_views.EditNodegroupTemplateView.as_view(),
name='edit'),
re_path(r'^create-cluster$',
cluster_views.CreateClusterView.as_view(),
name='create-cluster'),
re_path(r'^configure-cluster$',
cluster_views.ConfigureClusterView.as_view(),
name='configure-cluster'),
re_path(r'^cluster/(?P<cluster_id>[^/]+)$',
cluster_views.ClusterDetailsView.as_view(),
name='cluster-details'),
re_path(r'^cluster/(?P<cluster_id>[^/]+)/events$',
cluster_views.ClusterEventsView.as_view(),
name='events'),
re_path(r'^cluster/(?P<cluster_id>[^/]+)/scale$',
cluster_views.ScaleClusterView.as_view(),
name='scale'),
re_path(r'^cluster/(?P<cluster_id>[^/]+)/verifications$',
cluster_views.ClusterHealthChecksView.as_view(),
name='verifications'),
re_path(r'^cluster/(?P<cluster_id>[^/]+)/update_shares$',
cluster_views.UpdateClusterSharesView.as_view(),
name='update-shares'),
re_path(r'^edit_tags/(?P<image_id>[^/]+)/$',
image_views.EditTagsView.as_view(), name='edit_tags'),
re_path(r'^register/$',
image_views.RegisterImageView.as_view(),
name='register'),
re_path(r'^cluster_guide$',
cluster_guide_views.ClusterGuideView.as_view(),
name='cluster_guide'),
re_path(r'^cluster_guide/(?P<reset_cluster_guide>[^/]+)/$',
cluster_guide_views.ResetClusterGuideView.as_view(),
name='reset_cluster_guide'),
re_path(r'^image_register/$',
cluster_guide_views.ImageRegisterView.as_view(),
name='image_register'),
re_path(r'^plugin_select$',
cluster_guide_views.PluginSelectView.as_view(),
name='plugin_select'),
re_path(r'^ngt_select$',
cluster_guide_views.NodeGroupSelectView.as_view(),
name='ngt_select'), ]

View File

@ -11,16 +11,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from django.conf.urls import url
from django.urls import re_path
from sahara_dashboard.content.data_processing.data_plugins import views
urlpatterns = [
url(r'^$', views.PluginsView.as_view(), name='index'),
url(r'^(?P<plugin_id>[^/]+)$',
views.PluginDetailsView.as_view(), name='plugin-details'),
url(r'^(?P<plugin_name>[^/]+)/update',
views.UpdatePluginView.as_view(),
name='update'),
re_path(r'^$', views.PluginsView.as_view(), name='index'),
re_path(r'^(?P<plugin_id>[^/]+)$',
views.PluginDetailsView.as_view(), name='plugin-details'),
re_path(r'^(?P<plugin_name>[^/]+)/update',
views.UpdatePluginView.as_view(),
name='update'),
]

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from django.conf.urls import url
from django.urls import re_path
import sahara_dashboard.content.data_processing. \
jobs.views as views
@ -27,55 +27,56 @@ import sahara_dashboard.content.data_processing. \
jobs.jobs.views as jobs_views
urlpatterns = [url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^$', views.IndexView.as_view(), name='jobs'),
url(r'^\?tab=job_tabs__jobs_tab$', views.IndexView.as_view(),
name='jobs-tab'),
url(r'^create-job$',
job_templates_views.CreateJobView.as_view(),
name='create-job'),
url(r'^launch-job$',
job_templates_views.LaunchJobView.as_view(),
name='launch-job'),
url(r'^launch-job-new-cluster$', job_templates_views.
LaunchJobNewClusterView.as_view(),
name='launch-job-new-cluster'),
url(r'^choose-plugin$',
job_templates_views.ChoosePluginView.as_view(),
name='choose-plugin'),
url(r'^job-template/(?P<job_id>[^/]+)$',
job_templates_views.
JobTemplateDetailsView.as_view(), name='jt-details'),
url(r'^job-execution/(?P<job_execution_id>[^/]+)$',
jobs_views.JobDetailsView.as_view(), name='details'),
url(r'^create-job-binary$',
job_binary_views.CreateJobBinaryView.as_view(),
name='create-job-binary'),
url(r'^job-binary/(?P<job_binary_id>[^/]+)$',
job_binary_views.JobBinaryDetailsView.as_view(),
name='jb-details'),
url(r'^job-binary/(?P<job_binary_id>[^/]+)/edit$',
job_binary_views.EditJobBinaryView.as_view(),
name='edit-job-binary'),
url(r'^job-binary/(?P<job_binary_id>[^/]+)/download/$',
job_binary_views.DownloadJobBinaryView.as_view(),
name='download'),
url(r'^create-data-source$',
data_source_views.CreateDataSourceView.as_view(),
name='create-data-source'),
url(r'^data-source/(?P<data_source_id>[^/]+)/edit$',
data_source_views.EditDataSourceView.as_view(),
name='edit-data-source'),
url(r'^data-source/(?P<data_source_id>[^/]+)$',
data_source_views.DataSourceDetailsView.as_view(),
name='ds-details'),
url(r'^jobex_guide$',
job_wizard_views.JobExecutionGuideView.as_view(),
name='jobex_guide'),
url(r'^jobex_guide/(?P<reset_jobex_guide>[^/]+)/$',
job_wizard_views.ResetJobExGuideView.as_view(),
name='reset_jobex_guide'),
url(r'^job_type_select$',
job_wizard_views.JobTypeSelectView.as_view(),
name='job_type_select'),
urlpatterns = [re_path(r'^$', views.IndexView.as_view(), name='index'),
re_path(r'^$', views.IndexView.as_view(), name='jobs'),
re_path(r'^\?tab=job_tabs__jobs_tab$',
views.IndexView.as_view(),
name='jobs-tab'),
re_path(r'^create-job$',
job_templates_views.CreateJobView.as_view(),
name='create-job'),
re_path(r'^launch-job$',
job_templates_views.LaunchJobView.as_view(),
name='launch-job'),
re_path(r'^launch-job-new-cluster$', job_templates_views.
LaunchJobNewClusterView.as_view(),
name='launch-job-new-cluster'),
re_path(r'^choose-plugin$',
job_templates_views.ChoosePluginView.as_view(),
name='choose-plugin'),
re_path(r'^job-template/(?P<job_id>[^/]+)$',
job_templates_views.
JobTemplateDetailsView.as_view(), name='jt-details'),
re_path(r'^job-execution/(?P<job_execution_id>[^/]+)$',
jobs_views.JobDetailsView.as_view(), name='details'),
re_path(r'^create-job-binary$',
job_binary_views.CreateJobBinaryView.as_view(),
name='create-job-binary'),
re_path(r'^job-binary/(?P<job_binary_id>[^/]+)$',
job_binary_views.JobBinaryDetailsView.as_view(),
name='jb-details'),
re_path(r'^job-binary/(?P<job_binary_id>[^/]+)/edit$',
job_binary_views.EditJobBinaryView.as_view(),
name='edit-job-binary'),
re_path(r'^job-binary/(?P<job_binary_id>[^/]+)/download/$',
job_binary_views.DownloadJobBinaryView.as_view(),
name='download'),
re_path(r'^create-data-source$',
data_source_views.CreateDataSourceView.as_view(),
name='create-data-source'),
re_path(r'^data-source/(?P<data_source_id>[^/]+)/edit$',
data_source_views.EditDataSourceView.as_view(),
name='edit-data-source'),
re_path(r'^data-source/(?P<data_source_id>[^/]+)$',
data_source_views.DataSourceDetailsView.as_view(),
name='ds-details'),
re_path(r'^jobex_guide$',
job_wizard_views.JobExecutionGuideView.as_view(),
name='jobex_guide'),
re_path(r'^jobex_guide/(?P<reset_jobex_guide>[^/]+)/$',
job_wizard_views.ResetJobExGuideView.as_view(),
name='reset_jobex_guide'),
re_path(r'^job_type_select$',
job_wizard_views.JobTypeSelectView.as_view(),
name='job_type_select'),
]