-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented MSGraphSensor as a deferrable sensor (#39304)
* refactor: Implement default response handler method and added test when JSON decode error occurs * refactor: Reformatted some code to comply to static checks * refactor: Changed debugging level to debug for printing response in operator * docs: Added example on how to refresh a PowerBI dataset using the MSGraphAsyncOperator * refactor: Changed some info logging statements to debug * refactor: Changed some info logging statements to debug * fix: Fixed mock_json_response * refactor: Return content if response is not a JSON * refactor: Make sure the operator passes the response_handler to the triggerer * refactor: Should use get instead of directly _getitem_ brackets as payload could not have a response key if call isn't done * refactor: If event has status failure then the sensor should stop the async poke * refactor: Changed default_event_processor as not all responses have the status key present * refactor: Changed default_event_processor as not all responses have the status key present * refactor: Removed response_handler parameter as lambda cannot be serialized by MSGraphTrigger * refactor: Changed some logging statements * refactor: Updated PowerBI dataset refresh example * refactor: Fixed 2 static check errors * refactor: Refactored MSGraphSensor as a real async sensor * refactor: Changed logging level of sensor statements back to debug * refactor: Fixed 2 static checks * refactor: Changed docstring hook * refactor: Put docstring on one line --------- Co-authored-by: David Blain <[email protected]>
- Loading branch information
1 parent
0e6c0ab
commit a61f393
Showing
9 changed files
with
180 additions
and
129 deletions.
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
Oops, something went wrong.