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

fix: Return DidResolutionResult in resource_query_handler #341

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

DaevMithran
Copy link
Contributor

@DaevMithran DaevMithran commented Feb 20, 2025

Previously resource query handlers pass only the resources in response. we are return didDoc + metadata to support didResolution in queries. This part of code which will be called only if DidDocQueryHandlers are not registered was missing this change

@sownak
Copy link
Contributor

sownak commented Feb 20, 2025

Shouldn't his have some updated tests?

@DaevMithran
Copy link
Contributor Author

Shouldn't his have some updated tests?

@sownak This part of the code is never called. It will be called if we did not register DidDocQueryHandlers. we don't have any unittests for query handlers

@DaevMithran DaevMithran requested a review from sownak February 20, 2025 15:10
@sownak sownak merged commit aa688a6 into resource-query Feb 20, 2025
17 checks passed
@sownak sownak deleted the bug-fix branch February 20, 2025 15:13
ankurdotb added a commit that referenced this pull request Feb 21, 2025
…+ other fixes [DEV-4758] (#340)

* feat: Accept contetType params for DID URL Resolution

* Update tests

* Add additional tests

* Get highest priority header and params

* Add additional tests

* Add additional tests

* feat: Render json and text in ResourceWithMetadata

* fix: Add custom json marshaller

* fix linting errors

* feat: Return metadata in contentMetadata key

* Update integration tests

* feat: new headers for didDoc resolution

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* fix: lint errors

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* Use go-accept-headers

* Updated integration tests

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* Revert to contentPriorityType

* feat: Support metadata=false && resourceMetadata with W3DIDRes header

* updated GetPriorityContentType

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* fix default resource profile

* Empty commit for triggering deployment/fix

* fix resourceMetadata

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* fixed browser errors

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* updated dependabot changes

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* added testcases

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* Added Chrome test cases

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* npm update

* make swagger

* Updated with review comments

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* Updated with review comments

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* Updated with review comments

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* merged from develop

* fixed lint errors

Signed-off-by: Sownak Roy <sownak@cheqd.io>

* Bump to final API release version

* Update resource query handlers to support resolution

* fix linting errors

* fix: Return DidResolutionResult in resource_query_handler (#341)

* Support jsonld didurlDereferencing in queries

* Update .gitignore

* gofumpt

---------

Signed-off-by: Sownak Roy <sownak@cheqd.io>
Co-authored-by: Ankur Banerjee <ankurdotb@users.noreply.github.com>
Co-authored-by: Tasos Derisiotis <50984242+Eengineer1@users.noreply.github.com>
Co-authored-by: Sownak Roy <sownak@cheqd.io>
Co-authored-by: Sownak Roy <20537268+sownak@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants