Ayush Billore activity https://gitlab.com/abime 2026-03-17T13:07:33Z tag:gitlab.com,2026-03-17:5212800040 Ayush Billore pushed to project branch duo/feature/590665-add-granular-pat-decorators-namespaces-3073836 at GitLab.org / GitLab 2026-03-17T13:07:33Z abime Ayush Billore

Ayush Billore (7287cec6) at 17 Mar 13:07

Apply 1 suggestion(s) to 1 file(s)

tag:gitlab.com,2026-03-17:5212799322 Ayush Billore pushed to project branch duo/feature/590665-add-granular-pat-decorators-namespaces-3073836 at GitLab.org / GitLab 2026-03-17T13:07:26Z abime Ayush Billore

Ayush Billore (46af61ea) at 17 Mar 13:07

Apply 1 suggestion(s) to 1 file(s)

tag:gitlab.com,2026-03-17:5212663101 Ayush Billore pushed to project branch duo/feature/590665-add-granular-pat-decorators-namespaces-3073836 at GitLab.org / GitLab 2026-03-17T12:39:36Z abime Ayush Billore

Ayush Billore (23342201) at 17 Mar 12:39

Fix permission group

tag:gitlab.com,2026-03-17:5212552424 Ayush Billore commented on merge request !226278 at GitLab.org / GitLab 2026-03-17T12:14:29Z abime Ayush Billore

@mmacrae-bovell Could you please do backend review here?

tag:gitlab.com,2026-03-17:5212543105 Ayush Billore commented on merge request !226283 at GitLab.org / GitLab 2026-03-17T12:12:25Z abime Ayush Billore

@mmacrae-bovell Could you please do backend review here?

tag:gitlab.com,2026-03-17:5212437684 Ayush Billore commented on merge request !227215 at GitLab.org / GitLab 2026-03-17T11:47:15Z abime Ayush Billore

Done!

tag:gitlab.com,2026-03-17:5212435797 Ayush Billore approved merge request !227215: Stop archiving projects when marking for deletion at GitLab.org / GitLab 2026-03-17T11:46:47Z abime Ayush Billore

What does this MR do and why?

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.

References

https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/group_and_project_operations_and_state_management/

How to set up and validate locally

  1. Schedule a project for deletion by going to Settings -> General -> Advanced and clicking Delete.
  2. Check the archived state of the project in the Rails console: project.archived, it should be false.

MR acceptance checklist

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

tag:gitlab.com,2026-03-17:5212273342 Ayush Billore commented on task #590667 at GitLab.org / GitLab 2026-03-17T11:09:08Z abime Ayush Billore

Closing as this is out-of-scope based on the sheet.

tag:gitlab.com,2026-03-17:5212271884 Ayush Billore commented on merge request !224228 at GitLab.org / GitLab 2026-03-17T11:08:49Z abime Ayush Billore

Closing as this is out-of-scope based on the sheet.

tag:gitlab.com,2026-03-17:5212271763 Ayush Billore closed task #590667: [Instance Level] Add granular PAT decorators to lib/api/organizations.rb at GitLab.org / GitLab 2026-03-17T11:08:47Z abime Ayush Billore tag:gitlab.com,2026-03-17:5212270976 Ayush Billore closed merge request !224228: Draft: feat: add granular PAT decorators to organizations API at GitLab.org / GitLab 2026-03-17T11:08:37Z abime Ayush Billore

Relates to #590667

Changes

This MR implements granular personal access token (PAT) decorators for the Organizations API endpoint.

Files Created

  1. Permission Configuration Files:

    • config/authz/permissions/organization/_metadata.yml - Feature category metadata
    • config/authz/permissions/organization/create.yml - Permission definition for create_organization
  2. Assignable Permission Group Files:

    • config/authz/permission_groups/assignable_permissions/organizations/organization/_metadata.yml - Resource metadata
    • config/authz/permission_groups/assignable_permissions/organizations/organization/create.yml - Assignable permission group with instance boundary

Files Modified

  1. API Endpoint (lib/api/organizations.rb):

    • Added route_setting :authorization, permissions: :create_organization, boundary_type: :instance decorator before the POST endpoint
    • Enables granular token permission checking for the organization creation endpoint
  2. Test Coverage (spec/requests/api/organizations_spec.rb):

    • Added it_behaves_like 'authorizing granular token permissions', :create_organization test block
    • Configured with boundary_object: :instance and appropriate request definition
    • Test properly placed within the "when user is authorized" context

Implementation Details

  • Permission Name: create_organization (following GitLab's singular form convention)
  • Boundary Type: instance (organization creation is an instance-level operation)
  • Feature Category: 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.

tag:gitlab.com,2026-03-17:5212249768 Ayush Billore pushed to project branch duo/feature/590671-add-granular-pat-decorators-3073819 at GitLab.org / GitLab 2026-03-17T11:03:39Z abime Ayush Billore

Ayush Billore (368f93a7) at 17 Mar 11:03

Fix permission group

tag:gitlab.com,2026-03-17:5212153337 Ayush Billore pushed to project branch duo/feature/590673-add-pat-decorators-vulnerabilities-3073801 at GitLab.org / GitLab 2026-03-17T10:43:37Z abime Ayush Billore

Ayush Billore (edd6d317) at 17 Mar 10:43

Fix permission group

tag:gitlab.com,2026-03-17:5212109922 Ayush Billore pushed to project branch duo/feature/590673-add-pat-decorators-vulnerabilities-3073801 at GitLab.org / GitLab 2026-03-17T10:34:54Z abime Ayush Billore

Ayush Billore (4b23955a) at 17 Mar 10:34

Fix permission group

... and 2171 more commits

tag:gitlab.com,2026-03-17:5211932587 Ayush Billore commented on merge request !224390 at GitLab.org / GitLab 2026-03-17T09:58:36Z abime Ayush Billore

Done Alex. I was thinking more from the POV of running compile docs but life is much simpler :)

tag:gitlab.com,2026-03-17:5211926607 Ayush Billore pushed to project branch mmacrae-bovell/mlflow-gpats at GitLab.org / GitLab 2026-03-17T09:57:19Z abime Ayush Billore

Ayush Billore (cf780e1d) at 17 Mar 09:57

Fix doc changes

tag:gitlab.com,2026-03-17:5211905859 Ayush Billore commented on merge request !224390 at GitLab.org / GitLab 2026-03-17T09:53:04Z abime Ayush Billore

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?

tag:gitlab.com,2026-03-17:5211897391 Ayush Billore commented on merge request !224390 at GitLab.org / GitLab 2026-03-17T09:51:26Z abime Ayush Billore

Didn’t know about that button until now 😅 I’d already made the commit, but thanks — I’ve used it now! Was this always there even before DAP, DUO?

tag:gitlab.com,2026-03-17:5211890677 Ayush Billore pushed to project branch mmacrae-bovell/mlflow-gpats at GitLab.org / GitLab 2026-03-17T09:50:06Z abime Ayush Billore

Ayush Billore (2f69f0d8) at 17 Mar 09:50

Update metadata.yml

tag:gitlab.com,2026-03-17:5211873319 Ayush Billore commented on merge request !224390 at GitLab.org / GitLab 2026-03-17T09:46:09Z abime Ayush Billore

On it 👍