[PATCH compass-ci] sbin/es-find order by start_time as default

[Why] Many time, user would see the latest jobs [How] Set 'start_time' as default keyword for order with 'desc' Signed-off-by: Lu Weitao <luweitaobe@163.com> --- sbin/es-find | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/es-find b/sbin/es-find index c57c02e..ed54955 100755 --- a/sbin/es-find +++ b/sbin/es-find @@ -72,7 +72,7 @@ def assign_range(value) range_value end -options = { nr_jobs: 10, desc_keyword: nil } +options = { nr_jobs: 10, desc_keyword: 'start_time' } range = nil opt_parser = OptionParser.new do |opts| -- 2.23.0

On Tue, Feb 02, 2021 at 09:59:30AM +0800, Lu Weitao wrote:
[Why] Many time, user would see the latest jobs
Many time, => Usually
[How] Set 'start_time' as default keyword for order with 'desc'
Signed-off-by: Lu Weitao <luweitaobe@163.com> --- sbin/es-find | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/es-find b/sbin/es-find index c57c02e..ed54955 100755 --- a/sbin/es-find +++ b/sbin/es-find @@ -72,7 +72,7 @@ def assign_range(value) range_value end
-options = { nr_jobs: 10, desc_keyword: nil } +options = { nr_jobs: 10, desc_keyword: 'start_time' } range = nil
opt_parser = OptionParser.new do |opts| -- 2.23.0
participants (2)
-
Cao Xueliang
-
Lu Weitao