-
Notifications
You must be signed in to change notification settings - Fork 51
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
refactor: HTTP client interface #1776
Merged
nasdf
merged 58 commits into
sourcenetwork:develop
from
nasdf:nasdf/refactor/api-client-interface
Sep 8, 2023
Merged
Changes from 56 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
a8d6791
initial version of http server and client
nasdf 25d2250
update lens client http base url
nasdf 1e70947
integration tests working with http client
nasdf 466fe78
fix linter errors
nasdf d86ee90
fixes to make more tests pass
nasdf ef58ecd
add http subscription logic
nasdf da866b5
implement more http collection methods
nasdf 1c3c828
implement lens http server and client
nasdf 6a8e798
refactor http client and server for better use in testing. move clien…
nasdf 0162b1c
implement http transaction api
nasdf 38d0f0e
http client fixes
nasdf 7f00cba
clean document after save and update
nasdf 9962325
more http client test fixes
nasdf f5c29b3
almost all tests passing
nasdf 6a72bb6
fix lint errors
nasdf ce0054a
Merge branch 'develop' into nasdf/refactor/api-client-interface
nasdf 508cd83
enable all tests
nasdf 0ebf11c
fix http lens client with incorrect method path
nasdf 677f18f
fix http transaction middleware
nasdf 48a4103
handle transaction conflict errors in http client
nasdf 41ce1cd
update lens getMigrations test logic
nasdf edd246e
fix linter warnings
nasdf 181d6c3
fix race in event publish
nasdf 680efcd
add wait group sync to publisher
nasdf b6f7d4a
fix bug in memory datastore
nasdf 166080e
fix memory transaction deadlock
nasdf 509cf00
use transaction close lock in memory datastore
nasdf add612f
revert publisher changes
nasdf b8614a3
disable lens transactions in http middleware
nasdf efbc15c
enable transaction middleware. make http client WithTxn public
nasdf dc4bbdd
change http server implementation to chi
nasdf b0eda37
increase test timeout
nasdf b9dfeb1
move compare logic for integration tests. implement AnyOf comparison …
nasdf 7a2ec0e
more test cleanup
nasdf 0854393
cleanup
nasdf e89d045
add logger middleware
nasdf 51590d3
add generic functions for array test helpers. rename compare to results
nasdf cfd66a4
add generic helper for trimExplainAttributes
nasdf dc859a9
Merge branch 'develop' into nasdf/refactor/api-client-interface
nasdf 13c98fc
more cleanup. add PrintDump to http client
nasdf 2de06d1
Merge branch 'develop' into nasdf/refactor/api-client-interface
nasdf 8146640
update http client names to better match interfaces
nasdf fd20479
improve http error parsing. fix bug in collection get http handler
nasdf 17fa8be
revert test case changes that are fixed now
nasdf 5f4e043
add generic resultOptionsAreEqual test function
nasdf 9f88fef
test utils cleanup. fix change detector defaults
nasdf 7b12e04
add comments to ignored close errors in http client
nasdf 7f7f747
add http middleware context documentation
nasdf 5f96d78
relax comparisons when testing non go clients
nasdf 31f9b98
add error documentation. restore lens test comment
nasdf cba08de
only test go client by default. allow change detector with any client…
nasdf 4dded7d
clean up generic function calls. remove comment notes. adjust assertR…
nasdf df79ef4
fix lens http client parsing bug
nasdf 05f6f80
fix bug with body parsing logic in lens migrate handlers
nasdf 97efa00
fix bug in http lens client migrate
nasdf 35d0040
Merge branch 'develop' into nasdf/refactor/api-client-interface
nasdf cc773c7
fixes for failing http tests
nasdf 170d07a
update result test helper names
nasdf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, for myself and other reviewers, the rest of the funcs in
basicTxn
do this (t.closeLk
) and this appears to be a bug fix.