Create Project API not all attributes work
### Summary Several of the attributes in the [GitLab Project Create API](https://docs.gitlab.com/ee/api/projects.html#create-project) call do not function correctly. ### Steps to reproduce 1. Create a new project using the following curl command ``` curl -v --header 'PRIVATE-TOKEN: M42fNxfREaS9jk1XH4v3' --header 'Content-Type: application/json' --data '{"name":"Test Project","description":"Random Description","path":"test-project","namespace_id":12659489,"topics":[],"allow_merge_on_skipped_pipeline":false,"analytics_access_level":"disabled","approvals_before_merge":1,"auto_cancel_pending_pipelines":"enabled","auto_devops_enabled":false,"autoclose_referenced_issues":false,"build_git_strategy":"fetch","build_timeout":1200,"builds_access_level":"disabled","ci_config_path":".gitlab-ci.yml","container_expiration_policy_attributes":{"enabled":false},"container_registry_enabled":true,"default_branch":"master","emails_disabled":false,"forking_access_level":"disabled","initialize_with_readme":true,"issues_access_level":"disabled","lfs_enabled":true,"merge_method":"merge","merge_requests_access_level":"disabled","mirror_trigger_builds":false,"mirror":false,"operations_access_level":"disabled","only_allow_merge_if_all_discussions_are_resolved":true,"only_allow_merge_if_pipeline_succeeds":true,"packages_enabled":false,"pages_access_level":"disabled","requirements_access_level":"disabled","printing_merge_request_link_enabled":true,"public_builds":false,"remove_source_branch_after_merge":true,"repository_access_level":"enabled","request_access_enabled":true,"resolve_outdated_diff_discussions":true,"shared_runners_enabled":true,"show_default_award_emojis":true,"snippets_access_level":"disabled","squash_option":"always","wiki_access_level":"disabled"}' 'https://gitlab.com/api/v4/projects' ``` ### Example Project https://gitlab.com/test4190/test-project ### What is the current *bug* behavior? `analytics_access_level`, `builds_access_level`, `forking_access_level`, `issues_access_level`, `merge_requests_access_level`, `operations_access_level`, `pages_access_level`, `requirements_access_level`, `snippets_access_level`, and `wiki_access_level` are all set to "disabled" in the curl call, but Issues, Merge Requests, CI/CD, Security & Compliance, Wiki, and Snippets are all still enabled in the settings. ### What is the expected *correct* behavior? All features should be disabled. ### Output of checks Bug happens on Gitlab.com _and_ self-hosted install. #### Results of GitLab environment info <details><summary>Click to expand</summary> ``` System information System: Ubuntu 20.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.7.2p137 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.3 Redis Version: 6.0.14 Git Version: 2.32.0 Sidekiq Version:5.2.9 Go Version: unknown GitLab information Version: 14.0.2-ee Revision: 2504e045362 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.6 URL: https://[MASKED] HTTP Clone URL: https://[MASKED]/some-group/some-project.git SSH Clone URL: git@[MASKED]:some-group/some-project.git Elasticsearch: yes Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: saml GitLab Shell Version: 13.19.0 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git ``` </details> #### Results of GitLab application Check <details><summary>Click to expand</summary> ``` Checking GitLab subtasks ... Checking GitLab Shell ... GitLab Shell: ... GitLab Shell version >= 13.19.0 ? ... OK (13.19.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful Checking GitLab Shell ... Finished Checking Gitaly ... Gitaly: ... default ... OK Checking Gitaly ... Finished Checking Sidekiq ... Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1 Checking Sidekiq ... Finished Checking Incoming Email ... Incoming Email: ... Reply by email is disabled in config/gitlab.yml Checking Incoming Email ... Finished Checking LDAP ... LDAP: ... LDAP is disabled in config/gitlab.yml Checking LDAP ... Finished Checking GitLab App ... Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 32/1 ... yes 32/2 ... yes 32/3 ... yes 28/4 ... yes 2/11 ... yes 2/12 ... yes 2/17 ... yes 32/20 ... yes 2/22 ... yes 2/23 ... yes 2/24 ... yes 2/25 ... yes 2/26 ... yes 32/27 ... yes 32/28 ... yes 11/32 ... yes 32/33 ... yes 2/34 ... yes 14/36 ... yes 14/37 ... yes 2/40 ... yes 14/41 ... yes 14/42 ... yes 15/43 ... yes 2/44 ... yes 2/46 ... yes 2/47 ... yes 2/48 ... yes 14/49 ... yes 14/50 ... yes 14/51 ... yes 2/53 ... yes 27/54 ... yes 2/55 ... yes 2/56 ... yes 2/57 ... yes 2/58 ... yes 2/59 ... yes 2/61 ... yes 15/62 ... yes 15/63 ... yes 2/64 ... yes 19/65 ... yes 14/66 ... yes 2/67 ... yes 2/68 ... yes 28/69 ... yes 14/71 ... yes 2/72 ... yes 32/74 ... yes 14/75 ... yes 32/76 ... yes 28/77 ... yes 2/78 ... yes 2/79 ... yes 2/80 ... yes 14/81 ... yes 2/82 ... yes 14/83 ... yes 26/85 ... yes 25/87 ... yes 26/88 ... yes 27/89 ... yes 27/90 ... yes 2/91 ... yes 14/92 ... yes 28/95 ... yes 28/96 ... yes 32/102 ... yes 2/104 ... yes 2/110 ... yes 2/116 ... yes 28/117 ... yes 2/118 ... yes 2/122 ... yes 28/125 ... yes 27/126 ... yes 32/128 ... yes 2/129 ... yes 2/132 ... yes 2/133 ... yes 2/134 ... yes 28/135 ... yes 32/136 ... yes 14/137 ... yes 25/138 ... yes 2/139 ... yes 27/140 ... yes 25/143 ... yes Redis version >= 5.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.2) Git version >= 2.31.0 ? ... yes (2.32.0) Git user has default SSH configuration? ... yes Active users: ... 15 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x (6.4 - 6.x deprecated to be removed in 13.8)? ... yes (7.9.1) Checking GitLab App ... Finished Checking GitLab subtasks ... Finished ``` </details>
issue