-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration API for record-based entities #1241
Merged
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
b672bf5
Make sure interface-based columns work with `entity` and not its state
yuri-sergiichuk 0becc30
Bump version
yuri-sergiichuk c4ec78e
Add ability to apply basic migration operations to repository entities
dmitrykuzmin 76506ea
Make the `Migration` doc less restrictive
dmitrykuzmin 78828a5
Add tests for column update operation
dmitrykuzmin 768ce7e
Revert the interface-based column values recalculation
dmitrykuzmin 2bfecb8
Merge branch 'master' of https://github.com/SpineEventEngine/core-jav…
dmitrykuzmin 4de26bf
Handle `null` values returned from interface-based column in a safer way
dmitrykuzmin bb191a6
Polish the docs
dmitrykuzmin beab63b
Improve formatting
dmitrykuzmin 2d5da6f
Expand the `Migration` doc
dmitrykuzmin 83bb5ef
Fix grammar
dmitrykuzmin 7946bea
Fix formatting
dmitrykuzmin f004528
Fix grammar
dmitrykuzmin 09c3444
Improve doc
dmitrykuzmin 2e62cb3
Improve doc of column update operations
dmitrykuzmin 4889e0c
Add missing `checkNotNull` assertions
dmitrykuzmin ef909d7
Fix grammar
dmitrykuzmin b2c63a5
Pull `applyMigration(id, migration)` method down to record based repo
dmitrykuzmin 018141e
Mark public API as `Experimental`
dmitrykuzmin 0798f61
Add new Migration API and provide basic implementation for columns
dmitrykuzmin ca80b35
Remove unused imports
dmitrykuzmin ea026e0
Return a posted event from the system write side
dmitrykuzmin 8ead2ad
Fix erroneous doc
dmitrykuzmin f95a91e
Fix a compilation error
dmitrykuzmin a9b36b6
Remove a TODO
dmitrykuzmin fbf33f3
Do not complete migration sooner even if entity is marked for removal
dmitrykuzmin ced3f38
Do not complete migration sooner even if entity is marked for removal
dmitrykuzmin 5f75aa9
Reorganize the `Migration` code to shorten the long code blocks
dmitrykuzmin b4fecd7
Add artificially injected last handled message to acknowledged signals
dmitrykuzmin f6584b5
Fix a typo
dmitrykuzmin 44438c9
Do not mark package-private method as `Internal`
dmitrykuzmin 69243f9
Mark API as experimental
dmitrykuzmin 12d7897
Reorganize the `applyMigration` method code
dmitrykuzmin cef1cd9
Add a method to apply migration to entities in batch
dmitrykuzmin 4ae40c9
Re-enable column update related tests
dmitrykuzmin 24664b8
Merge branch 'master' of https://github.com/SpineEventEngine/core-jav…
dmitrykuzmin 5d201e5
Encapsulate modifiable `Migration` state as `Migration.Operation`
dmitrykuzmin 067b82c
Add more tests
dmitrykuzmin 980989f
Reorder generics in `Migration` to match the order in related types
dmitrykuzmin 451fb79
Fix a compilation error
dmitrykuzmin 4e286d7
Add some doc to the changed types and methods
dmitrykuzmin 51498aa
Add more doc
dmitrykuzmin c4312e5
Document `MigrationApplied` event
dmitrykuzmin 7d10e49
Bump Spine version
dmitrykuzmin 3a6c30b
Polish docs
dmitrykuzmin 5cdda65
Rephrase doc
dmitrykuzmin 2f3c970
Mute the test logging
dmitrykuzmin f912e7c
Mark package-private methods that may look like public API `Internal`
dmitrykuzmin 71affa9
Fix how `Migration.finishCurrentOperation()` is applied
dmitrykuzmin 92c5d4a
Extend standard Spine migrations
dmitrykuzmin 08b192e
Polish the docs
dmitrykuzmin df9cd49
Document the modified `EntityLifecycle` methods
dmitrykuzmin 07f72ce
Remove exception in case the event filter blocks `MigrationApplied`
dmitrykuzmin dd3be7c
Shorten doc links
dmitrykuzmin 628104b
Mark the method as `Internal`
dmitrykuzmin 47e6a40
Improve doc of `UpdateColumns`
dmitrykuzmin 34f99ba
Expose standard migrations as single delegating migration instances
dmitrykuzmin b548475
Remove delegating migration and just rename the standard migrations
dmitrykuzmin 1635af3
Post an `EntityDeleted` event if record is removed from the storage
dmitrykuzmin a78c6a1
Merge branch 'master' of https://github.com/SpineEventEngine/core-jav…
dmitrykuzmin bb6c7ef
Update license report
dmitrykuzmin e66f4f7
Fix a typo
dmitrykuzmin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a bit strange that we're able to filter out the migration event, but on the other hand, in the
Migration
we throw anIllegalStateException
in case of such filtering.