]> cat aescling's git repositories - mastodon.git/commit
Add administrative webhooks (#18510)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 9 Jun 2022 19:57:36 +0000 (21:57 +0200)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:27:50 +0000 (00:27 -0400)
commitb0aff567941973fce5397895be21de030808712a
tree8c98c5c5ccc86837ec9682bdab3dac1a5bb88bfe
parentff0a6a284049ae04e32132137c9220a8834e62f3
Add administrative webhooks (#18510)

* Add administrative webhooks

* Fix error when webhook is deleted before delivery worker runs
33 files changed:
app/controllers/admin/webhooks/secrets_controller.rb [new file with mode: 0644]
app/controllers/admin/webhooks_controller.rb [new file with mode: 0644]
app/javascript/styles/mastodon/admin.scss
app/models/admin/action_log.rb
app/models/report.rb
app/models/user.rb
app/models/webhook.rb [new file with mode: 0644]
app/policies/webhook_policy.rb [new file with mode: 0644]
app/presenters/webhooks/event_presenter.rb [new file with mode: 0644]
app/serializers/rest/admin/report_serializer.rb
app/serializers/rest/admin/webhook_event_serializer.rb [new file with mode: 0644]
app/services/base_service.rb
app/services/webhook_service.rb [new file with mode: 0644]
app/validators/url_validator.rb
app/views/admin/webhooks/_form.html.haml [new file with mode: 0644]
app/views/admin/webhooks/_webhook.html.haml [new file with mode: 0644]
app/views/admin/webhooks/edit.html.haml [new file with mode: 0644]
app/views/admin/webhooks/index.html.haml [new file with mode: 0644]
app/views/admin/webhooks/new.html.haml [new file with mode: 0644]
app/views/admin/webhooks/show.html.haml [new file with mode: 0644]
app/views/layouts/admin.html.haml
app/workers/trigger_webhook_worker.rb [new file with mode: 0644]
app/workers/webhooks/delivery_worker.rb [new file with mode: 0644]
config/locales/activerecord.en.yml
config/locales/en.yml
config/locales/simple_form.en.yml
config/navigation.rb
config/routes.rb
db/migrate/20220606044941_create_webhooks.rb [new file with mode: 0644]
db/schema.rb
spec/fabricators/webhook_fabricator.rb [new file with mode: 0644]
spec/models/webhook_spec.rb [new file with mode: 0644]
spec/validators/url_validator_spec.rb