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

fix: HttpSensorTrigger to include method when serializing #42925

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

rawwar
Copy link
Collaborator

@rawwar rawwar commented Oct 11, 2024

As of now, the method passed via HttpOperator in deferrable mode is not being serialized. Hence, during the deferrable mode, HttpSensor ends up always making GET requests instead of the method originally intended

@Lee-W
Copy link
Member

Lee-W commented Oct 11, 2024

Overall, looks good. Let's change the TEST_METHOD in unit tests to non POST method and create one unit test that does not pass method into __init__

@rawwar
Copy link
Collaborator Author

rawwar commented Oct 11, 2024

Overall, looks good. Let's change the TEST_METHOD in unit tests to non POST method and create one unit test that does not pass method into __init__

Added a test that does pass POST and checks if POST is being returned by serializer. Earlier, this test would have failed as method is defaulted to GET.

@Lee-W Lee-W merged commit 0372743 into apache:main Oct 11, 2024
56 checks passed
@rawwar rawwar deleted the kalyan/fix/httpsensor branch October 11, 2024 07:33
kunaljubce pushed a commit to kunaljubce/airflow that referenced this pull request Oct 13, 2024
pavansharma36 pushed a commit to pavansharma36/airflow that referenced this pull request Oct 14, 2024
R7L208 pushed a commit to R7L208/airflow that referenced this pull request Oct 17, 2024
harjeevanmaan pushed a commit to harjeevanmaan/airflow that referenced this pull request Oct 23, 2024
PaulKobow7536 pushed a commit to PaulKobow7536/airflow that referenced this pull request Oct 24, 2024
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants