diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-15 18:13:28 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-16 16:09:30 +0300 |
commit | 2d9a6f2bd3b4ac55d5e59c8e9eb2013fa46798d9 (patch) | |
tree | 96482dbbe30bfb709f0cb039c3902ea3daca775a /locale | |
parent | 8b4b7caefa7fba49a8b199edfde8315a4c897a68 (diff) |
Refactor checking personal project limits
This refactors the code used for checking if a user has exceeded the
personal projects limit. As part of this refactor the method has been
renamed from Project#check_limit to "check_personal_projects_limit", as
this name makes it much more clear what the purpose of the method is.
Standalone unit tests have also been added, as before we only had a
single generic validation test that did not cover all cases.
The old implementation of the refactored method also included a `rescue`
statement. This code would only run when a project creator was not set.
The error that would be added wasn't super useful, especially since
there would already be errors for the creator not being present. As none
of the other code in the "check_personal_projects_limit" raises, it has
been removed.
Diffstat (limited to 'locale')
-rw-r--r-- | locale/gitlab.pot | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 7155c39b35d..45f09b031d8 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -4907,6 +4907,9 @@ msgstr "" msgid "Personal Access Token" msgstr "" +msgid "Personal project creation is not allowed. Please contact your administrator with questions" +msgstr "" + msgid "Pick a name" msgstr "" @@ -8070,6 +8073,9 @@ msgstr "" msgid "Your name" msgstr "" +msgid "Your project limit is %{limit} projects! Please contact your administrator to increase it" +msgstr "" + msgid "Your projects" msgstr "" |