def check_view_filter_and_group_by_criteria(filter_set, group_by_set):
    """Return a bool for whether a view can be used."""
    no_view_group_bys = {"project", "node"}
    # The dashboard does not show any data grouped by OpenShift cluster, node, or project
    # so we do not have views for these group bys
    if group_by_set.intersection(no_view_group_bys) or filter_set.intersection(no_view_group_bys):
        return False
    return True