Open
Description
As soon as there is a
- REST API for feature extraction https://github.com/src-d/backlog/issues/1202
- UASTs are stored in DB
Receive and store serialized ProtoBuf \w UAST as part of the input #197→ Add UAST to old FilePairs #214
we would need to call an instance of this REST API through a configurable URL.
REST API input:
- 2 UASTs (optional)
REST API output:
- data that need to be shown in reviewer UI
Preliminary suggested by @vmarkovtsev JSON in details
[
{
"tab": "first scheme",
"object1": [
{"feature": "name1", "type": "number", "value": 100500},
{"feature": "name2", "type": "hash", "value": "abcdef0123456789"}
],
"object2": [
{"feature": "name1", "type": "number", "value": 100501},
{"feature": "name2", "type": "hash", "value": "abcdef1234567890"}
],
"pair": [
{"feature": "score", "type": "number", "value": 0.95}
],
}, {
"tab": "second scheme",
"object1": [
{"feature": "name1", "type": "number", "value": 100500},
{"feature": "name2", "type": "hash", "value": "abcdef0123456789"}
],
"object2": [
{"feature": "name1", "type": "number", "value": 100501},
{"feature": "name2", "type": "hash", "value": "abcdef1234567890"}
],
"pair": [
{"feature": "score", "type": "number", "value": 0.95}
],
}
]
but @mcuadros suggested using a simple structure, that as much as possible can be just "shown" or printed in the reviewer UI.
Part of this issue is to determine this simplest-possible, but extensible format.