Skip to content

Revert "Merge branch '442899-update-project-rest-api' into 'master'"

Jay McCure requested to merge revert-8342ab49 into master

What does this MR do and why?

This reverts merge request !152023 (merged)

Additional context: https://gitlab.slack.com/archives/C72HPNV97/p1715902105544789

The projects api no longer returns settings for Developers or lower, this causes issues with the GitLab cli as it checks these settings before creating issues and MRs. Since the setting is no longer returned the cli doesn't create issues and MRs.

User reported issues: cli#7525 (closed)

The api no longer returns the following fields:

{
    "emails_disabled": false,
    "emails_enabled": true,
    "resolve_outdated_diff_discussions": false,
    "container_expiration_policy":
    {
        "cadence": "1d",
        "enabled": false,
        "keep_n": 10,
        "older_than": "90d",
        "name_regex": ".*",
        "name_regex_keep": null,
        "next_run_at": "2022-12-22T16:40:23.470Z"
    },
    "repository_object_format": "sha1",
    "shared_runners_enabled": true,
    "lfs_enabled": true,
    "creator_id": 142752,
    "import_url": "https://gitlab.com/glab-cli/test.git",
    "import_type": "git",
    "import_status": "finished",
    "import_error": null,
    "ci_default_git_depth": 20,
    "ci_forward_deployment_enabled": true,
    "ci_forward_deployment_rollback_allowed": true,
    "ci_job_token_scope_enabled": false,
    "ci_separated_caches": true,
    "ci_allow_fork_pipelines_to_run_in_parent_project": true,
    "build_git_strategy": "fetch",
    "keep_latest_artifact": true,
    "restrict_user_defined_variables": false,
    "runners_token": null,
    "runner_token_expiration_interval": null,
    "group_runners_enabled": true,
    "auto_cancel_pending_pipelines": "enabled",
    "build_timeout": 3600,
    "auto_devops_enabled": false,
    "auto_devops_deploy_strategy": "continuous",
    "public_jobs": true,
    "only_allow_merge_if_pipeline_succeeds": false,
    "allow_merge_on_skipped_pipeline": null,
    "request_access_enabled": true,
    "only_allow_merge_if_all_discussions_are_resolved": false,
    "remove_source_branch_after_merge": true,
    "printing_merge_request_link_enabled": true,
    "merge_method": "merge",
    "squash_option": "default_off",
    "enforce_auth_checks_on_uploads": true,
    "suggestion_commit_message": null,
    "merge_commit_template": null,
    "squash_commit_template": null,
    "issue_branch_template": null,
    "warn_about_potentially_unwanted_characters": true,
    "autoclose_referenced_issues": true,
    "packages_enabled": true,
    "service_desk_enabled": true,
    "issues_enabled": true,
    "merge_requests_enabled": true,
    "wiki_enabled": true,
    "jobs_enabled": true,
    "snippets_enabled": true,
    "container_registry_enabled": true,
    "issues_access_level": "enabled",
    "repository_access_level": "enabled",
    "merge_requests_access_level": "enabled",
    "forking_access_level": "enabled",
    "wiki_access_level": "enabled",
    "builds_access_level": "enabled",
    "snippets_access_level": "enabled",
    "pages_access_level": "enabled",
    "analytics_access_level": "enabled",
    "container_registry_access_level": "enabled",
    "security_and_compliance_access_level": "private",
    "releases_access_level": "enabled",
    "environments_access_level": "enabled",
    "feature_flags_access_level": "enabled",
    "infrastructure_access_level": "enabled",
    "monitor_access_level": "enabled",
    "model_experiments_access_level": "enabled",
    "model_registry_access_level": "enabled",
    "external_authorization_classification_label": "",
    "requirements_enabled": false,
    "security_and_compliance_enabled": true,
    "requirements_access_level": "enabled",
    "compliance_frameworks":
    []
}

Revert "Merge branch '442899-update-project-rest-api' into 'master'"

This reverts merge request !152023 (merged)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Jay McCure

Merge request reports