-
Notifications
You must be signed in to change notification settings - Fork 29
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: Implement SQL Identity Hub Store #43
feat: Implement SQL Identity Hub Store #43
Conversation
c4dd8e5
to
00f4b68
Compare
...spi/src/main/java/org/eclipse/dataspaceconnector/identityhub/store/spi/IdentityHubStore.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/eclipse/dataspaceconnector/identityhub/store/sql/SqlIdentityHubStore.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/eclipse/dataspaceconnector/identityhub/store/sql/SqlIdentityHubStore.java
Outdated
Show resolved
Hide resolved
...ures/java/org/eclipse/dataspaceconnector/identityhub/store/spi/IdentityHubStoreTestBase.java
Show resolved
Hide resolved
a258d39
to
f635e7d
Compare
@@ -151,6 +152,8 @@ private RequestObject createRequestObject(String method, byte[] data) { | |||
.descriptor(Descriptor.Builder.newInstance() | |||
.method(method) | |||
.nonce(NONCE) | |||
.recordId(UUID.randomUUID().toString()) | |||
.dateCreated(Instant.now().getEpochSecond()) |
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.
Should this be millis or is there a specific reason why this is the epoch date?
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.
From what I understand from the Decentralized Identity Foundation it should be epoch seconds: https://identity.foundation/decentralized-web-node/spec/0.0.1-predraft/#write
The object MUST contain a dateCreated property, and its value MUST be an Unix epoch timestamp that MUST be set and interpreted as the time the logical entry was created by the DID owner or another permitted party.
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 thx
@bscholtes1A Paul is out, so I took a look. I had one small comment - do you want to review that and also fix the conflicts so we can merge? |
f635e7d
to
847cac9
Compare
Answered and conflict fixed. |
@bscholtes1A do you want to merge? |
What this PR changes/adds
Provides SQL implementation of
IdentityHubStore
.Why it does that
Ensuring persistence of items put in the store.
Further notes
Linked Issue(s)
Closes #38.
Checklist
no-changelog
)