Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
4cc36fbd
Commit
4cc36fbd
authored
5 years ago
by
srosse
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/OpenOLAT_14.1'
parents
ef227b6b
2d5fc46a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/repository/manager/RepositoryEntryMyCourseQueries.java
+6
-2
6 additions, 2 deletions
...at/repository/manager/RepositoryEntryMyCourseQueries.java
with
6 additions
and
2 deletions
src/main/java/org/olat/repository/manager/RepositoryEntryMyCourseQueries.java
+
6
−
2
View file @
4cc36fbd
...
...
@@ -30,6 +30,7 @@ import java.util.stream.Collectors;
import
javax.persistence.FlushModeType
;
import
javax.persistence.TypedQuery
;
import
org.apache.logging.log4j.Logger
;
import
org.olat.basesecurity.GroupRoles
;
import
org.olat.basesecurity.IdentityImpl
;
import
org.olat.basesecurity.OrganisationRoles
;
...
...
@@ -39,7 +40,6 @@ import org.olat.core.commons.persistence.QueryBuilder;
import
org.olat.core.commons.services.mark.impl.MarkImpl
;
import
org.olat.core.id.Identity
;
import
org.olat.core.id.Roles
;
import
org.apache.logging.log4j.Logger
;
import
org.olat.core.logging.Tracing
;
import
org.olat.core.util.StringHelper
;
import
org.olat.course.assessment.manager.EfficiencyStatementManager
;
...
...
@@ -58,6 +58,7 @@ import org.olat.repository.model.SearchMyRepositoryEntryViewParams;
import
org.olat.repository.model.SearchMyRepositoryEntryViewParams.Filter
;
import
org.olat.repository.model.SearchMyRepositoryEntryViewParams.OrderBy
;
import
org.olat.resource.OLATResource
;
import
org.olat.resource.OLATResourceImpl
;
import
org.olat.user.UserImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -441,7 +442,10 @@ public class RepositoryEntryMyCourseQueries {
switch
(
filter
)
{
case
showAll:
break
;
case
onlyCourses:
sb
.
append
(
" and res.resName='CourseModule'"
);
// much quicker with lot of data than res.resName = 'CourseModule'
sb
.
append
(
" and exists (select oresname.key from "
).
append
(
OLATResourceImpl
.
class
.
getName
()).
append
(
" as oresname"
)
.
append
(
" where oresname.key=v.olatResource.key and oresname.resName='CourseModule'"
)
.
append
(
" )"
);
break
;
case
currentCourses:
sb
.
append
(
" and lifecycle.validFrom<=:now and lifecycle.validTo>=:now"
);
...
...
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