Skip to content
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

CORDA-1999 Changed isRelevant to relevancyStatus. #3966

Merged
merged 5 commits into from
Sep 19, 2018

Conversation

roger-that-dev
Copy link

Does what it says on the tin.

josecoll
josecoll previously approved these changes Sep 18, 2018
Copy link

@josecoll josecoll left a comment

Choose a reason for hiding this comment

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

One minor doc change.

@@ -113,8 +113,9 @@ class NodeVaultService(
// For EVERY state to be committed to the vault, this checks whether it is spendable by the recording
// node. The behaviour is as follows:
//
// 1) All vault updates marked as RELEVANT will, of, course all have isRelevant = true.
// 2) For ALL_VISIBLE updates, those which are not relevant according to the relevancy rules will have isRelevant = false.
// 1) All vault updates marked as RELEVANT will, of, course all have relevancyStatus = true.
Copy link

@josecoll josecoll Sep 18, 2018

Choose a reason for hiding this comment

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

Probably want to rephrase this now that relevancyStatus is clearly no longer a boolean (true, false).

Copy link
Author

Choose a reason for hiding this comment

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

Ah.. in the DB, the relevancy flag is actually a boolean but this wording isn't very clear. I'll change it.

Choose a reason for hiding this comment

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

Actually it's an INT in the db - the default type used for Enum type mappings ;-)

Copy link
Author

Choose a reason for hiding this comment

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

Ah this is true :)

Choose a reason for hiding this comment

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

I think the comment still needs updating (or removing).

Copy link
Author

Choose a reason for hiding this comment

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

Ah whoops forgot... Just pushed up the changes now.

@roger-that-dev
Copy link
Author

Over to you @josecoll !

@josecoll josecoll changed the title * Changed isRelevant to relevancyStatus. CORDA-1999 Changed isRelevant to relevancyStatus. Sep 19, 2018
Copy link

@josecoll josecoll left a comment

Choose a reason for hiding this comment

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

LGTM!

@roger-that-dev roger-that-dev merged commit c4d86b1 into master Sep 19, 2018
@roger-that-dev roger-that-dev deleted the rog-is-relevant-serialization-fix branch September 27, 2018 09:23
roastario pushed a commit to roastario/corda that referenced this pull request Nov 8, 2018
* Changed isRelevant to relevancyStatus.

* Fix cash selection from breaking.

* Fixed non-backwards compatible API change.

* Updated schema migration changelog.

* Updated comment.
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