Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-5259 Reintroduce BeanFactoryLocator mechanism back to LAMS

It was removed for Spring 5

    • -0
    • +172
    ./java/org/lamsfoundation/lams/context/HandlerMethodResolver.java
  1. … 44 more files in changeset.
LDEV-5258 Prevent exception if user timezone is not set

LDEV-5258 Prevent exception if user timezone is not set

LDEV-5257 Add LD and activity title validation also on backend

  1. … 1 more file in changeset.
LDEV-5258 Retrieve correct time zone offset

  1. … 1 more file in changeset.
LDEV-5257 Secure fileDownloadToken cookie

  1. … 9 more files in changeset.
LDEV-5257 Escape formulas in LAMS-generated spreadsheets

LDEV-5256 Sanitise jqGrid sorting options before using them in queries

  1. … 2 more files in changeset.
LDEV-4411 Reintroduce eager fetching and caching of QB options and units

There are several places in LAMS code where we need to detach QB

question entity from session to do copying and comparison. While another

approach can be found, it requires a lot of effort to rewrite now.

Fetching options from a detached question causes lazy initialisation

exceptions. We had to make them eagerly fetched again.

Collection caching is introduced too to address numerous queries run

with every question fetch.

LDEV-5256 Prevent SQL injection for results order

  1. … 2 more files in changeset.
LDEV-4411 Do not fetch groups eagerly

LDEV-5253 Sysadmin Login As feature to be configurable

  1. … 3 more files in changeset.
LDEV-4411 Allow Hibernate to choose fetch type by itself

LDEV-4411 Make relation from Lesson to LessonClass unidirectional

Hibernate can not lazy load properties connected with OneToOne

relationship.

  1. … 1 more file in changeset.
LDEV-4411 Make relation from Evaluation to ToolActivity unidirectional

Hibernate can not lazy load properties connected with OneToOne

relationship. It means that with every fetch of ToolActivity its

ActivityEvaluation was also fetched, whether is was needed or not. It

made up even 10% of all queries sent to DB during a lesson.

By having the relationship unidirectional and fetching

ActivityEvaluation via DAO we ensure that it is fetched only when it is

needed. The code is not as nice, though.

  1. … 6 more files in changeset.
LDEV-4411 Do not cache native SQL queries as it causes exceptions

LDEV-3656 Clean up invalidated session from internal tracking mapping

These session should have been removed from the mapping when

SessionListener is called. Sometimes the listener is not called due to

WildFly internal bugs. We are left with a long list of stale sessions.

We should periodically clean up the mapping. Making it happen on runtime

stats fetch is as place as any other, plus it happens periodically.

  1. … 1 more file in changeset.
LDEV-4411 Remove FetchMode as it seems to trigger excessive queries

LDEV-4411 Make cacheable queries for checking user roles

LDEV-4411 Make Tool -> ExtServerToolAdapterMap collection lazy

    • -2
    • +1
    ./java/org/lamsfoundation/lams/tool/Tool.java
LDEV-5250 Remove Pedagogical Planner integration with core LAMS

    • -15
    • +2
    ./java/org/lamsfoundation/lams/tool/Tool.java
  1. … 57 more files in changeset.
LDEV-4411 Stop using collection cache for now

Cache annotations were commented out so we can come back to them easily

in the future.

Collection cache is not detecting changes made to entities. When a new

entity is added, collection cache does not see the change.

Properly tweaking concurrency strategy does not seem possible at the

moment, so we just turn it off.

    • -1
    • +1
    ./java/org/lamsfoundation/lams/tool/Tool.java
  1. … 21 more files in changeset.
LDEV-5174 Allow MCQ as iRAT in TBL monitoring Teams tab

  1. … 4 more files in changeset.
LDEV-5248 Get query cache stats directly from Session Factory

  1. … 1 more file in changeset.
LDEV-4411 Use WF provided entity cache configuration

  1. … 4 more files in changeset.
LDEV-4411 Add configuration for collection cache on multinode env

LDEV-4411 Native SQL queries are not cacheable by default

There seems to be a bug in Hibernate

https://hibernate.atlassian.net/browse/HHH-9111

There is a way to make native queries cacheable, but since there are so

few of them in LAMS, it is not worth the effort.

LDEV-4411 Fix cacheable API method

LDEV-4288 Prevent duplicate entries in Gradebook activity table

Unique key allows us to track situations in which duplicate entries get

created in the table.

There is no point in copying Gradebook entries on tool content copy - we

never copy live lessons, only template Learning Designs which should not

have any gradebook entries set.

LDEV-5248, LDEV-4411 Mark some collections as cacheable

Similar to query cache, the collection cache makes sense if the table

which collection elements map to do not change often. Each modification

to table content invalidates the given collection cache.

    • -0
    • +3
    ./java/org/lamsfoundation/lams/tool/Tool.java
  1. … 24 more files in changeset.