-
Notifications
You must be signed in to change notification settings - Fork 2
TEST Build v2 2 update1 #203
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
Closed
Closed
Conversation
This file contains hidden or 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
Merge with changes in main
Add mailMessage Entity Handling
Contributor
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.
Pull Request Overview
This PR enhances error handling, adds mail message enrichment, and updates version/configuration details.
- Introduces
STATServerErrorand retry logic for 5xx responses inshared/rest.py. - Implements mail message enrichment pipeline: counts, comments, KQL tables, and list getters across modules.
- Bumps function version, extends host bundle range, tweaks README URL, and updates VS Code debug config.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| shared/rest.py | Added STATServerError import, catch block, and 5xx handler. |
| modules/version.json | Updated "FunctionVersion" to "2.2.3". |
| modules/kql.py | Included mail_entities in KQL query concatenation. |
| modules/base.py | Imported datetime, added enrich_mail_message, mail counts, comments, and updated entity counts and append logic. |
| classes/init.py | Defined STATServerError, added CreatedTime, MailMessages, and updated getters for lists and KQL. |
| host.json | Raised extensionBundle version range to [4.0.0, 5.0.0). |
| README.md | Prefixed AZURE_AUTHORITY_HOST with https://. |
| .vscode/launch.json | Changed debug "type" to "debugpy" and added connect settings. |
Comments suppressed due to low confidence (2)
modules/base.py:92
- The
commentvariable is only defined inside the precedingifblock, butadd_incident_commentis called unconditionally. Guard this call or initializecommentto avoid an UnboundLocalError when no comments are generated.
rest.add_incident_comment(base_object, comment)
host.json:13
- Bumping the extensionBundle to major version 4 may require Azure Functions v4 runtime. Verify compatibility with your target Function runtime before upgrading.
"version": "[4.0.0, 5.0.0)"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.