Skip to content

Commit

Permalink
Add redex.py option to override enabled deep data interactions
Browse files Browse the repository at this point in the history
Summary: For AB test

Reviewed By: ssj933

Differential Revision: D58762381

fbshipit-source-id: 54e6f72d0908972d8198187ec2d4518d6126bacf
  • Loading branch information
Jimmy Cleary authored and facebook-github-bot committed Jun 19, 2024
1 parent adc8cec commit bd474f0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion redex.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,13 @@ def arg_parser(
"--verify-dexes", type=str, help="Verify dex files with the supplied command"
)

parser.add_argument(
"--deep-data-enabled-interactions",
default=None,
nargs="+",
help="Override deep data enabled interactions",
)

# Manual tool paths.

# Must be subclassed.
Expand Down Expand Up @@ -1197,7 +1204,12 @@ def prepare_redex(args: argparse.Namespace) -> State:
sys.exit()

# Unpack profiles, if they exist.
dd_enabled_interactions = config_dict.get("deep_data_enabled_interactions", [])
dd_enabled_interactions = (
args.deep_data_enabled_interactions
if args.deep_data_enabled_interactions
else config_dict.get("deep_data_enabled_interactions", [])
)

_handle_profiles(args, dd_enabled_interactions)
_handle_secondary_method_profiles(args)

Expand Down

0 comments on commit bd474f0

Please sign in to comment.