<#5271 [BUG] Flyteconsole not showing latest Launc...
# flyte-github
c
#5271 [BUG] Flyteconsole not showing latest LaunchPlan details Issue created by pablocasares ### Describe the bug When checking the LaunchPlan view: https://<flyteconsole_url>/console/projects/<project_name>/domains/production/launchPlans/<lp_name>?duration=all The details list shown doesn't correspond to the latest LaunchPlan registered. In our case it is showing the details from a previous version. This might be caused because the query to fetch the data seems to be
https://<flyteadmin_url>/api/v1/launch_plans/<project_name>/production?filters=eq(launch_plan.name,<project_name>)&token=&limit=1
and it might need to be changed to
https://<flyteadmin_url>/api/v1/launch_plans/<project_name>/production?filters=eq(launch_plan.name,<project_name>)&token=&limit=1\&sort_by.direction\=DESCENDING\&sort_by.key\=created_at
### Expected behavior Flyteconsole UI should show the details for the latest LaunchPlan. ### Additional context to reproduce No response ### Screenshots [image](https://private-user-images.githubusercontent.com/4056828/324809169-56d2c6ad-25e8-402d-a5f7-84b72121aa28.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDgxMzIyMDQsIm5iZiI6MTc0ODEzMTkwNCwicGF0aCI6Ii80MDU2ODI4LzMyNDgwOTE2OS01NmQyYzZhZC0yNWU4LTQwMmQtYTVmNy04NGI3MjEyMWFhMjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDUyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTA1MjVUMDAxMTQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmJmODhiYjFiYzI2MDkzYTI4NTIyZDZiY2QxOTY2MTAzYjNjMzkzMThiNzUxNDM1MjQ3MjhmODU5MmNjMzY2MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.PfHQoV8tmFv3DOME0_M4A8Zjb24GRxSe_Pif7Odh_Zo) ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte