-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add webhooks #4863
Merged
Merged
Add webhooks #4863
Changes from all commits
Commits
Show all changes
159 commits
Select commit
Hold shift + click to select a range
74dd8f2
add webhooks urls
sizov-kirill 6142cac
add webhooks app in settings
sizov-kirill 9aa1463
apps/webhooks: post, get
sizov-kirill b6032af
remove secret and useless fields during serialization
sizov-kirill e06e261
add constraint: not allow to have both project and organization id
sizov-kirill 859a362
add filtering and searching fields; add patch, put, delete methods
sizov-kirill dd55458
migrations
sizov-kirill 6bbed81
rest api tests: add webhook in dump_objects
sizov-kirill 5660395
webhook/apps.py: add signals in appconfig
sizov-kirill 75ad895
extend event type choice
sizov-kirill 1cce895
add WebhookDelivery model
sizov-kirill 898ec6f
webhook: update migrations
sizov-kirill 33c49f2
engine/mixins: override updatemodelmixin for sending signals
sizov-kirill 5929a9d
webhooks/serializers: exclude unnecessary fields during serialization…
sizov-kirill 4cd5e0d
jobs view: use overridden mixin for sending update webhooks
sizov-kirill 13fbabe
event types: delete non-existent events
sizov-kirill 2faa9df
add signals file
sizov-kirill 84b3993
WebhookDelivery model: delete data, updated_data fields; add redelive…
sizov-kirill 5ff353b
Update Webhook serializers
sizov-kirill db15e3a
signals: add information about sender
sizov-kirill eb83692
Webhook view: pass owner info during creation, add GET webhook/{wid}/…
sizov-kirill ce5b732
add request and response fields for WebhookDelivery model
sizov-kirill 0847036
delete WebhookDeliveryWriteSerializer
sizov-kirill a9164fc
add redeliver method
sizov-kirill db157c3
webhook serializer: events as a list
sizov-kirill 6e6dd58
add ping event
sizov-kirill f656055
add webhook redis queue
sizov-kirill b29e3a3
add base tests
sizov-kirill 1b81cff
different event types for different webhook types
sizov-kirill 90c4ddb
GET available events method
sizov-kirill 5d40d58
added initial version of list/create/update pages
klakhov b9a4586
fix event types validator
sizov-kirill 8edbc63
fix validator for events fields
sizov-kirill f7cced4
add webhook queue
sizov-kirill 5caf00d
add base tests for webhooks
sizov-kirill ef02a5b
add last_delivery_date and description fields
sizov-kirill af21b8a
fix update signal reciever
sizov-kirill d62eacb
Fixed headers
bsekachev 9893b86
Some cvat-core refactoring
bsekachev 85ff520
add more tests
sizov-kirill e38f679
Some code on cvat-core side
bsekachev 8f43d08
Merge branch 'develop' into sk/add-webhooks
sizov-kirill 98a9ef5
Merge branch 'kl/webhooks-ui' into sk/add-webhooks
bsekachev 275f378
fix pylint warnings
sizov-kirill e24eb53
Implemented cvat-core part
bsekachev 185abe1
Merge branch 'sk/add-webhooks' of github.com:cvat-ai/cvat into sk/add…
bsekachev b586cc6
Implemented webhooks adding
bsekachev 725355d
Updating webhooks
bsekachev 6013825
Implemented deleting
bsekachev d8a8f68
Implemented ping
bsekachev 2d42da9
Using last delivery and last status
bsekachev 6126eee
is active is enabled by default
bsekachev bbd81d2
add webhooks queue in launch.json settings
sizov-kirill 3f29811
Implemented pagination
bsekachev db7298f
Merge branch 'sk/add-webhooks' of github.com:cvat-ai/cvat into sk/add…
bsekachev 79e2849
Disabled some not implemented fields
bsekachev 9d61c34
Adjusted styles
bsekachev 85f52b3
Fixed webhooks pages out of an organization
bsekachev f45d654
add task_created and task_updated events; handle response from target…
sizov-kirill 15d9216
Merge branch 'sk/add-webhooks' of https://github.com/cvat-ai/cvat int…
sizov-kirill 2192e02
fix pylint warns
sizov-kirill 972421e
Merge branch 'sk/add-webhooks' of github.com:cvat-ai/cvat into sk/add…
bsekachev 9bfea72
Fixed some issues on editing page
bsekachev ede05f8
Merge branch develop into the sk/add-webhooks
233edc1
resolve conflicts
6024f26
Refactored styles on webhook list page
klakhov caadba1
Enabled 'select all' option and changed styles
klakhov 2178759
add project_id as filter parameter
c7c49cc
fix unique constraint
958ba9b
use iam context during creation; fix unique constraint
1d3e4c9
added project webhooks ui
klakhov b9be372
IAM webhooks: create and update scopes
95bbf74
remove organization_id from post data
e4eaaf5
add tests for POST and PATCH webhooks (iam point of view)
f5a135f
fix some projects rest api tests
fa10d38
Merge branch 'sk/add-webhooks' of https://github.com/opencv/cvat into…
addf8dc
add tests
18cfacf
IAM webhooks: delete, list, view scopes
cb3c256
update tests
55bcaee
Merge branch develop into the sk/add-webhooks
361ff6e
resolve conflicts
ac96885
Update WebhookDelivery model
7df0d68
Update WebhookDelivery serializer
673f169
Create WebhookDelivery object before sending webhook
ddfffcb
Return information about webhook delivery on `ping` request
2311df1
Fix Pylint warnings
e9486cf
Add new migrations
6c7d6f5
added ping delivery status polling
klakhov 454cc45
updated status tooltips
klakhov 1f59ae9
WebhookDelivery model: rename date fields
e676875
Extend list of filter fields
def9cf8
added search, sort, filtration
klakhov cbaf6ec
Add methods for getting project and organization ids
sizov-kirill a833999
Use additional serialization of instance instead of calling serialize…
sizov-kirill 5ca0e33
fix typo
sizov-kirill de30443
REST API tests: refactor test projects
sizov-kirill 3fcd1e8
Add limitation for number of webhooks
sizov-kirill cd67aad
Generate rego tests for webhooks
sizov-kirill 9a51c68
Add cvat_worker_webhooks service
sizov-kirill 97c0510
enabled secret and some event fields
klakhov c633f2f
Merge branch 'develop' into sk/add-webhooks
klakhov b2fee89
fixed cvat-core merge errors
klakhov 9f947f0
Webhook events: task_updated, task_created, task_deleted
sizov-kirill bd36054
Fix event types
sizov-kirill caa3ec8
Merge branch 'sk/add-webhooks' of https://github.com/opencv/cvat into…
sizov-kirill ee2e6a2
fixed organization change and empty search
klakhov bd9b827
Add webhooks for all event types
sizov-kirill cdd55d3
Merge branch 'sk/add-webhooks' of https://github.com/opencv/cvat into…
sizov-kirill 79f0705
Add secret signature
sizov-kirill b31b0fd
Add event_name validation
sizov-kirill 4374665
Fix pylint errors
sizov-kirill 661c5ea
apps/webhooks: clean migrations directory
sizov-kirill 208865b
apps/webhooks: change event name pattern to '<action>:<resource>'
sizov-kirill c1059b4
tests: update after changing event name pattern for webhooks
sizov-kirill 25529ac
updated ui event name pattern
klakhov fd46b69
Merge branch 'develop' into sk/add-webhooks
sizov-kirill 1a13503
fixed rendering for new events, fixed jest tests
klakhov dcc62fd
apps/webhooks: add last_delivery_date field
sizov-kirill 4841c0b
apps/webhooks: add webhook timeout
sizov-kirill 2ac11a1
applied comments
klakhov 72f41ab
apps/webhooks: fix order field for deliveries list
sizov-kirill 7064f00
Add tests for webhooks functionality
sizov-kirill f1a12d2
Restore db before testing webhooks sender
sizov-kirill c9b3ad6
Fix pylint warnings
sizov-kirill b99a7f8
added jest tests
klakhov 255d0a1
fixed reload of update webhook page
klakhov 88ab3a7
Add and update license headers
sizov-kirill 5eda102
iam/rules: fix webhooks csv rules
sizov-kirill ae0205c
iam/rules: fix webhook rego file
sizov-kirill 3f021d5
iam/rules: update webhooks csv
sizov-kirill d23ba9e
iam/rules: update webhooks rego for view scope
sizov-kirill 45b3120
iam/rules: add scipt that generate rego tests for webhooks
sizov-kirill 879a4ad
iam/permissions: add project permissions for webhook
sizov-kirill 470c2a4
Delete opa binary
sizov-kirill 3b5cdda
iam/rules: fix webhook input description
sizov-kirill 1489c00
apps/webhooks: update webhook event list
sizov-kirill 3190474
apps/models: remove field type annotation
sizov-kirill 137884b
Move webhook urls definition
sizov-kirill de6e2fa
added cypress tests
klakhov b04b884
applied comments to tests
klakhov 9aa2962
Delete unused imports
sizov-kirill c3fc5b3
remove console.log
klakhov eb59ef5
apps/webhooks: limit size of response body from target_url
sizov-kirill e8b79cc
apps/webhooks: improve status field for delivery info
sizov-kirill b31c340
apps/webhooks: add default value for status_code field
sizov-kirill 3039a78
apps/webhooks: add migration
sizov-kirill 35420e3
apps/webhooks: fix code style
sizov-kirill 29a5321
apps/iam/permissions: make error message more correct
sizov-kirill ffd79b6
Merge branch 'sk/add-webhooks' of https://github.com/opencv/cvat into…
sizov-kirill 5a51f56
apps/webhooks: reduce response size limit
sizov-kirill 37ab9f6
tests/rest_api: declare port for webhook container as an env variable
sizov-kirill f29ba2b
Merge branch develop into the sk/add-webhooks
sizov-kirill 353c6fc
adjusted webhook last status
klakhov 8183cb9
apps/webhooks: remove unnecessary `set` for events types
sizov-kirill bc0a6b8
apps/webhooks: fix arguments for `ping` receiver function
sizov-kirill f7a607b
Merge branch 'sk/add-webhooks' of https://github.com/opencv/cvat into…
sizov-kirill 2f588e0
completely removed eslint-plugin-header
klakhov d745d8d
Merge branch 'develop' into sk/add-webhooks
sizov-kirill 05c2cd7
tests/rest_api: resolve conflicts
sizov-kirill File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@klakhov , why have we deleted 'eslint-plugin-header'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'eslint-plugin-header'
is not working with our current 'double-header' (doesnt support optional headers), it seems we need another solution