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

create new python script for sending webhooks in a directory #402

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

KPostOffice
Copy link
Member

@KPostOffice KPostOffice commented Jun 10, 2022

created a simple python script which iterates over a directory and
sends a post request to the specified url with the completed
document id and any client data that came with the original
request.

Related Issues and Dependencies

closes: #396

This introduces a breaking change

  • Yes
  • No

@sesheta sesheta added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jun 10, 2022
@sesheta sesheta requested review from fridex and harshad16 June 10, 2022 16:06
Copy link
Member

@harshad16 harshad16 left a comment

Choose a reason for hiding this comment

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

/lgtm
just one question

send_webhooks.py Outdated Show resolved Hide resolved
@sesheta sesheta added the lgtm Indicates that a PR is ready to be merged. label Jun 17, 2022
@sesheta
Copy link
Member

sesheta commented Jun 17, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: harshad16

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sesheta sesheta added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 17, 2022
@sesheta sesheta removed the lgtm Indicates that a PR is ready to be merged. label Jun 21, 2022
@sesheta
Copy link
Member

sesheta commented Jun 21, 2022

New changes are detected. LGTM label has been removed.

Copy link
Member

@harshad16 harshad16 left a comment

Choose a reason for hiding this comment

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

lgtm
just one question

send_webhooks.py Outdated
Comment on lines 45 to 47
_LOGGER.exception(e)

k8.client.CoreV1Api.delete_namespaced_secret(name=f"callback-{document_id}", namespace=secret_namespace)
Copy link
Member

Choose a reason for hiding this comment

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

secret would be deleted even if exception occures as we are not raising it.
is this intentional ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think the onus is on us if webhook fails to deliver, the most common reasons it would fail in my opinion is if an invalid URL or authentication is provided. Let me know what you think.

@harshad16 harshad16 removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2022
@sesheta sesheta added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 6, 2022
@sesheta sesheta added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jul 6, 2022
created a simple python script which iterates over a directory and
sends a post request to the specified url with the completed
document id and any client data that came with the original
request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3pt] Create new task which sends adviser results to all callback urls
3 participants