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

Fixes 19073 : Resolve NullPointerException in MS Teams DQ template handling #19062

Merged
merged 6 commits into from
Dec 16, 2024

Conversation

Siddhanttimeline
Copy link
Contributor

@Siddhanttimeline Siddhanttimeline commented Dec 14, 2024

Describe your changes:

  1. Use buildDQTemplateData from MessageDecorator in MSTeamsMessageDecorator.

Issue:
Reason: Failed to publish event of destination type MsTeams due to Cannot invoke "java.util.Map.getOrDefault(Object, Object)" because "testCaseDetails" is null

Fixes: #19073

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Details:
Ensures a general template is created for any changes in the test case.
Generates a DQ template when the test case result is updated.
Copy link

@Siddhanttimeline Siddhanttimeline changed the title fix: Resolve NullPointerException in MS Teams DQ template handling fix #19073 : Resolve NullPointerException in MS Teams DQ template handling Dec 15, 2024
@Siddhanttimeline Siddhanttimeline changed the title fix #19073 : Resolve NullPointerException in MS Teams DQ template handling Fixes #19073 : Resolve NullPointerException in MS Teams DQ template handling Dec 15, 2024
@Siddhanttimeline Siddhanttimeline changed the title Fixes #19073 : Resolve NullPointerException in MS Teams DQ template handling Fixes 19073 : Resolve NullPointerException in MS Teams DQ template handling Dec 15, 2024
@mohityadav766 mohityadav766 merged commit c17e7c8 into main Dec 16, 2024
13 of 19 checks passed
@mohityadav766 mohityadav766 deleted the fix-msteams-dqtemplate-npe branch December 16, 2024 10:37
Siddhanttimeline added a commit that referenced this pull request Dec 16, 2024
…ndling (#19062)

* fix: Resolve NullPointerException in MS Teams DQ template handling

* fix: Update DQ template logic to handle test case changes and results

Details:
Ensures a general template is created for any changes in the test case.
Generates a DQ template when the test case result is updated.

* refactor: Make testCaseResult as constant named TEST_CASE_RESULT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullPointerException While Sending Data Quality Alert to MS Teams Due to Missing Template Data
3 participants