Skip to content

🐞 Deleting election event does not remove the S3 event document files#2681

Open
BelSequent wants to merge 8 commits into
release/9.0from
fix/meta-11995/release/9.0
Open

🐞 Deleting election event does not remove the S3 event document files#2681
BelSequent wants to merge 8 commits into
release/9.0from
fix/meta-11995/release/9.0

Conversation

@BelSequent
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings May 18, 2026 10:02
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@BelSequent BelSequent changed the base branch from main to release/9.0 May 18, 2026 10:02
@BelSequent BelSequent requested a review from Copilot May 18, 2026 10:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment on lines 698 to +702
info!("Listing objects");
let list_output = match client
.list_objects_v2()
.bucket(s3_bucket.clone())
.prefix(prefix.clone())
.bucket(bucket_name.clone())
.prefix(list_prefix.clone())
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Applied in fdf1462 (refined in 7566573): Replaced brittle string-based error matching with AWS SDK error metadata via ProvideErrorMetadata::code(). Now explicitly handles NoSuchBucket (returns Ok, nothing to delete) and AccessDenied (returns descriptive error) instead of searching for "NoSuchKey" in formatted debug output.

Comment on lines +163 to +167
fn build_s3_config_for_endpoint(
sdk_config: &aws_config::SdkConfig,
endpoint_uri: &str,
) -> s3::Config {
let access_key_result = env::var("AWS_S3_ACCESS_KEY");
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Applied in ae6e371 (with doc follow-ups in 576c5e0 and 7e4ef37): I removed the duplicated endpoint/credential builder from services/s3.rs and now reuse a shared helper in util/aws.rs so both paths stay aligned.

Copilot AI and others added 3 commits May 18, 2026 15:14
Agent-Logs-Url: https://github.com/sequentech/step/sessions/75612038-8c39-4295-a386-86175cac5f1c

Co-authored-by: BelSequent <178146277+BelSequent@users.noreply.github.com>
Agent-Logs-Url: https://github.com/sequentech/step/sessions/75612038-8c39-4295-a386-86175cac5f1c

Co-authored-by: BelSequent <178146277+BelSequent@users.noreply.github.com>
Agent-Logs-Url: https://github.com/sequentech/step/sessions/75612038-8c39-4295-a386-86175cac5f1c

Co-authored-by: BelSequent <178146277+BelSequent@users.noreply.github.com>
Copilot AI and others added 2 commits May 18, 2026 15:20
Agent-Logs-Url: https://github.com/sequentech/step/sessions/5c790503-b81c-4eb3-b202-44f39542db4d

Co-authored-by: BelSequent <178146277+BelSequent@users.noreply.github.com>
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.

3 participants