Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Provide hdk::query_result API to allow return of Headers if desired #868

Merged
merged 41 commits into from
Jan 24, 2019
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
4b5ce1d
WIP: Add new hdk::query_...() API to return ChainHeader vs. just Address
pjkundert Jan 15, 2019
6f31bd0
Builds successfully.
pjkundert Jan 15, 2019
79cb467
Merge branch 'develop' of github.com:holochain/holochain-rust into fe…
pjkundert Jan 15, 2019
322d593
Add a bit more commentary to query.rs API re: parameter type safety
pjkundert Jan 15, 2019
8214cb8
Renovate hdk::query/query_result and chain_store query APIs
pjkundert Jan 15, 2019
9f8fb69
Improve documenation to hdk::query and hdk::query_result WIP
pjkundert Jan 16, 2019
8ba1c04
Merge branch 'develop' into feature-query-headers
pjkundert Jan 16, 2019
99194eb
Tidy up documentation a bit
pjkundert Jan 16, 2019
159061c
Make the clean: target more effective at restoring build environment
pjkundert Jan 16, 2019
901aaa6
Clean up hdk and chain_store query APIs
pjkundert Jan 16, 2019
d1b8f4d
Clean up ChainStore .collect()s, and ensure QueryResult enum has tagging
pjkundert Jan 16, 2019
dd71eea
Merge branch 'develop' of github.com:holochain/holochain-rust into fe…
pjkundert Jan 16, 2019
d7f31dd
Merge branch 'develop' into feature-query-headers
pjkundert Jan 17, 2019
565f4e7
Merge branch 'develop' of github.com:holochain/holochain-rust into fe…
pjkundert Jan 17, 2019
0186b04
Merge branch 'develop' of github.com:holochain/holochain-rust into fe…
pjkundert Jan 18, 2019
eca7ed8
Merge branch 'develop' of github.com:holochain/holochain-rust into fe…
pjkundert Jan 21, 2019
e5f668b
Added the ability to compare Iso8601 type for equality, order
pjkundert Jan 21, 2019
84dded5
Fix ISO-8601 comparison unit tests
pjkundert Jan 21, 2019
aa04a6a
Merge branch 'develop' of github.com:holochain/holochain-rust into fe…
pjkundert Jan 21, 2019
1da56b5
Return Entries from hdk::query_result
pjkundert Jan 22, 2019
abd36da
DRY out get_entry_from_dht; questionable improvement...
pjkundert Jan 22, 2019
33e7792
Make entries: true always also include an Address or ChainHeader
pjkundert Jan 22, 2019
776cd08
rustfmt
Jan 22, 2019
8932ec6
Add some crate-local APIs to access Entry data from dht or agent
pjkundert Jan 22, 2019
4caa5d4
rustfmt
Jan 22, 2019
bee264a
Clean up some documentation and formatting.
pjkundert Jan 22, 2019
f2479d2
Proper rejection when `.call()` throws an exception
maackle Jan 22, 2019
059753d
Consistent rejection between callWithPromise and callSync
maackle Jan 22, 2019
17513fa
Merge branch 'scenario-call-proper-promise-rejection' into feature-qu…
julioholon Jan 22, 2019
dd56e90
Fix up formatting to satisfy hc-fmt-check
pjkundert Jan 22, 2019
a16c200
Register callback before call()
maackle Jan 22, 2019
4c4adb4
Add some documentation for the new hdk::query_result options
pjkundert Jan 22, 2019
b435450
Merge remote-tracking branch 'origin/scenario-call-proper-promise-rej…
julioholon Jan 22, 2019
af26b8b
Merge branch 'feature-query-headers' of github.com:holochain/holochai…
julioholon Jan 22, 2019
b222ad1
Revert change of WIP, fixing some nodejs test failures
pjkundert Jan 22, 2019
06410cd
Comment out inline doc tests which are not working
pjkundert Jan 22, 2019
7900141
Merge branch 'develop' into feature-query-headers
pjkundert Jan 22, 2019
97282d3
Merge branch 'feature-query-headers' of github.com:holochain/holochai…
julioholon Jan 23, 2019
48d3db4
Merge branch 'develop' into feature-query-headers
julioholon Jan 23, 2019
6e296fb
Merge branch 'develop' into feature-query-headers
maackle Jan 24, 2019
fac5aac
fmt
maackle Jan 24, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# holochain-rust Makefile
# currently only supports 'debug' builds

.PHONY: all help
all: build_holochain build_cmd
.PHONY: all install help
all: build_holochain build_cmd build_nodejs

install: install_cmd build_nodejs

help:
@echo "run 'make' to build all the libraries and binaries"
@echo "run 'make' to build all the libraries and binaries, and the nodejs bin-package"
@echo "run 'make install' to build and install all the libraries and binaries, and the nodejs bin-package"
@echo "run 'make test' to execute all the tests"
@echo "run 'make test_app_spec' to build and test app_spec API tests"
@echo "run 'make clean' to clean up the build environment"
Expand Down Expand Up @@ -185,6 +188,10 @@ build_holochain: core_toolchain wasm_build
build_cmd: core_toolchain ensure_wasm_target
$(CARGO) build -p hc

.PHONY: build_nodejs
build_nodejs:
cd nodejs_container && npm run compile && mkdir -p bin-package && cp native/index.node bin-package

.PHONY: install_cmd
install_cmd: build_cmd
cd cmd && $(CARGO) install -f --path .
Expand Down Expand Up @@ -212,8 +219,16 @@ ${C_BINDING_TESTS}:

# clean up the target directory and all extraneous "C" binding test files
clean: ${C_BINDING_CLEAN}
-@$(RM) -rf target
-@$(RM) -rf wasm_utils/wasm-test/integration-test/target
@for target in $$( find . -type d -a -name 'target' ); do \
echo -e "\033[0;93m## Removing $${target} ##\033[0m"; \
$(RM) -rf $${target}; \
done
@$(RM) -rf nodejs_container/dist
@$(RM) -rf app_spec/dist
@for cargo in $$( find . -name 'Cargo.toml' ); do \
echo -e "\033[0;93m## 'cargo update' in $${cargo%/*} ##\033[0m"; \
( cd $${cargo%/*} && cargo update ); \
done

# clean up the extraneous "C" binding test files
${C_BINDING_CLEAN}:
Expand Down
Loading