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

New %contacts agent #283

Merged
merged 44 commits into from
Oct 11, 2024
Merged

New %contacts agent #283

merged 44 commits into from
Oct 11, 2024

Conversation

mikolajpp
Copy link
Collaborator

@mikolajpp mikolajpp commented Sep 14, 2024

The new %contacts agent supports a user-defined contact book. To that end, new types and state are introduced. The agent remains backward compatible on local (/news) endpoint, while foreign subscriptions are now managed with lib-negotiate and exposed over versioned endpoints. Implements TLON-2620.

Copy link

linear bot commented Sep 14, 2024

@mikolajpp mikolajpp force-pushed the mp/contacts branch 3 times, most recently from 9b87ac4 to 4b35132 Compare September 16, 2024 03:41
@mikolajpp mikolajpp marked this pull request as ready for review September 19, 2024 06:17
Copy link
Member

@Fang- Fang- left a comment

Choose a reason for hiding this comment

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

As discussed on call, comments and concerns inside.

desk/sur/contacts.hoon Outdated Show resolved Hide resolved
desk/sur/contacts.hoon Outdated Show resolved Hide resolved
desk/sur/contacts.hoon Outdated Show resolved Hide resolved
desk/sur/contacts.hoon Outdated Show resolved Hide resolved
desk/sur/contacts.hoon Outdated Show resolved Hide resolved
desk/app/contacts.hoon Outdated Show resolved Hide resolved
desk/app/contacts.hoon Outdated Show resolved Hide resolved
desk/app/contacts.hoon Outdated Show resolved Hide resolved
desk/app/contacts.hoon Outdated Show resolved Hide resolved
desk/app/contacts.hoon Show resolved Hide resolved
Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

bulk of the changes here look good, just a few issues

desk/mar/contact/page-1.hoon Show resolved Hide resolved
desk/lib/contacts-json.hoon Show resolved Hide resolved
desk/lib/contacts.hoon Outdated Show resolved Hide resolved
desk/lib/contacts.hoon Show resolved Hide resolved
desk/app/contacts.hoon Outdated Show resolved Hide resolved
desk/app/contacts.hoon Outdated Show resolved Hide resolved
desk/app/contacts.hoon Show resolved Hide resolved
@mikolajpp mikolajpp force-pushed the mp/contacts branch 2 times, most recently from f35d637 to 723717c Compare September 21, 2024 04:13
@mikolajpp mikolajpp requested review from arthyn and Fang- September 21, 2024 04:16
@mikolajpp mikolajpp force-pushed the mp/contacts branch 2 times, most recently from 02ac5fb to 36cbc66 Compare September 23, 2024 01:53
lib-subscriber expects that subscription wires contain
enough information to differentiate subscriptions, which
is not true for in %contacts: the /contact wire does not carry
peer information.
desk/lib/contacts.hoon Outdated Show resolved Hide resolved
Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

Everything looks good just one last small change then g2g

@arthyn
Copy link
Member

arthyn commented Oct 1, 2024

I successfully migrated a moon and was able to update profile information without changing the frontend (after the requested change)

@jamesacklin
Copy link
Member

I successfully migrated a moon and was able to update profile information without changing the frontend (after the requested change)

Does editing a profile work from the existing front-end?

@arthyn
Copy link
Member

arthyn commented Oct 1, 2024

@jamesacklin yep

@arthyn arthyn self-requested a review October 2, 2024 15:30
Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

lgtm

@jamesacklin
Copy link
Member

Thank you. Let's keep this off develop until after we release the native app Monday.

The .saga field of $foreign used to be defined as a nullable type $@(~ saga). However, $saga itself can take on atomic values, breaking the semantics of $@. Hoon compiler does not catch this error at compile time, however validating the type (and any type containing it) is going to fail.
@mikolajpp mikolajpp merged commit 9a59e2a into develop Oct 11, 2024
1 check passed
@mikolajpp mikolajpp deleted the mp/contacts branch October 11, 2024 04:00
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.

4 participants