Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added base service classes

    • -35
    • +0
    ./CustomWebMvcConfigurerAdapter.java
    • -53
    • +0
    ./i18n/ExposedMessageSourceImpl.java
    • -34
    • +0
    ./util/ConditionalUuidGenerator.java
  1. … 72 more files in changeset.
Update JaVers' Configuration

This commit bring JaVers' configuration up to parity with the setup in the requisition and reference-data services. Specifically, it ensures that JaVers consistently uses UTC when saving LocalDateTime values.

    • -0
    • +75
    ./JaVersDateProvider.java
  1. … 1 more file in changeset.
OLMIS-1686: Added license header to java files

    • -0
    • +15
    ./CustomWebMvcConfigurerAdapter.java
    • -0
    • +15
    ./i18n/ExposedMessageSourceImpl.java
    • -0
    • +15
    ./util/ConditionalUuidGenerator.java
  1. … 1 more file in changeset.
OLMIS-970: The service will use converters from shared library

OLMIS-1738, add flyway migrate strategy that cleans schema.

Introduces a profile named “production” that when active, will not clean the database before migrating it.

  1. … 2 more files in changeset.
OLMIS-1605: Add @TypeName to Widget

JaVers' @TypeName annotation is optional, but recommended for use.

OLMIS-1605: Update WidgetController

Previously, the WidgetController was inconsistent in terms of how it returned ResponseEntity values. Sometimes it would instanciate a ResponseEntity, whereas other times it would rely on ResponseEntity’s static methods. This commit standardizes on the later.

Fix checkstyle related errors.

OLMIS-1605: Add audit log support

This commit introduces support for basic audit logging. In order to show this feature, it associates WidgetRepository with JaVers so that changes persisted to Widgets are logged. It also adds an endpoint at /api/widgets/{id}/auditLog to retrieve a list of these changes.

    • -0
    • +70
    ./AuditLogInitializer.java
    • -0
    • +20
    ./security/UserNameProvider.java
    • -0
    • +102
    ./util/Pagination.java
    • -0
    • +139
    ./web/BaseController.java
  1. … 4 more files in changeset.
Add domain and repository layers

Add a Widget domain and repository, along with a controller to expose them. This will lay the foundation for things like auditing and paging which we may wish to illustrate within this service.

    • -0
    • +24
    ./domain/BaseEntity.java
    • -0
    • +23
    ./domain/Widget.java
    • -0
    • +9
    ./repository/WidgetRepository.java
    • -0
    • +19
    ./util/ConditionalUuidGenerator.java
    • -0
    • +97
    ./web/WidgetController.java
OLMIS-969 Add openlmis-service-util as a dependency

  1. … 1 more file in changeset.
OLMIS-1326 Add RAML & Swagger setup to the template service

    • -0
    • +20
    ./CustomWebMvcConfigurerAdapter.java
  1. … 8 more files in changeset.
OLMIS-1184 Template Service needs strict checkstyle

  1. … 1 more file in changeset.
OLMIS-1105, refactor of how versioning works

Extending the pattern created in reference data.

  1. … 6 more files in changeset.
OLMIS-853: Added closing stream

OLMIS-853: Changed way of reading version file content

  1. … 2 more files in changeset.
OLMIS-853: Changed try-catch block

OLMIS-853: Added javadoc comments, fixed logger

OLMIS-853: Added version file

    • -0
    • +19
    ./web/VersionController.java
  1. … 3 more files in changeset.
OLMIS-592 Fix i18n sample code and document

Add sample code for locales and messages. Remove unused MessageService. Move hello to MessageController, so ServiceNameController does not deal with messages. Change resolver to use cookies, to be more API-oriented. Add Portuguese sample message file.

Document how to do i18n in the code.

  1. … 2 more files in changeset.
OLMIS-592 Establish i18n conventions

Rename keys to fit i18n conventions documented in the STYLE-GUIDE.md.

  1. … 2 more files in changeset.
Shorten reference

OLMIS-722 Add checkstyle checking to build

Add checkstyle checking to the gradle build. Fix some source code which does not fit Google Java code style.

    • -15
    • +17
    ./i18n/ExposedMessageSourceImpl.java
    • -14
    • +14
    ./web/ServiceNameController.java
  1. … 3 more files in changeset.
OLMIS-669 Add log level configuration for packages

Show how packages can override root log level. Change controller log statements to show difference.

  1. … 1 more file in changeset.
Add endpoint to get all i18n messages

Add support for getting all messages for i18n by adding a new REST endpoint. This new REST endpoint is necessary for clients, particularly for offline functionality.

For new implementation, the configuration requires basename to be classpath:messages, rather than simply messages.

    • -0
    • +11
    ./i18n/ExposedMessageSource.java
    • -0
    • +31
    ./i18n/ExposedMessageSourceImpl.java
    • -0
    • +31
    ./i18n/MessageService.java
    • -0
    • +26
    ./web/MessageController.java
  1. … 1 more file in changeset.
OLMIS-676 Add logging to syslog in Spring Boot app

Add logging to container's syslog in Spring Boot's logbook configuration. Add some test log statements using SLF4J.

  1. … 1 more file in changeset.
Add basic i18n support

Add i18n support to template. This simply defaults to English and shows how to use message source to get messages from the Java property file.

  1. … 1 more file in changeset.
Initial commit

    • -0
    • +23
    ./util/ServiceSignature.java
    • -0
    • +14
    ./web/ServiceNameController.java
  1. … 5 more files in changeset.