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

feat: content claims reads by default with fallback for old index sources #93

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Dec 6, 2023

Makes content claims used by default. If no index was found from content claims, the handler is returned wrapped with the old withIndexerSources and withDagula (old)

Alternatively, we could add a new middleware and keep there the old ones. We could inspect in these middlewares if we have a dagula instance already, but I don't think that is a good way to go as we in the future can just drop this fallback


const output = new Uint8Array(await res1.arrayBuffer())
assert(equals(input[0].content, output))
assert.notEqual(claimsService.getCallCount(), 0)
Copy link
Member

Choose a reason for hiding this comment

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

You could have a claimsService.resetCallCount() that is called beforeEach and then you could assert on the real value.

@vasco-santos
Copy link
Contributor Author

vasco-santos commented Dec 7, 2023

Waiting on 🟢 light from @olizilla to get this merged and deployed

@vasco-santos vasco-santos merged commit 46dc509 into main Dec 12, 2023
1 check passed
@vasco-santos vasco-santos deleted the feat/content-claims-reads-by-default branch December 12, 2023 11:15
vasco-santos pushed a commit that referenced this pull request Dec 12, 2023
🤖 I have created a release *beep* *boop*
---


##
[2.14.0](v2.13.1...v2.14.0)
(2023-12-12)


### Features

* content claims reads by default with fallback for old index sources
([#93](#93))
([46dc509](46dc509))


### Bug Fixes

* add guard for missing dudewhere index links
([b3f7188](b3f7188))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants