Docs: Scope GitLab Duo seat retention to each offering
What does this MR do?
Corrects how long GitLab keeps GitLab Duo seat assignments after the add-on expires. The page says 28 days for every offering. That figure holds on GitLab.com, where the subscription system sets the add-on expiry 14 days after the term ends, as explained in !166000 (comment 2103038474). GitLab then deletes assignments 14 days after that expiry.
On GitLab Self-Managed and GitLab Dedicated, the expiry is the add-on end date in the license, so assignments last 14 days. A license without the add-on expires it at once, and the 14 days start from that change. Uploading a license with the add-on again inside that window keeps every assignment.
flowchart TD
A[Add-on purchase expires_on] --> B{Offering}
B -->|GitLab.com| C[Subscription system sets expires_on<br/>14 days after term end]
B -->|Self-Managed and Dedicated| D{How the add-on ends}
D -->|Add-on end date passes| E[expires_on is the add-on end date]
D -->|License without add-on| F[expires_on becomes yesterday]
C --> G[Assignments deleted 14 days after expires_on<br/>28 days after term end]
E --> H[Assignments deleted 14 days after expires_on<br/>14 days]
F --> I[Assignments deleted 14 days after the change<br/>14 days]Code at 542ce5e5:
- https://gitlab.com/gitlab-org/gitlab/-/blob/542ce5e5459098e8132b792f38779272d29c90ae/ee/app/models/gitlab_subscriptions/add_on_purchase.rb#L10 (14-day delay constant)
- https://gitlab.com/gitlab-org/gitlab/-/blob/542ce5e5459098e8132b792f38779272d29c90ae/ee/app/models/gitlab_subscriptions/add_on_purchase.rb#L42-L44 (scope for assignments ready for cleanup)
- https://gitlab.com/gitlab-org/gitlab/-/blob/542ce5e5459098e8132b792f38779272d29c90ae/ee/app/workers/gitlab_subscriptions/add_on_purchases/cleanup_worker.rb#L15-L20 (deletion)
- https://gitlab.com/gitlab-org/gitlab/-/blob/542ce5e5459098e8132b792f38779272d29c90ae/ee/config/schedule.yml#L228-L230 (runs daily)
- https://gitlab.com/gitlab-org/gitlab/-/blob/542ce5e5459098e8132b792f38779272d29c90ae/ee/app/services/gitlab_subscriptions/add_on_purchases/self_managed/expire_service.rb#L12 (license without the add-on)
Related issues
Follows !166000 (merged), which added the 28-day text.
Author's checklist
- Optional. Consider taking the GitLab Technical Writing Fundamentals course.
- Follow the:
- If you're adding a new page, add the product availability details under the H1 topic title.
- If you are a GitLab team member, request a review based on:
- The documentation page's metadata.
- The associated Technical Writer.
If you are a GitLab team member and only adding documentation, do not add any of the following labels:
~"frontend"~"backend"~"type::bug"~"database"
These labels cause the MR to be added to code verification QA issues.
Reviewer's checklist
Documentation-related MRs should be reviewed by a Technical Writer for a non-blocking review, based on Documentation Guidelines and the Style Guide.
If you aren't sure which tech writer to ask, use roulette or ask in the #docs Slack channel.
- If the content requires it, ensure the information is reviewed by a subject matter expert.
- Technical writer review items:
- Ensure docs metadata is present and up-to-date.
- Ensure the appropriate labels are added to this MR.
- Ensure a release milestone is set.
- If relevant to this MR, ensure content topic type principles are in use, including:
- The headings should be something you'd do a Google search for. Instead of
Default behavior, say something likeDefault behavior when you close an issue. - The headings (other than the page title) should be active. Instead of
Configuring GDK, say something likeConfigure GDK. - Any task steps should be written as a numbered list.
- If the content still needs to be edited for topic types, you can create a follow-up issue with the docs-technical-debt label.
- The headings should be something you'd do a Google search for. Instead of
- Review by assigned maintainer, who can always request/require the reviews above. Maintainer's review can occur before or after a technical writer review.