Skip to content

MLE-29542 Added default implementations for new API methods#643

Merged
rjrudin merged 1 commit into
developfrom
feature/backwards-fix
May 18, 2026
Merged

MLE-29542 Added default implementations for new API methods#643
rjrudin merged 1 commit into
developfrom
feature/backwards-fix

Conversation

@rjrudin
Copy link
Copy Markdown
Contributor

@rjrudin rjrudin commented May 18, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 18, 2026 18:55
@rjrudin rjrudin merged commit cff8783 into develop May 18, 2026
3 of 4 checks passed
@rjrudin rjrudin deleted the feature/backwards-fix branch May 18, 2026 19:02
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

Note

Copilot was unable to run its full agentic suite in this review.

Adds default implementations for newly introduced API methods to prevent breaking existing implementers, primarily around S3 anonymous access and a basic connection string helper.

Changes:

  • Added default s3AnonymousAccess() implementations that throw UnsupportedOperationException for backward compatibility.
  • Added a default connectionStringBasic(String) implementation delegating to connectionString(String).
  • Applied the same defaulting pattern across multiple option interfaces.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
flux-cli/src/main/java/com/marklogic/flux/api/WriteFilesOptions.java Adds default s3AnonymousAccess() that throws by default.
flux-cli/src/main/java/com/marklogic/flux/api/ReadFilesOptions.java Adds default s3AnonymousAccess() that throws by default.
flux-cli/src/main/java/com/marklogic/flux/api/GenericFilesExporter.java Adds default s3AnonymousAccess() to nested write-options interface.
flux-cli/src/main/java/com/marklogic/flux/api/Executor.java Adds default connectionStringBasic() delegating to connectionString().
flux-cli/src/main/java/com/marklogic/flux/api/CustomImporter.java Adds default s3AnonymousAccess() to nested read-options interface.
flux-cli/src/main/java/com/marklogic/flux/api/CustomExportWriteOptions.java Adds default s3AnonymousAccess() that throws by default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +26 to +29
default T s3AnonymousAccess() {
// Default implementation for backwards compatibility.
throw new UnsupportedOperationException("S3 anonymous access is not supported in this implementation");
}
T s3AnonymousAccess();
default T s3AnonymousAccess() {
// Default implementation for backwards compatibility.
throw new UnsupportedOperationException("S3 anonymous access is not supported in this implementation");
Comment on lines +29 to +32
default CustomExportWriteOptions s3AnonymousAccess() {
// Default implementation for backwards compatibility.
throw new UnsupportedOperationException("S3 anonymous access is not supported in this implementation");
}
Comment on lines +52 to +55
default T connectionStringBasic(String connectionString) {
// Default implementation for backwards compatibility.
return connectionString(connectionString);
}
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