Mateusz Kwiatkowski

removed contract test and sonar analysis stages

OLMIS-6193: added changelog

removed dependencyCheckAnalyze task

OLMIS-6193: fixed translating stockout notifications
OLMIS-6193: fixed translating stockout notifications
OLMIS-6193: added changelog

OLMIS-6193: added changelog

OLMIS-6193: fixed translating stockout notifications

OLMIS-6193: added passing locale to requisition status processor

this should fix problem with translating email notifications for status changes

  1. … 6 more files in changeset.
OLMIS-6193: added passing locale to requisition status processor

this should fix problem with translating email notifications for status changes

  1. … 5 more files in changeset.
As I mentioned on Slack while doing using a @Async new thread is losing context by default. We are getting locale info from LocaleContextHolder while translating messages so this was causing missin...

As I mentioned on Slack while doing using a @Async new thread is losing context by default. We are getting locale info from LocaleContextHolder while translating messages so this was causing missing translations for email notifications. Here is a GitHub issue regarding this problem: https://github.com/spring-projects/spring-boot/issues/14079
I think we are safe to use "dispatcherServlet.setThreadContextInheritable(true);" but Javadoc says:
/**

  • Set whether to expose the LocaleContext and RequestAttributes as inheritable
  • for child threads (using an
    Unknown macro: {@link java.lang.InheritableThreadLocal}

    ).

  • <p>Default is "false", to avoid side effects on spawned background threads.
  • Switch this to "true" to enable inheritance for custom child threads which
  • are spawned during request processing and only used for this request
  • (that is, ending after their initial task, without reuse of the thread).
  • <p><b>WARNING:</b> Do not use inheritance for child threads if you are
  • accessing a thread pool which is configured to potentially add new threads
  • on demand (e.g. a JDK
    Unknown macro: {@link java.util.concurrent.ThreadPoolExecutor}

    ),

  • since this will expose the inherited context to such a pooled thread.
    */
    Alternatively, we could retrieve locale before starting a new thread and passing it there, but it would require more work.
    I would be nice if we could agree on a solution quickly as it is blocking release and I still need to include it in patch release for Angola. Also, I would need to include those changes in other services that are sending notifications asynchronously.
OLMIS-6193: added inheriting context to dispatcher servlet
OLMIS-6193: added inheriting context to dispatcher servlet
OLMIS-6193: added inheriting context to dispatcher servlet

Revert "removed async annotation from notifier"

This reverts commit f00b902fb615b994aeac32f287fd0b6a45efec0d.

removed async annotation from notifier

fixed checkstyle in message service

removed locale resolver from application context

added temporary logging to mesage service

changed current versions for fulfillment, reference-ui and auth services

updated fulfillment and auth versions

updated fulfillment, auth and reference-ui versions

Chagned current SNAPSHOT to 5.1.4

because reference-ui 5.1.3 version was released

Released reference-ui version 5.1.3

changed current auth service SNAPSHOT to 4.1.2

the reason is that 4.1.1 version was released

Released stockmanagement service version 4.0.1

changed current fulfillment SNAPSHOT to 8.0.2

the reason is that 8.0.1 patch version was released

Released fulfillment service version 8.0.1