Ayush Billore (7287cec6) at 17 Mar 13:07
Apply 1 suggestion(s) to 1 file(s)
Ayush Billore (46af61ea) at 17 Mar 13:07
Apply 1 suggestion(s) to 1 file(s)
Ayush Billore (23342201) at 17 Mar 12:39
Fix permission group
@mmacrae-bovell Could you please do backend review here?
@mmacrae-bovell Could you please do backend review here?
Done!
This change decouples the archived state from deletion scheduling as part of moving to a state machine model where projects can be in one state (archived OR deletion_scheduled) rather than both.
project.archived, it should be false.Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #588699
Closing as this is out-of-scope based on the sheet.
Closing as this is out-of-scope based on the sheet.
Relates to #590667
This MR implements granular personal access token (PAT) decorators for the Organizations API endpoint.
Permission Configuration Files:
config/authz/permissions/organization/_metadata.yml - Feature category metadataconfig/authz/permissions/organization/create.yml - Permission definition for create_organization
Assignable Permission Group Files:
config/authz/permission_groups/assignable_permissions/organizations/organization/_metadata.yml - Resource metadataconfig/authz/permission_groups/assignable_permissions/organizations/organization/create.yml - Assignable permission group with instance boundaryAPI Endpoint (lib/api/organizations.rb):
route_setting :authorization, permissions: :create_organization, boundary_type: :instance decorator before the POST endpointTest Coverage (spec/requests/api/organizations_spec.rb):
it_behaves_like 'authorizing granular token permissions', :create_organization test blockboundary_object: :instance and appropriate request definitioncreate_organization (following GitLab's singular form convention)instance (organization creation is an instance-level operation)organization (matching the API file's feature_category)The implementation follows GitLab's authorization patterns and conventions, ensuring that the POST /organizations endpoint now properly enforces granular personal access token permissions.
Ayush Billore (368f93a7) at 17 Mar 11:03
Fix permission group
Ayush Billore (edd6d317) at 17 Mar 10:43
Fix permission group
Done Alex. I was thinking more from the POV of running compile docs but life is much simpler :)
Ayush Billore (cf780e1d) at 17 Mar 09:57
Fix doc changes
One issue though the docs will be outdated if we dont run compile docs after making this change. Is that a way around that from UI?
Didn’t know about that button until now
Ayush Billore (2f69f0d8) at 17 Mar 09:50
Update metadata.yml
On it