feat: surface content error logs when deployment validation fails#3882
feat: surface content error logs when deployment validation fails#3882christierney wants to merge 1 commit into
Conversation
When content validation fails after deployment, fetch the latest failed job's error log from Connect and display the tail 10 lines in the logs tree view. Clicking the header line opens the full log in a new editor. Adds getJobs() and getJobLog() methods to the ConnectAPI client, tracks contentId and serverUrl during publish, and resolves credentials to make direct API calls from the extension. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
this is just a prototype, not ready to merge some early feedback:
|
Summary
GET /v1/content/{guid}/jobs/{key}/loggetJobs()andgetJobLog()methods to the@posit-dev/connect-apiTypeScript clientcontentIdandserverUrlduring publish events and resolves credentials to make direct Connect API calls from the extensionFixes #3879
Test plan
npx vitest run src/views/logs.test.ts(24 tests pass)npm testinpackages/connect-api(58 tests pass)🤖 Generated with Claude Code