Skip to content

Add local version field in snapshots - #294

Closed
milanov wants to merge 7 commits into
javers:masterfrom
milanov:add-local-version-to-snapshots
Closed

milanov wants to merge 7 commits into
javers:masterfrom
milanov:add-local-version-to-snapshots

Conversation

@milanov

@milanov milanov commented Jan 9, 2016

Copy link
Copy Markdown
Contributor

I'm happy to accept any comments, suggestions, etc :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we dont want version to be null, so maybe primitive long?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll change that. Do you prefer for me to simply commit this change or to squash it with the previous (I didn't find contribution guidelines)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, we need to write contribution guidelines. Just push another commit but wait a while, i will take a deeper look at this PR at the evening

@bartoszwalacik bartoszwalacik self-assigned this Jan 9, 2016

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to test it in a different (minimal) way.
So test new version field only in 2 basic tests:
def "should serialize CdoSnapshot to Json"() and
def "should deserialize CdoSnapshot"()
and not to change other tests.
Deserializer should not break if field is missing (and it will be missing if users ugrade to new JaVers version and will load snapshots created in old JaVers version).

@bartoszwalacik

Copy link
Copy Markdown
Member

I did fixes on my branch, and just merged all into master

@bartoszwalacik

Copy link
Copy Markdown
Member

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