chore(feature_flag): [2025-00001] add feature flag as enabled when DEBUG=True
so that development can occur ref: #693 #515
This commit is contained in:
@ -518,6 +518,16 @@ class ReactUIMetadata(OverRideJSONAPIMetadata):
|
||||
}
|
||||
}
|
||||
|
||||
if request.feature_flag['2025-00001']:
|
||||
|
||||
nav['devops']['pages'].update({
|
||||
'view_gitrepository': {
|
||||
"display_name": "Git Repositories",
|
||||
"name": "git_repository",
|
||||
"icon": 'git_repository',
|
||||
"link": "/devops/git_repository"
|
||||
}
|
||||
})
|
||||
|
||||
return nav
|
||||
|
||||
|
@ -498,3 +498,20 @@ if FEATURE_FLAGGING_ENABLED:
|
||||
'over_rides': FEATURE_FLAG_OVERRIDES
|
||||
})
|
||||
|
||||
if DEBUG:
|
||||
|
||||
debug_feature_flags = [
|
||||
{
|
||||
"2025-00001": {
|
||||
"name": "DevOps/Git Repositories",
|
||||
"description": "Disables Git Repositories and Git Groups. see https://github.com/nofusscomputing/centurion_erp/issues/515",
|
||||
"enabled": True,
|
||||
"created": "",
|
||||
"modified": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
feature_flag.update({
|
||||
'over_rides': debug_feature_flags
|
||||
})
|
||||
|
@ -19,7 +19,7 @@ router = DefaultRouter(trailing_slash=False)
|
||||
router.register('feature_flag', feature_flag.ViewSet, basename='_api_v2_feature_flag')
|
||||
router.register('feature_flag/(?P<model_id>[0-9]+)/notes', feature_flag_notes.ViewSet, basename='_api_v2_feature_flag_note')
|
||||
|
||||
router.register(r'git_repository/(?P<git_provider>gitlab|github)?', git_repository.ViewSet, feature_flag = '2025-00001', basename='_api_v2_git_repository')
|
||||
router.register(r'git_repository(/(?P<git_provider>gitlab|github))?', git_repository.ViewSet, feature_flag = '2025-00001', basename='_api_v2_git_repository')
|
||||
|
||||
router.register('git_group', git_group.ViewSet, feature_flag = '2025-00001', basename='_api_v2_git_group')
|
||||
router.register('git_group/notes', git_group_notes.ViewSet, feature_flag = '2025-00001', basename='_api_v2_git_group_notes')
|
||||
|
Reference in New Issue
Block a user