Skip to content
Snippets Groups Projects

Show message when approaching Pages deployments limit

Merged Janis Altherr requested to merge janis-message-approaching-pages-limits into master
All threads resolved!

What does this MR do and why?

This MR adds a warning for users with edit_pages permissions when the project is approaching its limit of parallel pages deployments and a danger level warning when the limit has been reached.

Screenshots or screen recordings

Approaching the limit

Screenshot_2025-02-11_at_15.04.46

When the limit is reached

Screenshot_2025-02-11_at_15.05.52

How to set up and validate locally

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

Related to #456358 (closed)

Edited by Janis Altherr

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Marcin Sedlak-Jakubowski approved this merge request

    approved this merge request

  • added pipelinetier-2 label and removed pipelinetier-1 label

  • Before you set this MR to auto-merge

    This merge request will progress on pipeline tiers until it reaches the last tier: pipelinetier-3. We will trigger a new pipeline for each transition to a higher tier.

    Before you set this MR to auto-merge, please check the following:

    • You are the last maintainer of this merge request
    • The latest pipeline for this merge request is pipelinetier-3 (You can find which tier it is in the pipeline name)
    • This pipeline is recent enough (created in the last 8 hours)

    If all the criteria above apply, please set auto-merge for this merge request.

    See pipeline tiers and merging a merge request for more details.

  • E2E Test Result Summary

    allure-report-publisher generated test report!

    e2e-test-on-gdk: test report for 2072a3fe

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Verify      | 48     | 0      | 2       | 0     | 50    | ✅     |
    | Plan        | 79     | 0      | 1       | 0     | 80    | ✅     |
    | Package     | 24     | 0      | 0       | 0     | 24    | ✅     |
    | Data Stores | 28     | 0      | 0       | 0     | 28    | ✅     |
    | Create      | 123    | 0      | 3       | 0     | 126   | ✅     |
    | Analytics   | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Govern      | 59     | 0      | 3       | 0     | 62    | ✅     |
    | Monitor     | 8      | 0      | 1       | 0     | 9     | ✅     |
    | Secure      | 4      | 0      | 0       | 0     | 4     | ✅     |
    | Release     | 5      | 0      | 0       | 0     | 5     | ✅     |
    | Manage      | 1      | 0      | 0       | 0     | 1     | ✅     |
    | Fulfillment | 1      | 0      | 0       | 0     | 1     | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 382    | 0      | 10      | 0     | 392   | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+

    e2e-test-on-cng: test report for 2072a3fe

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Plan        | 86     | 0      | 8       | 0     | 94    | ✅     |
    | Govern      | 84     | 0      | 10      | 0     | 94    | ✅     |
    | Package     | 29     | 0      | 15      | 0     | 44    | ✅     |
    | Verify      | 52     | 0      | 20      | 0     | 72    | ✅     |
    | Create      | 140    | 0      | 22      | 0     | 162   | ✅     |
    | Monitor     | 8      | 0      | 12      | 0     | 20    | ✅     |
    | Data Stores | 33     | 0      | 10      | 0     | 43    | ✅     |
    | Fulfillment | 2      | 0      | 7       | 0     | 9     | ✅     |
    | Manage      | 1      | 0      | 9       | 0     | 10    | ✅     |
    | Analytics   | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Secure      | 2      | 0      | 5       | 0     | 7     | ✅     |
    | Ai-powered  | 0      | 0      | 2       | 0     | 2     | ➖     |
    | Configure   | 0      | 0      | 3       | 0     | 3     | ➖     |
    | Release     | 5      | 0      | 1       | 0     | 6     | ✅     |
    | Growth      | 0      | 0      | 2       | 0     | 2     | ➖     |
    | ModelOps    | 0      | 0      | 1       | 0     | 1     | ➖     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 444    | 0      | 127     | 0     | 571   | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+
    Edited by ****
  • Janis Altherr added 1 commit

    added 1 commit

    • 0e08ab70 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Janis Altherr added 3 commits

    added 3 commits

    Compare with previous version

  • Alex Fracazo approved this merge request

    approved this merge request

  • Janis Altherr added 1 commit

    added 1 commit

    • 535a1d04 - Stub license query to fix rspec

    Compare with previous version

  • Janis Altherr
  • Janis Altherr requested review from @afrnz

    requested review from @afrnz

  • Janis Altherr requested review from @fdegier

    requested review from @fdegier

  • Fred de Gier requested review from @GitLabDuo

    requested review from @GitLabDuo

  • I have reviewed the code changes and left two recommendations regarding the removal of the limit variable and its usage. The review covers potential issues with deployment counting and consistency between different project types. I estimate there is a small amount of work required to address these concerns, but this is only an estimate based on the provided comments.

    · Leave feedback
    Edited by GitLab Duo
  • GitLab Duo
  • GitLab Duo
  • Janis Altherr removed review request for @GitLabDuo

    removed review request for @GitLabDuo

  • Fred de Gier approved this merge request

    approved this merge request

  • Fred de Gier requested review from @tbulva

    requested review from @tbulva

  • mentioned in issue #456358 (closed)

  • Janis Altherr changed the description

    changed the description

  • Alisa Frunza
  • Alisa Frunza
  • Alisa Frunza
  • Alisa Frunza
  • Alisa Frunza approved this merge request

    approved this merge request

  • Alisa Frunza requested review from @pskorupa

    requested review from @pskorupa

    • Author Maintainer
      Resolved by Janis Altherr

      I've realised that I had made a mistake and used the project level count to compare against the limit, even though I should be using the domain level count (that may differ if using a namespace domain). I've fixed that, @afrnz, could you take another look?

  • Janis Altherr added 1 commit

    added 1 commit

    • 2072a3fe - Fix deployments count for namespaced pages

    Compare with previous version

  • Janis Altherr reset approvals from @fdegier by pushing to the branch

    reset approvals from @fdegier by pushing to the branch

  • Tomas Bulva approved this merge request

    approved this merge request

  • Piotr Skorupa
  • Piotr Skorupa approved this merge request

    approved this merge request

  • mentioned in issue #519552 (closed)

  • Janis Altherr resolved all threads

    resolved all threads

  • merged

  • Janis Altherr mentioned in commit d7844ef3

    mentioned in commit d7844ef3

  • mentioned in merge request gitlab-ui!4964 (closed)

  • added workflowstaging label and removed workflowcanary label

  • mentioned in issue #519555 (closed)

  • mentioned in issue #519558 (closed)

  • Janis Altherr mentioned in merge request !181830 (merged)

    mentioned in merge request !181830 (merged)

  • Please register or sign in to reply
    Loading