Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Trac2Gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stud.IP
Plugins
Trac2Gitlab
Commits
a448a5e1
Commit
a448a5e1
authored
Apr 8, 2024
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
re
#53
parent
39310139
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
controllers/dashboard.php
+4
-1
4 additions, 1 deletion
controllers/dashboard.php
lib/Plugin.php
+5
-4
5 additions, 4 deletions
lib/Plugin.php
with
9 additions
and
5 deletions
controllers/dashboard.php
+
4
−
1
View file @
a448a5e1
...
...
@@ -67,7 +67,10 @@ final class DashboardController extends TracToGitlab\GitlabController
public
function
index_action
()
{
$this
->
issues
=
$this
->
cached
(
'issues'
,
fn
()
=>
$this
->
getIssues
());
$this
->
issues
=
$this
->
cached
(
implode
(
'-'
,
[
'issues'
,
$this
->
getSelected
(
'milestone'
),
$this
->
getSelected
(
'types'
)]),
fn
()
=>
$this
->
getIssues
()
);
$this
->
mapping
=
$this
->
getQMLabelMapping
();
$this
->
filters
=
$this
->
getSelected
(
'filters'
);
...
...
This diff is collapsed.
Click to expand it.
lib/Plugin.php
+
5
−
4
View file @
a448a5e1
...
...
@@ -3,11 +3,12 @@ namespace TracToGitlab;
use
Config
;
use
Gitlab
;
use
GuzzleHttp\Client
as
GuzzleClient
;
use
Http\Factory\Guzzle\RequestFactory
;
use
Http\Factory\Guzzle\StreamFactory
;
use
Http\Factory\Guzzle\UriFactory
;
use
Parsedown
;
use
Psr\Http\Client\ClientInterface
;
use
Psr\Http\Client\ClientInterface
as
HttpClientInterface
;
use
Studip\DIContainer
;
use
StudIPPlugin
;
...
...
@@ -19,10 +20,10 @@ abstract class Plugin extends StudIPPlugin
$container
->
set
(
BytistConnector
::
class
,
function
()
{
return
new
BytistConnector
(
Config
::
get
()
->
getValue
(
'TRAC2GITLAB_BYTIST_TOKEN'
));
});
$container
->
set
(
ClientInterface
::
class
,
function
()
{
return
new
\
Guzzle
Http\
Client
();
$container
->
set
(
Http
ClientInterface
::
class
,
function
()
{
return
new
GuzzleClient
();
});
$container
->
set
(
Gitlab\Client
::
class
,
function
(
ClientInterface
$client
)
{
$container
->
set
(
Gitlab\Client
::
class
,
function
(
Http
ClientInterface
$client
)
{
$builder
=
new
Gitlab\HttpClient\Builder
(
$client
,
new
RequestFactory
(),
...
...
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