Skip to content

Conversation

flyingsilverfin
Copy link
Member

@flyingsilverfin flyingsilverfin commented Oct 29, 2019

What is the goal of this PR?

Matching protocol changes in typedb/typedb-protocol#20, we now iteratively retrieve layers of the Explanation tree of a ConceptMap answer. ConceptMap.explanation() does a round trip to the Grakn server and retrieves a list of ConceptMap that explain how the given concept map was obtained. We also restrict Explanation to only be obtainable from ConceptMap, given that we have not implemented Explanation on delete, count, etc. queries.

What are the changes implemented in this PR?

  • Implement Retrievable explanations, Restrict explanations to ConceptMaps typedb-protocol#20
  • ConceptMap contains a queryPattern -- this is empty if reasoner is not triggered, and the new method hasExplanation() will return false
  • When hasExplanation() is true, it is possible to send the ConceptMap back to the server via Transaction to obtain an Explanation object
  • Explanation object only contains a list of ConceptMap
  • Refactor tests and add an Explanation test

@flyingsilverfin flyingsilverfin merged commit c3dd017 into typedb:master Nov 5, 2019
dmitrii-ubskii pushed a commit that referenced this pull request Aug 25, 2023
* bump license date to 2019

* bump grakn deps manually

* remove external runner for grakn in test-integration, relying only on initialisation from within integration test
dmitrii-ubskii pushed a commit to dmitrii-ubskii/typedb-driver that referenced this pull request Aug 31, 2023
## What is the goal of this PR?

Fix CI build by allowing certain actions (`npm pack`, `npm publish`) to be executed non-remotely

## What are the changes implemented in this PR?

Starting from `0.27`, `bazel` automatically picks us `remote` strategy if it's available for action (see bazelbuild/bazel#7480 for details). However, setting `--spawn_strategy` explicitly prohibits `bazel` from using _any_ other strategy (such as `local`) — which is needed for executing `npm pack`/`npm publish` in `assemble_npm` and `deploy_npm`, respectively.
@flyingsilverfin flyingsilverfin deleted the retrieve-explanation branch October 27, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants