Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Response a element with filter by identifier. #9

Merged

Conversation

EdwinBetanc0urt
Copy link
Contributor

@EdwinBetanc0urt EdwinBetanc0urt commented Mar 28, 2024

Currently when filtering by identifier (which like the uuid is unique) it replaces the structure within a hierarchy, instead of response values directly in the root of the json.

Before this changes

{
    "browser": {
        "uuid": "8aaf0086-fb40-11e8-a479-7a0060f0aa01",
        "id": 50018,
        "code": "Activities Progress Monitor",
        "name": "Monitor de Progreso de Actividades",
        "description": "Monitor de Progreso de Actividades",
        "help": null,
        "is_execute_query_by_default": false,
        "is_collapsible_by_default": false,
        "is_selected_by_default": false,
        "is_show_total": false,
        "field_key": "OA_PP_Order_Node_ID",
        "access_level": "3",
        "is_updateable": false,
        "is_deleteable": false,
        "table_name": null,
        "table": null,
        "index_value": "browser_es_mx_11",
        "language": "es_MX",
        "client_id": 11,
        "role_id": null,
        "user_id": null,
        "context_column_names": [],
        "process_id": 0,
        "process": null,
        "window_id": 53009,
        "window": {
            "id": 53009,
            "uuid": "a521e6f4-fb40-11e8-a479-7a0060f0aa01",
            "name": "Orden de Manufactura",
            "description": "Mantenimiento de órdenes de manufactura",
            "help": "Manufacturing Schedule is a document group of documents or schedule identity  conveying authority for the manufacture of specified parts or products in specified quantities."
        },
        "display_fields": [],
        "criteria_fields": [],
        "identifier_fields": [],
        "order_fields": [],
        "editable_fields": []
    }
}

After this changes

{
    "uuid": "8aaf0086-fb40-11e8-a479-7a0060f0aa01",
    "id": 50018,
    "code": "Activities Progress Monitor",
    "name": "Monitor de Progreso de Actividades",
    "description": "Monitor de Progreso de Actividades",
    "help": null,
    "is_execute_query_by_default": false,
    "is_collapsible_by_default": false,
    "is_selected_by_default": false,
    "is_show_total": false,
    "field_key": "OA_PP_Order_Node_ID",
    "access_level": "3",
    "is_updateable": false,
    "is_deleteable": false,
    "table_name": null,
    "table": null,
    "index_value": "browser_es_mx_11",
    "language": "es_MX",
    "client_id": 11,
    "role_id": null,
    "user_id": null,
    "context_column_names": [],
    "process_id": 0,
    "process": null,
    "window_id": 53009,
    "window": {
        "id": 53009,
        "uuid": "a521e6f4-fb40-11e8-a479-7a0060f0aa01",
        "name": "Orden de Manufactura",
        "description": "Mantenimiento de órdenes de manufactura",
        "help": "Manufacturing Schedule is a document group of documents or schedule identity  conveying authority for the manufacture of specified parts or products in specified quantities."
    },
    "display_fields": [],
    "criteria_fields": [],
    "identifier_fields": [],
    "order_fields": [],
    "editable_fields": []
}

@yamelsenih yamelsenih merged commit 6e9b63d into adempiere:main Mar 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants