def get_supply_point_ids_in_domain_by_location(domain):
    from corehq.apps.commtrack.models import SupplyPointCase
    return {
        row['key'][1]: row['id'] for row in SupplyPointCase.get_db().view(
            'supply_point_by_loc/view',
            startkey=[domain],
            endkey=[domain, {}],
        )
    }
Auto apply the action. subject is optional, and needs to be passed
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/commtrack/dbaccessors/__init__.py/get_supply_point_ids_in_domain_by_location--crossover with--dataset/ETHPy150Open ofri/Open-Knesset/suggestions/models.py/SuggestedAction.auto_apply