This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
82a52d5b
Commit
82a52d5b
authored
1 year ago
by
Michael Breu
Browse files
Options
Downloads
Patches
Plain Diff
Fixing PMD and pages
parent
07184d00
2 merge requests
!222
Bringing the december release into production
,
!215
Resolve "Relevance Ranking in Metadata"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/docs/requirements-docs.txt
+2
-2
2 additions, 2 deletions
src/main/docs/requirements-docs.txt
src/main/java/at/ac/uibk/gitsearch/service/GitlabService.java
+4
-4
4 additions, 4 deletions
...main/java/at/ac/uibk/gitsearch/service/GitlabService.java
with
6 additions
and
6 deletions
src/main/docs/requirements-docs.txt
+
2
−
2
View file @
82a52d5b
# docs
Sphinx==
3.2.1
sphinx-rtd-theme==
0.5
.0
Sphinx==
7.1.2
sphinx-rtd-theme==
2.0
.0
This diff is collapsed.
Click to expand it.
src/main/java/at/ac/uibk/gitsearch/service/GitlabService.java
+
4
−
4
View file @
82a52d5b
...
...
@@ -148,7 +148,10 @@ public class GitlabService {
RepositoryFile
file
;
try
(
GitLabApi
gitLabApi
=
gitLabRepository
.
getGitLabApi
(
tokenProvider
.
getGitLabAccessInfo
());)
{
if
(
exercise
.
getFile
().
getCommit_id
()
!=
null
)
{
if
(
exercise
.
getFile
().
getCommit_id
()
==
null
)
{
log
.
warn
(
"commit_id must not be null for {}"
,
exerciseId
);
return
null
;
}
else
{
file
=
gitLabApi
.
getRepositoryFileApi
()
...
...
@@ -158,9 +161,6 @@ public class GitlabService {
exercise
.
getFile
().
getCommit_id
()
);
return
new
ByteArrayInputStream
(
file
.
getDecodedContentAsBytes
());
}
else
{
log
.
warn
(
"commit_id must not be null for {}"
,
exerciseId
);
return
null
;
}
}
catch
(
GitLabApiException
e
)
{
log
.
warn
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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