-
Notifications
You must be signed in to change notification settings - Fork 33
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
Contact not added correctly after a previous deletion #292
Comments
The problem here is the long running operation is related to the OOBI and not the contact. The OOBI has been previously resolved (and is never removed (we don't unresolve for contact deletion)) so the operation is I think the cleanest solution might be to have a new |
Thanks for putting some thought into it! I agree that would be cleaner. I think we can even take it one step further even - what if the "resolve oobi" is completely independent from contacts. If you want to add a contact you would POST / PUT a contact resource that contains alias and AID. The creation of contact would fail if the oobi is not yet resolved. This is what we have to do often times anyway if we want to add more attributes to the contact. If we do it that way, the resolving of an oobi would never affect the contact database. What do you think? |
Yeah I wouldn't be opposed to that since the second call would be necessary anyway for the attributes, and the OOBI resolution is idempotent if it fails before creating the contact. This is inherited from keripy though so we'd have to see if it makes sense with @pfeairheller and others. |
From the dev meeting today: |
For now at minimum we could create the new op type. But if we are moving towards removing contacts from KERI in the long term, I think it makes sense to stop mixing OOBIs and contacts already as @lenkan has suggested. |
@lenkan I looked at this yesterday a little more closely. The POST/PUT contact APIs are synchronous and once you get the 200 everything is done, so there's no op type. I could add a new op type, but not sure it's the right move until we know if OOBIs and contacts will be decoupled. Would rather not add it and then remove it later. You could mimic it for now by not passing an alias to the OOBI resolution, and using POST to create it. |
Steps to reproduce
Actual result
HTTP 404 is returned.
Notes
See reproduction https://github.com/nordlei/vlei-sandbox/blob/main/src/issues/contact-not-added-after-deletion.test.ts
It seems like the contact attributes are removed from the contact.
See test
It looks like I need to add a delay after the operation has resolved before the contact is properly added to the list of contacts.
The text was updated successfully, but these errors were encountered: