-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: expose the peerId that created the operations #551
Merged
Conversation
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
Flamegraph.com reportCreated by Flamegraph.com Github Action |
Coverage Report
File Coverage
|
2 tasks
winprn
reviewed
Mar 13, 2025
* origin: fix: tsconfig for interval discovery (#564)
Signed-off-by: Sacha Froment <[email protected]>
Signed-off-by: Sacha Froment <[email protected]>
Signed-off-by: Sacha Froment <[email protected]>
JanLewDev
approved these changes
Mar 14, 2025
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.
otherwise lgtm
sfroment
approved these changes
Mar 17, 2025
anhnd350309
approved these changes
Mar 18, 2025
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.
lgtm
sfroment
approved these changes
Mar 18, 2025
sfroment
added a commit
that referenced
this pull request
Mar 18, 2025
* main: chore(deps): bump @opentelemetry/sdk-trace-web from 1.30.1 to 2.0.0 (#585) fix!: testcase handle sync message correctly (#588) feat: expose the peerId that created the operations (#551) Fix: testcase incorrect (#557) chore(deps-dev): bump eslint-import-resolver-typescript from 3.8.7 to 4.2.0 (#583) fix: add log config to createObject option to be passed down to finality store (#574) feat: add logger template (#576)
sfroment
added a commit
that referenced
this pull request
Mar 18, 2025
* origin: chore(deps): bump @opentelemetry/sdk-trace-web from 1.30.1 to 2.0.0 (#585) fix!: testcase handle sync message correctly (#588) feat: expose the peerId that created the operations (#551) Fix: testcase incorrect (#557) chore(deps-dev): bump eslint-import-resolver-typescript from 3.8.7 to 4.2.0 (#583) fix: add log config to createObject option to be passed down to finality store (#574) feat: add logger template (#576) chore: add @trung to keychain code owners (#562) refactor!: remove public credential (#563)
sfroment
added a commit
that referenced
this pull request
Mar 19, 2025
* origin: fix: log_config pass down to disco interval (#590) feat(object): drpobject become generic (#565) chore(deps): bump @opentelemetry/sdk-trace-web from 1.30.1 to 2.0.0 (#585) fix!: testcase handle sync message correctly (#588) feat: expose the peerId that created the operations (#551) Fix: testcase incorrect (#557) chore(deps-dev): bump eslint-import-resolver-typescript from 3.8.7 to 4.2.0 (#583) fix: add log config to createObject option to be passed down to finality store (#574) feat: add logger template (#576) chore: add @trung to keychain code owners (#562) refactor!: remove public credential (#563) fix(network): 🐛 isDialable shall ret true event when no callback is passed (#559) feat: add hashgraph visualizer (#512)
sfroment
added a commit
that referenced
this pull request
Mar 19, 2025
…t-bootstrap * origin: fix(interval-discovery)!: now use a != topic in order not to have many invalid operation logs (#589) feat!: restrict set key access (#582) fix: log_config pass down to disco interval (#590) feat(object): drpobject become generic (#565) chore(deps): bump @opentelemetry/sdk-trace-web from 1.30.1 to 2.0.0 (#585) fix!: testcase handle sync message correctly (#588) feat: expose the peerId that created the operations (#551) Fix: testcase incorrect (#557) chore(deps-dev): bump eslint-import-resolver-typescript from 3.8.7 to 4.2.0 (#583) fix: add log config to createObject option to be passed down to finality store (#574) feat: add logger template (#576)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What type of PR is this?
Description
DRPRuntimeContext
and added to theIDRP
.drp.context
before applying an opeartion to the drp.Steps to access the peerId of the operation creator in a function:
context: DrpRuntimeContext
as an attribute of your DRP.this.context.caller
.For example, we can use this to verify the creator of the
grant
operation has admin permission:Related Issues and PRs
Added/updated tests?
Additional Info
add instructions or screenshots on what you might think is relevant or instructions on how to manually test it
[optional] Do we need to perform any post-deployment tasks?