Skip to content
代码片段 群组 项目
提交 92e666f9 编辑于 作者: lma-git's avatar lma-git 提交者: Leaminn Ma
浏览文件

Add gql option to ciCatalogResources to sort by usage

Adds a GraphQl option to the 'ciCatalogResources'
endpoint to sort by last_30_day_usage_count.
Usage is defined as the number of unique projects that
have used a component from the catalog resource in the
last 30 days, using 'include:component'.  For now the
values are all 0 but they will be populated in
https://gitlab.com/gitlab-org/gitlab/-/issues/452545.

Also added an index on the usage column to improve
query performance when sorting by last_30_day_usage_count.

Changelog: added
上级 1698bdf0
No related branches found
No related tags found
无相关合并请求
显示
106 个添加14 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册