Draft: Resolve "fix: export all don't export projects"
Compare changes
+ 77
− 56
@@ -101,7 +101,7 @@ _help() {
@@ -101,7 +101,7 @@ _help() {
@@ -125,11 +125,12 @@ _load_config() {
@@ -125,11 +125,12 @@ _load_config() {
@@ -141,7 +142,7 @@ _load_config() {
@@ -141,7 +142,7 @@ _load_config() {
@@ -194,7 +195,7 @@ _api() {
@@ -194,7 +195,7 @@ _api() {
_api GET "groups/${group_url_encoded}/projects?include_subgroups=true&per_page=${API_PER_PAGE}" --head \
@@ -204,6 +205,18 @@ _get_projects_from_group() {
@@ -204,6 +205,18 @@ _get_projects_from_group() {
@@ -217,15 +230,15 @@ _get_export_filename() {
@@ -217,15 +230,15 @@ _get_export_filename() {
@@ -267,6 +280,7 @@ _export_project() {
@@ -267,6 +280,7 @@ _export_project() {
@@ -308,12 +322,10 @@ _export_group() {
@@ -308,12 +322,10 @@ _export_group() {
@@ -329,31 +341,22 @@ _get_groups() {
@@ -329,31 +341,22 @@ _get_groups() {
_api GET "projects?per_page=${API_PER_PAGE}&page=${page}${archived_filter}${owned_filter}" | jq -r '.[].path'
@@ -374,7 +377,7 @@ _export() {
@@ -374,7 +377,7 @@ _export() {
@@ -401,8 +404,8 @@ _import_all(){
@@ -401,8 +404,8 @@ _import_all(){
@@ -415,7 +418,7 @@ _import() {
@@ -415,7 +418,7 @@ _import() {
@@ -463,7 +466,7 @@ _schedule_group_import() {
@@ -463,7 +466,7 @@ _schedule_group_import() {
@@ -491,7 +494,6 @@ _import_project(){
@@ -491,7 +494,6 @@ _import_project(){
@@ -531,20 +533,22 @@ _project_import_status() {
@@ -531,20 +533,22 @@ _project_import_status() {
|| echo "/projects/$(_get_url_encode "${project_full_namespace}/${project_path}")/members/${curent_user_id}" >> "${api_path_remove_list}"
@@ -555,11 +559,11 @@ _report_all() {
@@ -555,11 +559,11 @@ _report_all() {
@@ -577,17 +581,28 @@ _report_all() {
@@ -577,17 +581,28 @@ _report_all() {
@@ -597,7 +612,7 @@ _report_all() {
@@ -597,7 +612,7 @@ _report_all() {
@@ -612,11 +627,11 @@ _list_users_group(){
@@ -612,11 +627,11 @@ _list_users_group(){
cat ./tree/groups/*/members.ndjson | jq -r '.user.username + ";" + .user.public_email' >> "${report_tmp_file}"
@@ -631,7 +646,7 @@ _list_users_project(){
@@ -631,7 +646,7 @@ _list_users_project(){
cat ./tree/project/project_members.ndjson | jq -r '.user.username + ";" + .user.public_email' >> "${report_tmp_file}"
@@ -652,6 +667,12 @@ _check_user_exist() {
@@ -652,6 +667,12 @@ _check_user_exist() {