It enables to distinguish which requests were created from a forge
webhook receiver.
Related to T4548
Differential D8889
save_code_now: Add from_webhook field to SaveOriginRequest model anlambert on Nov 28 2022, 2:09 PM. Authored by
Details
It enables to distinguish which requests were created from a forge Related to T4548
Diff Detail
Event TimelineComment Actions Build was aborted Patch application report for D8889 (id=32041)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit ec3dc8b253eddb0cb44a5825d13244f147d1659d Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add from_webhook field to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver. Related to T4548 Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/31/ Comment Actions Build was aborted Patch application report for D8889 (id=32041)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit ec3dc8b253eddb0cb44a5825d13244f147d1659d Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add from_webhook field to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver. Related to T4548 Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/32/ Comment Actions Build was aborted Patch application report for D8889 (id=32041)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit ec3dc8b253eddb0cb44a5825d13244f147d1659d Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add from_webhook field to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver. Related to T4548 Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/33/ Comment Actions Build is green Patch application report for D8889 (id=32041)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit ec3dc8b253eddb0cb44a5825d13244f147d1659d Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add from_webhook field to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver. Related to T4548 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/34/ for more details. Comment Actions Build is green Patch application report for D8889 (id=32041)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit ec3dc8b253eddb0cb44a5825d13244f147d1659d Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add from_webhook field to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver. Related to T4548 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/35/ for more details. Comment Actions What is it going to be used for? And would it make sense to store which webhook was used? Comment Actions
To add usage stats as a grafana board [1]. [1] D8890
It'd make sense.
Comment Actions
To compute some stats about usage of that feature.
It can be easily guessed from the origin URL so I do not think we should add that info.
Comment Actions Thinking back about it, I can compute the netloc of the origin URL and add it as label in the prometheus metric, will update D8890 then. Comment Actions How? That works for Bitbucket and GitHub, but you can't tell whether "git.example.org" is Gitlab or Gitea Comment Actions Indeed and I cannot know the netlocs in advance for the prometheus labels so we really need to add another column in the table with the webhook forge type. Comment Actions Update: also add column in save_origin_requests table indicating which forge type sent the webhook
Comment Actions Build is green Patch application report for D8889 (id=32069)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit 08a2f3dc54122a7683d6d35c8c9f5db076f0b121 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add webhook info fields to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver and which forge type sent the webhook. Related to T4548 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/37/ for more details. Comment Actions Build is green Patch application report for D8889 (id=32072)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit 4bf0cd9bd08c75c083625e76c503708cb3c759f9 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add webhook info fields to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver and which forge type sent the webhook. Related to T4548 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/39/ for more details. Comment Actions Build is green Patch application report for D8889 (id=32077)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit fb878e1a2cb5c041b1d3250701c273915fa3a2b6 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add webhook info fields to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver and which forge type sent the webhook. Related to T4548 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/41/ for more details. Comment Actions Build is green Patch application report for D8889 (id=32101)Rebasing onto d9ffdd1759... Current branch diff-target is up to date. Changes applied before testcommit 12a291957fa06e3b6fde1ebd3a65cad8e3b03016 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 28 14:07:22 2022 +0100 save_code_now: Add webhook info fields to SaveOriginRequest model It enables to distinguish which requests were created from a forge webhook receiver and which forge type sent the webhook. Related to T4548 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/47/ for more details. |