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(workspace): update the logging guard to handle ConnectionString for Application Insights #13792

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

framitdavid
Copy link
Collaborator

@framitdavid framitdavid commented Oct 15, 2024

Description

This pull request addresses an issue with the logging guard in our application. The guard previously checked for the presence of the instrumentationKey, but we recently switched to using a connectionString without updating the guard logic. As a result, the guard always evaluated as true for the absence of instrumentationKey, which led to Application Insights instances never being created.

Related Issue(s)

  • #In private board

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

@github-actions github-actions bot added solution/studio/designer Issues related to the Altinn Studio Designer solution. frontend labels Oct 15, 2024
@framitdavid framitdavid changed the title bug(workspace): update the logging guard to handle ConnectionString for Application Insights fix(workspace): update the logging guard to handle ConnectionString for Application Insights Oct 15, 2024
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.57%. Comparing base (43fdf78) to head (2884e43).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13792   +/-   ##
=======================================
  Coverage   94.57%   94.57%           
=======================================
  Files        1623     1624    +1     
  Lines       21798    21817   +19     
  Branches     2570     2572    +2     
=======================================
+ Hits        20616    20634   +18     
- Misses        939      940    +1     
  Partials      243      243           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@framitdavid framitdavid added skip-manual-testing PRs that do not need to be tested manually and removed skip-manual-testing PRs that do not need to be tested manually labels Oct 15, 2024
Copy link
Member

@nkylstad nkylstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D

@nkylstad
Copy link
Member

Tested ok, browser errors are once again being logged in AI.

@nkylstad nkylstad merged commit 74019c5 into main Oct 15, 2024
17 checks passed
@nkylstad nkylstad deleted the bug/fixApplicationInsights branch October 15, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants