-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Feature/add data to webhook #474
Open
om-henners
wants to merge
7
commits into
geopython:master
Choose a base branch
from
om-henners:feature/add_data_to_webhook
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/add data to webhook #474
om-henners
wants to merge
7
commits into
geopython:master
from
om-henners:feature/add_data_to_webhook
Commits on Sep 10, 2024
-
Add run message and report to webhook message
This does increase the message size, though I imagine that's marginal, and is backwards compatible in that old keys remain in place and aren't modified. The goal is to make the actual GHC app more set and forget, and we can handle the errors with a little more discretion on the webhook end. The report is being sent as URLEncoded form data, which if we send a hierarchy just sends a single key. We want the entire report so encode the JSON as a string and send that. The keys are sorted to make testing easier.
Henry Walshaw committedSep 10, 2024 Configuration menu - View commit details
-
Copy full SHA for 674c16d - Browse repository at this point
Copy the full SHA 674c16dView commit details -
Add responses test requirement
Henry Walshaw committedSep 10, 2024 Configuration menu - View commit details
-
Copy full SHA for 0561e1b - Browse repository at this point
Copy the full SHA 0561e1bView commit details -
Python3 division is always float. Much easier to check if the code is 400 or more.
Henry Walshaw committedSep 10, 2024 Configuration menu - View commit details
-
Copy full SHA for 9d25066 - Browse repository at this point
Copy the full SHA 9d25066View commit details -
Add recipient to the general fixtures
Also update the external links to be https (as otherwise we have to wait for a bunch of redirects in the tests as well).
Henry Walshaw committedSep 10, 2024 Configuration menu - View commit details
-
Copy full SHA for a1b859e - Browse repository at this point
Copy the full SHA a1b859eView commit details -
Add a test to make sure the webhook payload is correct
This uses the responses library to intercept the request so we can confirm that the body content is exactly as expected.
Henry Walshaw committedSep 10, 2024 Configuration menu - View commit details
-
Copy full SHA for cfeba33 - Browse repository at this point
Copy the full SHA cfeba33View commit details -
Makes sure we're not accidentally doubling up somewhere
Henry Walshaw committedSep 10, 2024 Configuration menu - View commit details
-
Copy full SHA for 48ff5f7 - Browse repository at this point
Copy the full SHA 48ff5f7View commit details -
Henry Walshaw committed
Sep 10, 2024 Configuration menu - View commit details
-
Copy full SHA for 6a152a8 - Browse repository at this point
Copy the full SHA 6a152a8View commit details
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.