Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Releases: CJSCommonPlatform/microservice_framework_version_6

1.0.0

16 Dec 12:00
Compare
Choose a tag to compare

Added

  • Logging request data is set in the SLF4J mapped diagnostic context (MDC) and can be added to the
    log output by setting %X{requestData} in the logger pattern
  • Support for managing optimistic lock retry for event log, when using the PostgreSQL database.
    Default is to retry forever.
  • ZonedDateTimeGenerator to generate random future or past ZonedDateTimes

Changed

  • Improve ResponsePayloadMatcher to support string matchers on response payload
  • Upgraded ObjectMapper to allow single arg constructors in Object serialization
  • Aggregate snapshot repository enabled by default. This requires the aggregate-snapshot-repository-liquibase
    schema to have been applied to the event store database, which makes this release backwards incompatible
  • Event timestamps now added to private events automatically and stored in the event store as part
    of the metadata and in a separate field. This requires the latest event-repository-liquibase
    schema to be applied to the event store database, which makes this release backwards incompatible

Removed

  • DateTimeProvider after two months deprecation. Use Clock/UtcClock instead.

Fixed

  • JsonSchemaValidationMatcher to look for json schema in correct location
  • JSON schema validation of date-time format fixed by using a forked version of the JSON schema
    validator library
  • JsonSchemaValidationMatcher to fallback to raml maven dependency if not on json classpath

0.35.0

24 Nov 12:48
Compare
Choose a tag to compare

Added

  • File, file-api and file-alfresco modules
  • File service interface
  • Alfresco file service implementation

Fixed

  • Refactor random generators for string, uri and email

0.34.0

16 Nov 13:43
Compare
Choose a tag to compare

Added

  • Stream of streams event retrieval
  • Proxy support to Rest Client
  • JsonObjects toJsonArray method

Changed

  • Improve BigDecimalGenerator to cover both positive and negative range
  • Improve DoubleGenerator to cover the bounds of double
  • TypeCheck class to provide better feedback on failure
  • Parent pom to 1.2.0, common bom to 1.4.0 and raml-plugin to 1.3.0

Fixed

  • JDBC Repository resource close ordering
  • Test cases related to random date generation
  • ValueGenerator to randomly pick items from a given pool and renamed the class to ItemPicker

0.33.0

31 Oct 14:42
Compare
Choose a tag to compare

Added

  • Support for RestClient to use proxy details from environment properties
  • Matchers for matching handler and handler class methods, annotations and pass through process type (Sender or Requester)
  • Empty stream matching to EventStreamMatcher
  • toJsonArray utility function

Changed

  • Improved event stream processing

0.32.0

25 Oct 08:41
Compare
Choose a tag to compare

Added

  • JsonEnvelope.asJsonObject() for simple conversion of the entire envelope to a JsonObject
  • EventStreamMatcher to match stream of JsonEnvelopes appended
  • RestPoller. A polling REST client utility for integration tests
  • Mechanism for taking snapshots of aggregates, disabled by default. To enable, add a dependency on
    the aggregate-snapshot-service module. Requires the aggregate-snapshot-repository-liquibase
    schema to be applied to the event store.
  • JSON schema matching support in the JsonEnvelopeMatcher

Changed

  • JsonEnvelopeMetadataMatcher to allow matching with JSON paths
  • Deprecated PollingRestClient in favour of the new RestPoller

Fixed

  • RestProcessor now allows metadata from payload to be merged with headers instead of being
    overwritten

0.30.0

11 Oct 10:20
Compare
Choose a tag to compare

Fixed

  • Event buffer connection held open after exception in event listener
  • RestClientProcessor tests clashing using common 8080 port
  • JMS listeners for event topics did not use shared subscriptions. Fixing this allows multiple
    instances to run. Each message will be consumed only once across a cluster.

Added

  • Hamcrest Matchers for asserting JsonEnvelopes contained within either Streams or Lists
  • New Clock interface to replace DateTimeProvider
  • EnumPicker in random generators

Changed

  • DateTimeProvider is now deprecated - use Clock instead
  • JsonEnvelopeBuilder is now deprecated - use DefaultJsonEnvelope.envelope() instead
  • Extend DefaultJsonEnvelope.Builder to accept JsonObject as part of the payload

Removed

  • Unused JdbcConnectionProvider utility

0.29.0

06 Oct 11:01
Compare
Choose a tag to compare

Fixed

  • 'Response is closed' bug in PollingRequestClient

Added

  • ZonedDateTimes methods to convert between ZDT and SQL timestamps
  • LocalDate conversion functions
  • EnveloperFactory method to create a Enveloper with a list of Event classes registered
  • EventStreamMockHelper that provides a method to verify and return the Stream argument from a call
    to the EventStream append method
  • DateProvider to allow easy mocking of date creating for testing
  • Random generators and TypeCheck class for type-based testing
  • Metrics per action name

Changed

  • Event Store to include a 'date_created' timestamp field - added to the DB schema but not yet
    enabled in code

0.28.0

21 Sep 15:18
Compare
Choose a tag to compare

Fixed

  • EventBufferInterceptor container discovery

0.27.0

20 Sep 16:31
Compare
Choose a tag to compare

Added

  • JsonSchemaValidationMatcher class to validate json content against a schema
  • PollingRequestClient class as a new implementation of the HttpResponsePoller

Changed

  • Moved EventBufferInterceptor and EventFilterInterceptor to event-listener component
  • Added withHeaders method to HttpResponsePoller

Fixed

  • BaseTransactionalTest to cleanup with rollback

Deprecated

  • HttpResponsePoller, replaced with PollingRestClient

0.26.0

30 Sep 13:30
Compare
Choose a tag to compare
release-0.26.0

Release 0.26.0