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 bug with record.data.* after record queries #298

Merged
merged 4 commits into from
Nov 19, 2023
Merged

Conversation

frankhinek
Copy link
Contributor

This is primarily a bug fix PR that resolves the following error that was reported by multiple developers:

Error encountered while attempting to read data: Cannot read properties of undefined (reading 'protocol')

@web5/agent

  • Improve Type safety now that RecordsReadReply is part of DwnResponse and type casting is no longer necessary.

@web5/api

@frankhinek frankhinek added the bug Something isn't working label Nov 18, 2023
@frankhinek frankhinek added this to the @web5/api 0.8.3 milestone Nov 18, 2023
@frankhinek frankhinek self-assigned this Nov 18, 2023
Copy link

codesandbox bot commented Nov 18, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@frankhinek frankhinek changed the title Fix bug with record.data.* with record queries Fix bug with record.data.* after record queries Nov 18, 2023
Copy link
Contributor

github-actions bot commented Nov 18, 2023

TBDocs Report

✅ No errors or warnings

@web5/api

  • Project entry file: packages/api/src/index.ts

Updated @ 2023-11-19T00:27:05.936Z - Commit: 351eac9

Copy link

codecov bot commented Nov 18, 2023

Codecov Report

Merging #298 (ff4f900) into main (9655934) will increase coverage by 0.09%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
+ Coverage   90.70%   90.80%   +0.09%     
==========================================
  Files          74       74              
  Lines       14075    14072       -3     
  Branches     1384     1387       +3     
==========================================
+ Hits        12767    12778      +11     
+ Misses       1282     1269      -13     
+ Partials       26       25       -1     
Components Coverage Δ
api 96.68% <100.00%> (+1.04%) ⬆️
common 95.00% <ø> (ø)
credentials 94.49% <ø> (ø)
crypto 100.00% <ø> (ø)
dids 88.75% <ø> (ø)
agent 88.07% <ø> (ø)
identity-agent 56.81% <ø> (ø)
proxy-agent 58.43% <ø> (ø)
user-agent 55.22% <ø> (ø)

@frankhinek frankhinek merged commit 7efd9bf into main Nov 19, 2023
25 of 26 checks passed
@frankhinek frankhinek deleted the fix-record-data branch November 19, 2023 00:30
finn-block pushed a commit that referenced this pull request Mar 19, 2024
* Improve Type safety now that RecordsReadReply is part of DwnResponse
* Improve test coverage by ensuring that the DWN query record size limit is imported from DWN SDK
* Fix bug caused by RecordsRead now taking a filter property and add tests
finn-block pushed a commit that referenced this pull request Mar 19, 2024
* Improve Type safety now that RecordsReadReply is part of DwnResponse
* Improve test coverage by ensuring that the DWN query record size limit is imported from DWN SDK
* Fix bug caused by RecordsRead now taking a filter property and add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants