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

Neodash multiselect parameter issue #883

Closed
Deepaksarda opened this issue May 2, 2024 · 4 comments · Fixed by #881
Closed

Neodash multiselect parameter issue #883

Deepaksarda opened this issue May 2, 2024 · 4 comments · Fixed by #881
Labels
bug Something isn't working

Comments

@Deepaksarda Deepaksarda added the bug Something isn't working label May 2, 2024
@alfredorubin96
Copy link
Collaborator

Hi @Deepaksarda, thank you for the creating this issue. This has already been fixed in the PR #881 made by @mariusconjeaud

@alfredorubin96 alfredorubin96 linked a pull request May 2, 2024 that will close this issue
@Deepaksarda
Copy link
Author

Deepaksarda commented May 8, 2024 via email

@Deepaksarda
Copy link
Author

Hi Team,

I had check that and multiselect error is fixed now but it has generated another bug.
I had created 5 different filters (below logic) and once dashboard is load if I just select only one filter it shows me no data retrieve. I need to select all filters first and deselect last 4 than report shows data to me.
Below is Cypher query:
with
'Supplier' as Supplier_Type,
'END_MODEL_PLANT' as End_Model_PLANT,
'Customer' as Customer_Value,
($neodash_customer_nodes_customer_group_name) as Customer,
($neodash_prog_master_family_prog_master_name) as program,
($neodash_end_model_plant_node_material_id) As End_Model,
($neodash_component_plant_node_material_id) as Component,
($neodash_supplier_node_location_desc) as Supplier
WITH
End_Model_PLANT, Customer_Value, Customer, program, End_Model, Component, Supplier,
CASE WHEN (Customer)<>[] THEN ['c.Customer_Group_Name in $Customer'] ELSE [] END

  • CASE WHEN (program)<>[] THEN ['p.Prog_Master_Name in $program'] ELSE [] END
  • CASE WHEN (End_Model)<>[] THEN ['np.Node_Material_Id in $End_Model'] ELSE [] END
  • CASE WHEN (Component)<>[] THEN ['n1.Node_Material_Id in $Component'] ELSE [] END
  • CASE WHEN (Supplier)<>[] THEN ['n1.Node_Location_Desc in $Supplier'] ELSE [] END
    as arrayOfFilters
    WITH
    'Match path=
    (n1:Nodes)-[:GO_TO*1..6]->
    (np:END_MODEL_PLANT)-[:GO_TO] ->
    (n2:Customer)-[:PART_OF]->
    (c:Customer_Nodes), (n2)-[:SUB_SET_OF]->(p:Prog_Master_Family)
    ' + CASE WHEN SIZE(arrayOfFilters)>0 THEN ' WHERE ' + apoc.text.join(arrayOfFilters,'
    AND ') ELSE '' END + '
    Return
    path limit 1000
    ' as query,
    {
    Customer:Customer, program:program, End_Model:End_Model, Component:Component, Supplier:Supplier
    } as params
    CALL apoc.cypher.run(query, params)
    YIELD value
    WITH value.path as path
    Return path

@mariusconjeaud
Copy link
Collaborator

This is fixed now in 2.4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants