LDEV-3633: Allow specyfing port which MySQL runs on. Disable SSL for building LAMS as it generates a warning message. New MySQL does not accept ALTER IGNORE TABLE statements.
LDEV-3561: Initial implemntation of re-setting read-only flag of Activities on force uncomplete. Each Tools' service has a method to report whether there is significant users' content left it the Activity. If so, it reports the Activity as read-only. Otherwise the flag can be re-set. Grouping, Gate and Complex activities also have their way of checking their immutability.
LDEV-3514: Use pretInterceptor instead of postInterceptor. Create new transactions for service method retries.Attach activity to Hibernate session in completeActivity() method.
LDEV-3514: Use pretInterceptor instead of postInterceptor. Create new transactions for service method retries.Attach activity to Hibernate session in completeActivity() method.
LDEV-3514: Use postInterceptor instead of preInterceptor. PreInterceptor apparently runs before Hibernate transaction gets created. When an exception in the proxied method occurs, the transaction is canceled and is not re-created when retry is attempted. This leads to "no session" or "read only transaction on write" errors. PostInterceptor seems to work when the transaction is already created, so retries happen witin its scope.
LDEV-3514: Use postInterceptor instead of preInterceptor. PreInterceptor apparently runs before Hibernate transaction gets created. When an exception in the proxied method occurs, the transaction is canceled and is not re-created when retry is attempted. This leads to "no session" or "read only transaction on write" errors. PostInterceptor seems to work when the transaction is already created, so retries happen witin its scope.
LDEV-3514: Wrap all transactional methods with TransactionRetryInterceptor. Set number of attempts to 3. Remove previous safety mechanism for completeActivity() method.
LDEV-3514: Wrap all transactional methods with TransactionRetryInterceptor. Set number of attempts to 3. Remove previous safety mechanism for completeActivity() method.
LDEV-3428: Do not create default conditions when Tool output definitions are fetched. They only get created when Tool defaut content is cloned.Fix class cast exeption when changing grade of first activity in sequence.Fix lesson mark calculation exception.Pass IDs to service methods instead of DB objects.
LDEV-3428: Do not create default conditions when Tool output definitions are fetched. They only get created when Tool defaut content is cloned.Fix class cast exeption when changing grade of first activity in sequence.Fix lesson mark calculation exception.Pass IDs to service methods instead of DB objects.