On Thu, Oct 15, 2020 at 07:24:19PM +0800, Wu Fengguang wrote:
On Thu, Oct 15, 2020 at 05:46:32PM +0800, Lu Weitao wrote:
- 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
Right.
ok, I will update them.
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?
Right. It's the best way to 减轻认知负担.
ok, got it
Thanks, Weitao
Thanks, Fengguang