- account_uuid_info = {
'email' => sum_infos['email'],
'name' => sum_infos['email'].split('@')[0],
'uuid' => sum_infos['account_uuid'],
'user' => sum_infos['acct_infos']['account'],
'my_commit_url' => sum_infos['url']
- }
- es = ESClient.new(index: 'accounts')
- es.put_source_by_id(sum_infos['email'], account_uuid_info)
Let's make the names more specific and use the specific names throughout the project consistently.
variable (or hash key) example value
my_email wfg@kernel.org my_name Wu Fengguang my_commit_url https://gitee.com/wu_fengguang/compass-ci/commit/b14b8b5b2ba3c47d1bd13eaf734... my_uuid 88c756ad-9707-491b-b406-13515ffcb887 my_login_name hi1000
so, we should also update es-mapping of accounts index in ES DB
where the below vars should be set in the user's defaults config
we could remind user set them in user's defaults config with email
(.config/compass-ci/defaults/xxx.yaml), to be auto included in every job he/she submits.
my_name my_email my_uuid
above 3 field will keep consistent names throughout the project, include jobs index for job result mail, bisect result email, ... we can use the $my_email, right?
Thanks, Weitao
Thanks, Fengguang