Skip to content

Commit 84959b2

Browse files
authored
Remove old Data Explorer API (#503)
1 parent 56ba632 commit 84959b2

20 files changed

Lines changed: 7 additions & 3568 deletions

portal-backend/tests/depmap/data_explorer_2/context/test_custom_operators.py renamed to breadbox/tests/depmap_compute_embed/test_context.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
from depmap_compute.context import LegacyContextEvaluator
1+
from breadbox.depmap_compute_embed.context import ContextEvaluator
22

3+
# Our ContextEvaluator makes heavy use of an extension to the 3rd party library: json_logic
4+
# These tests ensure that behavior is continuing to work as expected.
35

46
def test_operator__not_in():
57
assert expressions_are_equivalent(
@@ -76,6 +78,6 @@ def expressions_are_equivalent(boolean_value, json_logic_expr):
7678
# These expressions don't use variables (just pure logic)
7779
var_name = "dummy variable"
7880
get_slice_data_mock = lambda _: {}
79-
result = LegacyContextEvaluator(context, get_slice_data_mock).is_match(var_name)
81+
result = ContextEvaluator(context, get_slice_data_mock).is_match(var_name) # pyright: ignore
8082

81-
return result == boolean_value
83+
return result == boolean_value

portal-backend/depmap/data_explorer_2/datasets.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)