in etl/glean_auto_events.py [0:0]
def get_auto_events_for_app(app, auto_events):
"""Get the automatic events for the app"""
event_names = [event for event in auto_events if event["app"] == app]
auto_events = []
for row in event_names:
auto_event_id = row["event_name"].split(".")[-1]
event_template = copy.deepcopy(_auto_event_template)
event_template["name"] = row["event_name"]
event_template["description"] = (
f"An event triggered whenever the {auto_event_id} element is clicked on a page."
)
event_template["event_info"]["auto_event_id"] = auto_event_id
auto_events.append(event_template)
return auto_events