Skip to content

Return full commits from remote nameservices#968

Merged
zonotope merged 10 commits intomainfrom
fix/nameservice-commit
Feb 13, 2025
Merged

Return full commits from remote nameservices#968
zonotope merged 10 commits intomainfrom
fix/nameservice-commit

Conversation

@zonotope
Copy link
Contributor

#965 changed the lookup-commit nameservice api method to return the full latest commit document instead of just the address of the latest commit. However, the commit document returned was expanded in our proprietary format instead of expanded or compact jsonld, and this change wasn't implemented for remote nameservices.

This patch extends on #965 to return compact jsonld from the lookup-commit api method, and it changes the behavior of remote nameservices to match storage-based and ipns based nameservices.

I thought about fixing these issues while keeping the original goal of #965 by making changes to stop storing the index in the commit document, and instead store indexes and commits separately while adding another nameservice api method to retrieve the latest index. I think this is what we should do eventually as it will simplify the system and prevent other issues, but I chose to do the most expedient thing right now to fix the immediate problem.

@zonotope zonotope requested a review from a team February 13, 2025 18:37
@zonotope zonotope self-assigned this Feb 13, 2025
Copy link
Contributor

@dpetran dpetran left a comment

Choose a reason for hiding this comment

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

🥧

@zonotope zonotope merged commit 0b762b0 into main Feb 13, 2025
6 checks passed
@zonotope zonotope deleted the fix/nameservice-commit branch February 13, 2025 19:52
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.

2 participants