Skip to content

MOBILE-129: Add critical error for invalid operationDomain#708

Merged
enotniy merged 1 commit intodevelopfrom
feature/MOBILE-129_2
Apr 28, 2026
Merged

MOBILE-129: Add critical error for invalid operationDomain#708
enotniy merged 1 commit intodevelopfrom
feature/MOBILE-129_2

Conversation

@enotniy
Copy link
Copy Markdown
Collaborator

@enotniy enotniy commented Apr 28, 2026

Copy link
Copy Markdown

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

Updates SDK configuration validation so an invalid operationsDomain is treated as a critical initialization error (instead of being silently ignored), aligning with the goal of preventing misconfigured operations routing.

Changes:

  • Mark INVALID_OPERATIONS_DOMAIN as critical=true.
  • Update the associated validation error message to remove “it will be ignored”.

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

INVALID_DEVICE_ID(false, "Invalid previous device UUID format"),
INVALID_INSTALLATION_ID(false, "Invalid UUID format of previous installationId"),
INVALID_OPERATIONS_DOMAIN(false, "The operationsDomain is not valid, it will be ignored");
INVALID_OPERATIONS_DOMAIN(true, "The operationsDomain is not valid");
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

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

INVALID_OPERATIONS_DOMAIN is now marked critical=true, which changes runtime behavior: Mindbox.validateConfiguration() will throw InitializeMindboxException instead of logging and ignoring the invalid operationsDomain. Please add/adjust tests to cover this new contract (e.g., invalid operationsDomain causes initialization to fail, and valid values still pass).

Copilot uses AI. Check for mistakes.
@enotniy enotniy merged commit 467f78a into develop Apr 28, 2026
9 checks passed
@enotniy enotniy deleted the feature/MOBILE-129_2 branch April 28, 2026 13:08
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.

4 participants