-
Notifications
You must be signed in to change notification settings - Fork 48
Support for granting ValidatorLicense via SV UI #2905
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
base: meiersi/dn/feature-cip-73
Are you sure you want to change the base?
Support for granting ValidatorLicense via SV UI #2905
Conversation
|
@dfordivam I'm confused. I thought we agreed that we're breaking the work into a series of small PRs that one can effectively review. It's very hard to review thoroughly a PR of this magnitude that's a code dump of your complete work. |
|
@isegall-da I would have preferred to change the "base" branch, such that the daml changes included in this branch are not shown in this PR. (I could not set the base to my branch as it is on a fork). |
3c79212 to
1e3dc30
Compare
Why can't you base the branch on your own branch? You can stack multiple PRs one on top of the other, thus breaking the work into chunks that a reviewer can digest and review effectively. |
|
Alternatively, you can rework the git history in the branch such that it's a series of self-contained commits that one can review one at a time. |
So its just a Github limitation, my branch is on the fork, and the base branch has to be on |
|
I'll review tomorrow morning my time. |
|
@dfordivam : on
wdyt about adding 'default: 1.0' when the weight is not set? I'd also suggest to invert the double-negation: call the column "Operator" and add a checkmark if its an operator license. |
meiersi-da
left a comment
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.
Nice work @dfordivam !
Looks good up to the testing changes and small pieces of missing functionality. Let me know when you've addressed that so I can do a second review.
apps/app/src/main/scala/org/lfdecentralizedtrust/splice/console/SvAppReference.scala
Show resolved
Hide resolved
...g/lfdecentralizedtrust/splice/sv/automation/confirmation/SummarizingMiningRoundTrigger.scala
Show resolved
Hide resolved
...la/org/lfdecentralizedtrust/splice/integration/tests/SvValidatorLicenseIntegrationTest.scala
Outdated
Show resolved
Hide resolved
...la/org/lfdecentralizedtrust/splice/integration/tests/SvValidatorLicenseIntegrationTest.scala
Outdated
Show resolved
Hide resolved
...la/org/lfdecentralizedtrust/splice/integration/tests/SvValidatorLicenseIntegrationTest.scala
Outdated
Show resolved
Hide resolved
...la/org/lfdecentralizedtrust/splice/integration/tests/SvValidatorLicenseIntegrationTest.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
…ht' numeric Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
…soStore Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
…eights Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
…idatorLicenseIntegrationTest Signed-off-by: Divam <[email protected]>
1e3dc30 to
8e4208e
Compare
0f126e6 to
4864f05
Compare
meiersi-da
left a comment
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.
Thanks. Looks good to me modulo the minor suggestions.
Approving with suggestions: https://neilmitchell.blogspot.com/2019/04/code-review-approve-with-suggestions.html
...la/org/lfdecentralizedtrust/splice/integration/tests/SvValidatorLicenseIntegrationTest.scala
Outdated
Show resolved
Hide resolved
...la/org/lfdecentralizedtrust/splice/integration/tests/SvValidatorLicenseIntegrationTest.scala
Outdated
Show resolved
Hide resolved
...la/org/lfdecentralizedtrust/splice/integration/tests/SvValidatorLicenseIntegrationTest.scala
Outdated
Show resolved
Hide resolved
...la/org/lfdecentralizedtrust/splice/integration/tests/SvValidatorLicenseIntegrationTest.scala
Outdated
Show resolved
Hide resolved
| DsoAcsStoreRowData.IndexColumns.sv_name -> svName.map(lengthLimited), | ||
| DsoAcsStoreRowData.IndexColumns.wallet_party -> walletParty, | ||
| DsoAcsStoreRowData.IndexColumns.conversion_rate_feed_publisher -> conversionRateFeedPublisher, | ||
| DsoAcsStoreRowData.IndexColumns.validator_liveness_weight -> validatorLivenessWeight, |
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.
Important: we are mutating the store definition, which is only OK as we are voting in the Daml change after upgrading all SV apps to the new version that supports it.
Please add a corresponding note to the release_notes.rst file in the Upcoming section at the top -- as part of this branch.
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.
Ok, I have added this and a few more to a new section for the "Integration branch" in release_notes.rst, This should hopefully avoid conflicts with rebase and allow us to have a glance of "the diff" easily.
Co-authored-by: Simon Meier <[email protected]> Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>
Signed-off-by: Divam <[email protected]>












Fixes #2904
Adds support for granting
ValidatorLicensevia SV UI and console.Show weight + License kind in ValidatorLicense UI
Scan API fixes: ValidatorReceivedFaucets
And includes scala code fixes for the daml changes introduced in Daml: Add weight, kind to ValidatorLicense, and SV grant license support #2903
Adds a column in
dso_acs_storefor storingValidatorLivenessActivityRecordweightRemoves
SvMergeDuplicatedValidatorLicenseIntegrationTestand adds its functionality in new testSvValidatorLicenseIntegrationTest