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
1a65e7c7
Commit
1a65e7c7
authored
1 year ago
by
Eirik Morland
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3356369
by eiriksm: Implement dynamic max repos for enterprise plan
parent
69d5cd0c
No related branches found
No related tags found
1 merge request
!13
Issue #3356369: Implement dynamic max repos for enterprise plan
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TeamNode.php
+7
-0
7 additions, 0 deletions
src/TeamNode.php
with
7 additions
and
0 deletions
src/TeamNode.php
+
7
−
0
View file @
1a65e7c7
...
...
@@ -36,6 +36,12 @@ class TeamNode extends Node {
}
$plan_value
=
$this
->
get
(
'field_plan'
)
->
first
()
->
getString
();
switch
(
$plan_value
)
{
case
PlanInterface
::
ENTERPRISE_PLAN
:
$plan
=
new
Plan
(
$plan_value
);
// Usually we are required to set what the max is on the team level.
$plan
->
setMaxPrivateRepos
(
$this
->
getMaxPrivateRepos
());
return
$plan
;
case
PlanInterface
::
PREMIUM_PLAN
:
return
new
Plan
(
$plan_value
);
...
...
@@ -150,6 +156,7 @@ class TeamNode extends Node {
* deleted ones, for example. Or about to be deleted.
*
* @return \Drupal\user\UserInterface[]
* All of those users.
*/
public
function
getMembers
()
:
array
{
return
$this
->
get
(
self
::
MEMBERS_FIELD
)
->
referencedEntities
();
...
...
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