chore(human_resources): add employee to feature flag 2025-00005

ref: #722 #684 #92
This commit is contained in:
2025-04-15 15:45:43 +09:30
parent 6258fb2a33
commit 529a7fa385
3 changed files with 20 additions and 10 deletions

View File

@ -585,15 +585,16 @@ class ReactUIMetadata(OverRideJSONAPIMetadata):
}
})
if request.feature_flag['2025-00005']:
nav['human_resources']['pages'].update({
'view_employee': {
"display_name": "Employees",
"name": "employees",
"icon": "employees",
"link": "/access/entity/employee"
}
})
nav['human_resources']['pages'].update({
'view_employee': {
"display_name": "Employees",
"name": "employees",
"icon": "employees",
"link": "/access/entity/employee"
}
})
if request.feature_flag['2025-00003']:

View File

@ -543,6 +543,15 @@ if FEATURE_FLAGGING_ENABLED:
"modified": ""
}
},
{
"2025-00005": {
"name": "Human Resources/Employee",
"description": "Employee Model. see https://github.com/nofusscomputing/centurion_erp/issues/92",
"enabled": True,
"created": "",
"modified": ""
}
},
]
feature_flag.update({

View File

@ -1,4 +1,4 @@
from rest_framework.routers import DefaultRouter
from centurion_feature_flag.urls.routers import DefaultRouter
app_name = "hr"
@ -7,6 +7,6 @@ from human_resources.viewsets import index as HumanResourcesHome
router = DefaultRouter(trailing_slash=False)
router.register('', HumanResourcesHome.Index, basename='_api_v2_access_home')
router.register('', HumanResourcesHome.Index, feature_flag = '2025-00005', basename='_api_v2_access_home')
urlpatterns = router.urls