Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send webhook notifications through an ActiveJob #3507

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

segiddins
Copy link
Member

Part of the migration from Delayed::Job

Part of the migration from Delayed::Job
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Merging #3507 (f424f85) into master (65172f0) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #3507   +/-   ##
=======================================
  Coverage   97.96%   97.97%           
=======================================
  Files         178      178           
  Lines        4325     4335   +10     
=======================================
+ Hits         4237     4247   +10     
  Misses         88       88           
Impacted Files Coverage Δ
app/controllers/api/base_controller.rb 100.00% <ø> (ø)
app/controllers/api/v1/web_hooks_controller.rb 100.00% <100.00%> (ø)
app/jobs/notify_web_hook_job.rb 100.00% <100.00%> (ø)
app/models/web_hook.rb 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@segiddins segiddins requested a review from simi February 28, 2023 23:45
set_tag "gemcutter.notifier.url", url
set_tag "gemcutter.notifier.webhook_id", webhook.id

timeout(5) do
Copy link
Member

@simi simi Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor idea: What about to wrap timeout into constant since it is used 3 times?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will probably be replacing this code soon anyways

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let's keep it as is for now.

@simi simi merged commit f7235ca into rubygems:master Mar 1, 2023
@rubygems-org-shipit rubygems-org-shipit bot temporarily deployed to staging March 1, 2023 00:13 Inactive
@rubygems-org-shipit rubygems-org-shipit bot temporarily deployed to production March 1, 2023 00:15 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants