From 6aaa02561d084e98ed8bf8cc33a006130e62a756 Mon Sep 17 00:00:00 2001 From: Mireya Andres Date: Sat, 8 Feb 2025 15:52:11 +0800 Subject: [PATCH 1/2] Show warning when adding auth logs exceeds the allowlist limit This is developed under the `authentication_logs_migration_for_allowlist` feature flag. --- .../autopopulate_allowlist_modal.vue | 111 +++++++++++++----- .../components/inbound_token_access.vue | 25 +++- .../queries/get_auth_log_count.query.graphql | 8 ++ app/assets/javascripts/token_access/index.js | 6 +- app/views/ci/token_access/_index.html.haml | 9 +- locale/gitlab.pot | 12 ++ .../autopopulate_allowlist_modal_spec.js | 29 ++++- .../token_access/inbound_token_access_spec.js | 59 ++++++++++ spec/frontend/token_access/mock_data.js | 13 ++ 9 files changed, 234 insertions(+), 38 deletions(-) create mode 100644 app/assets/javascripts/token_access/graphql/queries/get_auth_log_count.query.graphql diff --git a/app/assets/javascripts/token_access/components/autopopulate_allowlist_modal.vue b/app/assets/javascripts/token_access/components/autopopulate_allowlist_modal.vue index b664b3251fbd14..b5346bbe2a998a 100644 --- a/app/assets/javascripts/token_access/components/autopopulate_allowlist_modal.vue +++ b/app/assets/javascripts/token_access/components/autopopulate_allowlist_modal.vue @@ -1,20 +1,30 @@