You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Changes the JSON representation of PartialKind from the string "Partial:<label>:<name>" to a JSON structure (similar to TransformKind).
Makes parsing sharded models from JSON easier. Used in --replay-mode, and potentially JAR caching (--sharded-input-models).
Conversion to string representation is done in mariana_trench_parser_objects.py, similar to TransformKinds. Similar support for TriggeredPartialKind coming up next.
NOTE: There is now a `PartialKind::from_json()` and `PartialKind::from_rule_json()`. The latter is pre-existing and renamed. It supports parsing partial kinds from rules where the name and labels are nested in different objects:
```
{
"name": "Blah",
"code": 1,
"description": "multi source rule",
"multi_sources": {
"a": [ "Source1" ],
"b": [ "Source2" ]
},
"partial_sinks": [ "MyPartialSink" ]
}
```
Reviewed By: arthaud
Differential Revision: D71245841
fbshipit-source-id: e086e05c7d7bb61fcb5402f5eca3ff1cc115e1cc
0 commit comments