Add warning about Pages initial deployment delay

This commit adds a warning message that is always displayed that informs
users that their GitLab Pages sites will take a bit of time before they
can be accessed after being deployed for the first time.
This commit is contained in:
Nathan Friend 2019-08-23 16:08:23 -03:00
parent 79011fab08
commit 9d0a7fa6f9
No known key found for this signature in database
GPG key ID: E010A0869C9F35D9
4 changed files with 20 additions and 1 deletions

View file

@ -5,9 +5,11 @@
.card-body
%p
%strong
Congratulations! Your pages are served under:
= _("Your pages are served under:")
%p= link_to @project.pages_url, @project.pages_url
- @project.pages_domains.each do |domain|
%p= link_to domain.url, domain.url
.card-footer.alert-primary
= _("It may take up to 30 minutes before the site is available after the first deployment.")

View file

@ -0,0 +1,5 @@
---
title: Add warning about initial deployment delay for GitLab Pages sites
merge_request: 32122
author:
type: added

View file

@ -6257,6 +6257,9 @@ msgstr ""
msgid "Issues, merge requests, pushes, and comments."
msgstr ""
msgid "It may take up to 30 minutes before the site is available after the first deployment."
msgstr ""
msgid "It must have a header row and at least two columns: the first column is the issue title and the second column is the issue description. The separator is automatically detected."
msgstr ""
@ -13608,6 +13611,9 @@ msgstr ""
msgid "Your new personal access token has been created."
msgstr ""
msgid "Your pages are served under:"
msgstr ""
msgid "Your password reset token has expired."
msgstr ""

View file

@ -30,6 +30,12 @@ shared_examples 'pages settings editing' do
expect(page).to have_content('Access pages')
end
it 'renders first deployment warning' do
visit project_pages_path(project)
expect(page).to have_content('It may take up to 30 minutes before the site is available after the first deployment.')
end
context 'when support for external domains is disabled' do
it 'renders message that support is disabled' do
visit project_pages_path(project)