1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-09 16:38:20 +00:00

github actions ignore repo_metadata ()

* github actions ignore repo_metadata

* fix test

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
欢乐马 2025-03-11 11:41:51 +08:00 committed by GitHub
parent f664bed3a1
commit a58f877b94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions
.github/workflows
seahub/api2

View File

@ -42,6 +42,7 @@ jobs:
- name: run pytest
run: |
cd $GITHUB_WORKSPACE
rm -r tests/seahub/repo_metadata
export CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data TRAVIS=1 SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub
if ./tests/test_seahub_changes.sh; then ./tests/seahubtests.sh init && ./tests/seahubtests.sh runserver && ./tests/seahubtests.sh test; else true; fi

View File

@ -142,7 +142,7 @@ from seaserv import seafserv_threaded_rpc, \
check_quota, list_share_repos, get_group_repos_by_owner, get_group_repoids, \
remove_share, get_group, get_file_id_by_path, edit_repo, \
ccnet_threaded_rpc, get_personal_groups, seafile_api, \
create_org, ccnet_api
create_org, ccnet_api, get_org_id_by_repo_id
from constance import config
@ -1871,7 +1871,7 @@ class RepoOwner(APIView):
# transfer repo
try:
transfer_repo(repo_id, new_owner, is_share, org_id)
org_id = seafile_api.get_org_id_by_repo_id(repo_id)
org_id = get_org_id_by_repo_id(repo_id)
RepoTransfer.objects.create(from_user=repo_owner,
to=new_owner,
repo_id=repo_id,