(domain, app_id, xmlns)
Returns metadata about the form, or None if no info found.

    Here is an example structure:
    {
        "xmlns": "http://openrosa.org/formdesigner/5D563904-4038-4070-A0D4-CC421003E862",
        "form": {
            "name": {
                "en": "Brogramming Project",
                "es": "Projecto de brogramming"
            },
            "id": 1
        },
        "app": {
            "langs": [
                "es",
                "en",
                "fra"
            ],
            "name": "brogrammino",
            "id": "10257bd886ba423eea19a562e95cec07"
        },
        "module": {
            "name": {
                "en": "Dimagi",
                "es": "Brogramminos"
            },
            "id": 0
        },
        "app_deleted": false,
        "submissions": 15
    }
Returns metadata about the form, or None if no info found.
Returns metadata about the form or None if no info found .
def get_form_analytics_metadata(domain, app_id, xmlns):
    """
    Returns metadata about the form, or None if no info found.

    Here is an example structure:
    {
        "xmlns": "http://openrosa.org/formdesigner/5D563904-4038-4070-A0D4-CC421003E862",
        "form": {
            "name": {
                "en": "Brogramming Project",
                "es": "Projecto de brogramming"
            },
            "id": 1
        },
        "app": {
            "langs": [
                "es",
                "en",
                "fra"
            ],
            "name": "brogrammino",
            "id": "10257bd886ba423eea19a562e95cec07"
        },
        "module": {
            "name": {
                "en": "Dimagi",
                "es": "Brogramminos"
            },
            "id": 0
        },
        "app_deleted": false,
        "submissions": 15
    }
    """
    # todo: wrap this return value in a class/stucture
    from corehq.apps.app_manager.models import Application
    view_results = Application.get_db().view(
        'exports_forms_by_app/view',
        key=[domain, app_id, xmlns],
        stale=stale_ok(),
        group=True
    ).one()
    form_counts = get_form_count_breakdown_for_domain(domain)
    form_count = form_counts.get((domain, app_id, xmlns))
    if view_results:
        result = view_results['value']
        result['submissions'] = form_count
        return result
    elif form_count:
        return {'xmlns': xmlns, 'submissions': form_count}
    else:
        return None
def get_form_analytics_metadata ( domain , app_id , xmlns ) : # todo: wrap this return value in a class/stucture from corehq . apps . app_manager . models import Application view_results = Application . get_db ( ) . view ( 'exports_forms_by_app/view' , key = [ domain , app_id , xmlns ] , stale = stale_ok ( ) , group = True ) . one ( ) form_counts = get_form_count_breakdown_for_domain ( domain ) form_count = form_counts . get ( ( domain , app_id , xmlns ) ) if view_results : result = view_results [ 'value' ] result [ 'submissions' ] = form_count return result elif form_count : return { 'xmlns' : xmlns , 'submissions' : form_count } else : return None