Skip to content

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Jun 22, 2017

DATAMONGO-1721 - Package dependencies fixed.

Added Degraph based tests to identify package cycles and violations in layering.

Moved Collation to the core.query package, fixing dependency cycles.

Moved Index Operations and IndexOperationsProvider to the core.index package. fixing dependency cycles.
Moved GeoJsonConfiguration to config package.
Copied StringMatcher to be used as a replacement of Part.Type.
Removed all references to Part.Type, except for those to maintain the existing API. API using Part.Type is marked as deprecated. It violates the layering because nothing but "config" should access "repository".
Tests added to MongoRegexCreator in order to facilitate the removal of Part.Type dependencies.
Using the moved/new ExampleMatcherAccessor.

Related Tickets: DATACMNS-1097.

Jira issue: https://jira.spring.io/browse/DATAMONGO-1721.

@schauder schauder force-pushed the issue/DATAMONGO-1721 branch from 7664bbb to 61df936 Compare June 23, 2017 13:31
Added a Degraph based tests to identify package cycles and violations in layering.

Moved Collation to the core.query package, fixing dependency cycles.

Moved Index Operations and IndexOperationsProvider to the core.index package. fixing dependency cycles.
Moved GeoJsonConfiguration to config package.
Replaced the original version of these interfaces/classes with a deprecated version extending the new one, in order to not break the existing API.

Removed all references to Part.Type, except for those to maintain the existing API. API using Part.Type is marked as deprecated. It violates the layering, because nothing but "config" should access "repository".
Tests added to MongoRegexCreator in order to facilitate the removal of Part.Type dependencies.
Using the moved/new ExampleMatcherAccessor.

Related Tickets: DATACMNS-1097.
@schauder schauder force-pushed the issue/DATAMONGO-1721 branch from 61df936 to d4d648a Compare July 4, 2017 07:30
@schauder
Copy link
Contributor Author

schauder commented Jul 5, 2017

The test failures are not related to the PR but are generally flaky tests :-(

odrotbohm pushed a commit that referenced this pull request Jul 13, 2017
Added a Degraph based tests to identify package cycles and violations in layering.

Moved Collation to the core.query package, fixing dependency cycles. Moved IndexOperations and IndexOperationsProvider to the core.index package. fixing dependency cycles. Moved GeoJsonConfiguration to config package. Replaced the original version of these interfaces/classes with a deprecated version extending the new one, in order to not break the existing API.

Removed all references to Part.Type, except for those to maintain the existing API. API using Part.Type is marked as deprecated. It violates the layering, because nothing but "config" should access "repository". Tests added to MongoRegexCreator in order to facilitate the removal of Part.Type dependencies. Using the moved/new ExampleMatcherAccessor.

Related Tickets: DATACMNS-1097.
Original pull request: #470.
odrotbohm added a commit that referenced this pull request Jul 13, 2017
Removed deprecated types and adapt dependency tests accordingly.

Refactored MongoExampleMapper to revert to use StringMatcher from Spring Data Commons' ExampleMatcher. Introduced MongoRegexCreator specific MatchMode, which is basically a copy of StringMatcher. Adapted MongoExampleMapper and MongoQueryCreator to translate from StringMatcher and Part.Type to MatchMode.

Turned unit tests for MongoRegexCreator into parameterized ones.

Original pull request: #470.
@odrotbohm odrotbohm closed this Jul 13, 2017
mp911de added a commit that referenced this pull request Jul 14, 2017
Align with synchronous IndexOperations.

Related pull request: #470.
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1721 branch October 30, 2017 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants