You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query=" ch.name as chart_name, das.id as docker_artifact_store_id"
100
100
}
101
101
}
102
-
102
+
//for chart repos, created (derived through index.yaml) column of app_store_application_version is used for finding latest version and for oci repo id is used (because created is null)
103
103
latestAppStoreVersionQueryForChartRepo:=" SELECT MAX(created) as created "+
104
104
" FROM app_store_application_version asv "+
105
105
" INNER JOIN app_store aps ON (asv.app_store_id = aps.id and aps.active = true and aps.chart_repo_id is NOT NULL) "+
//for chart repos, created (derived through index.yaml) column of app_store_application_version is used for finding latest version and for oci repo id is used (because created is null)
254
255
queryTemp:="select asv.id as app_store_application_version_id, asv.version, asv.deprecated, aps.id as chart_id,"+
255
256
" aps.name as chart_name, chr.id as chart_repo_id, chr.name as chart_repo_name"+
256
257
" from app_store_application_version asv"+
257
258
" inner join app_store aps on asv.app_store_id = aps.id"+
258
259
" left join chart_repo chr on aps.chart_repo_id = chr.id"+
259
260
" left join docker_artifact_store das on aps.docker_artifact_store_id = das.id"+
260
-
" where aps.name like '%"+
261
-
chartName+"%' and"+
262
-
" ( ( aps.docker_artifact_store_id is NOT NULL and asv.id = (SELECT MAX(id) FROM app_store_application_version WHERE app_store_id = asv.app_store_id)) or (aps.chart_repo_id is NOT NULL and asv.created = (SELECT MAX(created) FROM app_store_application_version WHERE app_store_id = asv.app_store_id)) ) "+
261
+
" where aps.name like '%"+chartName+"%' and"+
262
+
"( "+
263
+
"( aps.docker_artifact_store_id is NOT NULL and asv.id = (SELECT MAX(id) FROM app_store_application_version WHERE app_store_id = asv.app_store_id))"+
264
+
" or "+
265
+
"(aps.chart_repo_id is NOT NULL and asv.created = (SELECT MAX(created) FROM app_store_application_version WHERE app_store_id = asv.app_store_id)) "+
0 commit comments