feat(devops): Update Checkin model url route basename

ref: #807 closes #808
This commit is contained in:
2025-06-09 11:13:10 +09:30
parent 9a250c988d
commit 6b54eebbd2
7 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ class Index(
ref = str(item.organization.name) + '_' + str(item.software.name)
endpoints[ref] = reverse(
'v2:public:devops:_public_api_v2_feature_flag-list',
'v2:public:devops:_api_checkin-list',
request=request,
kwargs = {
'organization_id': int(item.software.id),

View File

@ -66,7 +66,7 @@ class Checkin(
"""
url = reverse(
'v2:public:devops:_public_api_v2_feature_flag-list',
'v2:public:devops:_api_checkin-list',
kwargs={
'organization_id': self.organization.id,
'software_id': self.software.id,
@ -97,7 +97,7 @@ class Checkin(
"""
url = reverse(
'v2:public:devops:_public_api_v2_feature_flag-list',
'v2:public:devops:_api_checkin-list',
kwargs={
'organization_id': self.organization.id,
'software_id': self.software.id,

View File

@ -23,7 +23,7 @@ class ViewSetBase:
app_namespace = 'v2'
url_name = 'public:devops:_public_api_v2_feature_flag'
url_name = 'public:devops:_api_checkin'
@classmethod

View File

@ -61,7 +61,7 @@ class API(
self.id = str(self.item.created.year) + '-' + str(f'{self.item.id:05}')
client = Client()
url = reverse('v2:public:devops:_public_api_v2_feature_flag-list', kwargs=self.url_view_kwargs)
url = reverse('v2:public:devops:_api_checkin-list', kwargs=self.url_view_kwargs)
self.response = client.get(url)

View File

@ -19,7 +19,7 @@ class ViewsetList(
viewset = ViewSet
route_name = 'v2:public:devops:_public_api_v2_feature_flag'
route_name = 'v2:public:devops:_api_checkin'
@classmethod

View File

@ -13,6 +13,6 @@ router = SimpleRouter(trailing_slash=False)
router.register('flags', feature_flag_endpoints.Index, basename='_api_v2_flags')
router.register('(?P<organization_id>[0-9]+)/flags/(?P<software_id>[0-9]+)', public_feature_flag.ViewSet, basename='_public_api_v2_feature_flag')
router.register('(?P<organization_id>[0-9]+)/flags/(?P<software_id>[0-9]+)', public_feature_flag.ViewSet, basename='_api_checkin')
urlpatterns = router.urls

View File

@ -50,7 +50,7 @@ class Index(
endpoints[str(item.organization.name)] = {}
endpoints[str(item.organization.name)][str(item.software.name)] = reverse(
'v2:public:devops:_public_api_v2_feature_flag-list',
'v2:public:devops:_api_checkin-list',
request=request,
kwargs = {
'organization_id': int(item.organization.id),