feature: makes forks and PR's link to clearly show admin what will be done
This commit is contained in:
parent
03fc3ab570
commit
d392589e5c
8 changed files with 92 additions and 83 deletions
|
|
@ -50,7 +50,7 @@ from rhodecode.model.comment import CommentsModel
|
|||
from rhodecode.model.db import Session, ChangesetStatus, RepositoryField, Repository, RepoGroup, ChangesetComment
|
||||
from rhodecode.model.permission import PermissionModel
|
||||
from rhodecode.model.pull_request import PullRequestModel
|
||||
from rhodecode.model.repo import RepoModel
|
||||
from rhodecode.model.repo import RepoModel, ForksAction
|
||||
from rhodecode.model.scm import ScmModel, RepoList
|
||||
from rhodecode.model.settings import SettingsModel, VcsSettingsModel
|
||||
from rhodecode.model import validation_schema
|
||||
|
|
@ -1373,7 +1373,7 @@ def delete_repo(request, apiuser, repoid, forks=Optional("")):
|
|||
raise JSONRPCError(f"Cannot delete `{repo.repo_name}` it still contains attached forks")
|
||||
|
||||
old_data = repo.get_api_data()
|
||||
RepoModel().delete(repo, forks=RepoModel.ForkAction(handle_forks))
|
||||
RepoModel().delete(repo, forks_action=ForksAction(handle_forks))
|
||||
|
||||
repo = audit_logger.RepoWrap(repo_id=None, repo_name=repo.repo_name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue