Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
violinist_teams
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
violinist_teams
Commits
2a762a10
Commit
2a762a10
authored
1 year ago
by
Eirik Morland
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3364529
: Add logic for agency plan
parent
6008fe63
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!19
Issue #3364529: Add logic for agency plan
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Plan.php
+6
-0
6 additions, 0 deletions
src/Plan.php
src/TeamNode.php
+5
-0
5 additions, 0 deletions
src/TeamNode.php
with
11 additions
and
0 deletions
src/Plan.php
+
6
−
0
View file @
2a762a10
...
...
@@ -52,6 +52,12 @@ class Plan implements PlanInterface {
case
self
::
TRIAL_PLAN
:
return
self
::
TRIAL_PLAN_MAX
;
case
self
::
AGENCY_PLAN
:
if
(
!
$this
->
maxRepos
)
{
$this
->
maxRepos
=
10
;
}
return
$this
->
maxRepos
;
default
:
return
self
::
REGULAR_PLAN_MAX
;
}
...
...
This diff is collapsed.
Click to expand it.
src/TeamNode.php
+
5
−
0
View file @
2a762a10
...
...
@@ -67,6 +67,11 @@ class TeamNode extends Node {
case
PlanInterface
::
PREMIUM_PLAN
:
return
new
Plan
(
$plan_value
);
case
PlanInterface
::
AGENCY_PLAN
:
$plan
=
new
Plan
(
$plan_value
);
$plan
->
setMaxPrivateRepos
(
$this
->
getMaxPrivateRepos
());
return
$plan
;
default
:
return
$default
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment