Skip to content

Comments

Add serverlogics to optional entities for graceful 404 handling#1494

Merged
amitjoshi438 merged 2 commits intomainfrom
users/amitjoshi/serverlogics-optional-entity
Feb 24, 2026
Merged

Add serverlogics to optional entities for graceful 404 handling#1494
amitjoshi438 merged 2 commits intomainfrom
users/amitjoshi/serverlogics-optional-entity

Conversation

@amitjoshi438
Copy link
Contributor

Summary

  • Adds SERVERLOGICS to conditionalFolderEntities so that 404 responses from adx_serverlogics bulk fetch are handled gracefully
  • When the adx_serverlogics table doesn't exist in an environment, the existing graceful handler in fetchFromDataverseAndCreateFiles now catches it and logs an info-level OptionalEntityNotFound event instead of an ApiRequestFailure error
  • Telemetry from v2.0.131 (last 7 days) shows 511 such 404 errors from 219 users, all from adx_serverlogics — this change eliminates those errors

Test plan

  • Verify web extension compiles successfully (npm run compile-web)
  • Run web integration tests (npm run test-web-integration)
  • Confirm server logics files still load correctly when the table exists and feature flag is enabled
  • Confirm no error is logged when adx_serverlogics table does not exist in the environment

🤖 Generated with Claude Code

…ling

When adx_serverlogics table does not exist in an environment, the bulk
entity fetch returns 404 and logs as ApiRequestFailure. Adding
SERVERLOGICS to conditionalFolderEntities allows the existing graceful
404/400 handling in fetchFromDataverseAndCreateFiles to catch this and
log an info-level OptionalEntityNotFound event instead.

Telemetry shows 511 such errors from 219 users on v2.0.131 in the last
7 days, all from adx_serverlogics 404s.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@amitjoshi438 amitjoshi438 requested review from a team as code owners February 24, 2026 07:25
@amitjoshi438 amitjoshi438 enabled auto-merge (squash) February 24, 2026 07:34
@amitjoshi438 amitjoshi438 merged commit 86aba0c into main Feb 24, 2026
8 checks passed
@amitjoshi438 amitjoshi438 deleted the users/amitjoshi/serverlogics-optional-entity branch February 24, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants