Skip to content

Merge stable back into master - #1709

Merged
renemadsen merged 1 commit into
masterfrom
stable
Sep 13, 2026
Merged

Merge stable back into master#1709
renemadsen merged 1 commit into
masterfrom
stable

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Sync stable back into master after #1708 (picture-snapshot test no longer depends on S3).

🤖 Generated with Claude Code

https://claude.ai/code/session_01HfLyiGF7BQTRixiUfSuXxD

…test (#1708)

Create_CreatesPictureSnapshot_WithFile only passed while the eForm SDK
swallowed failed S3 uploads. The seeded SDK settings enable S3 with
placeholder keys against real AWS, so every run actually failed the upload
(403 InvalidAccessKeyId) and Create still returned success. Microting.eForm
10.0.39 stopped swallowing the failure (SDK 0a13ec22), and the test has
failed since the plugin's bump to 10.0.39.

S3 is the SDK's to test, not this plugin's:
- SQL/420_SDK.sql seeds s3Enabled = False, so the SDK has no S3 client and
  the upload fails at once with no network call. No other test in the
  project uses S3 or this setting.
- The test becomes Create_ReturnsFailureAndSavesNoSnapshot_WhenFileUploadFails:
  Create reports failure, saves no PictureSnapshot row pointing at a file
  that was never stored, and logs the SDK's InvalidOperationException, which
  proves the upload step was the cause.

Verified locally: PictureSnapshotServiceTests 6/6 pass, no S3/AWS calls.


Claude-Session: https://claude.ai/code/session_01HfLyiGF7BQTRixiUfSuXxD

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 13, 2026 17:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No blocking issues were identified.

Pull request overview

Synchronizes stable back into master with isolated picture-snapshot tests that no longer depend on S3.

Changes:

  • Disables S3 in the SDK test seed.
  • Strengthens upload-failure assertions.
File summaries
File Description
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn.Test/SQL/420_SDK.sql Disables S3 for tests.
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn.Test/PictureSnapshotServiceTests.cs Verifies failed uploads, logging, and no persisted snapshot.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@renemadsen
renemadsen merged commit c11527f into master Sep 13, 2026
152 of 154 checks passed
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