Repository navigation
Conversation
warwickschroeder
left a comment
There was a problem hiding this comment.
Have we added this to the upgrade guide in the docs PR?
I pushed a couple of commits:
| | `Features.IntegratedServicePulse` | `Enabled`, `Disabled` | `ServiceControl/EnableIntegratedServicePulse` | 6.13.0 | | ||
| | `Features.MessageEditing` | `Enabled`, `Disabled` | `ServiceControl/AllowMessageEditing` | 6.20.0 | | ||
| | `Features.ExternalIntegrationsPublishing` | `Enabled`, `Disabled` | `ServiceControl/DisableExternalIntegrationsPublishing`, inverted | 6.20.0 | | ||
| | `Features.ExternalIntegrationsPublishing` | `Enabled`, `Disabled` | `ServiceControl/EnableExternalIntegrationsPublishing`, or the legacy `ServiceControl/DisableExternalIntegrationsPublishing` inverted | 6.20.0 | |
There was a problem hiding this comment.
Has this change been made to the docs PR?
|
|
||
| if (legacyConfigured && configured) | ||
| { | ||
| const string message = "EnableExternalIntegrationsPublishing and the legacy DisableExternalIntegrationsPublishing settings cannot both be configured, please remove DisableExternalIntegrationsPublishing"; |
There was a problem hiding this comment.
Would it be better to rather check if they disagree, and then throw? Is it really a critical if they are both added but agree?
| services.AddEventLogMapping<ExternalIntegrationEventFailedToBePublishedDefinition>(); | ||
|
|
||
| if (!settings.DisableExternalIntegrationsPublishing) | ||
| if (settings.EnableExternalIntegrationsPublishing) |
There was a problem hiding this comment.
MessageFailed is written by whichever process ingests, and an --error-ingestion-only worker reads this flag itself.
With the default now false, enabling publishing on the primary instance only means MessageFailed is never published while every other event is. Could a worker log a warning when it ingests with publishing disabled? The docs should also say the key must be set on every worker.
Important
Targeted for 7.0, should not be merged to
masteruntil it is time to mark that branch for the major updateThis pull request updates the configuration for external integrations publishing to use a new positive
EnableExternalIntegrationsPublishingsetting instead of the previous negativeDisableExternalIntegrationsPublishingflag. It also ensures backward compatibility with the legacy setting, adds comprehensive unit tests for the new logic, and updates documentation and acceptance tests accordingly.Configuration and Feature Flag Changes:
DisableExternalIntegrationsPublishingflag withEnableExternalIntegrationsPublishingthroughout the codebase, updating all conditionals and configuration checks to use the new positive flag. [1] [2] [3] [4]ServiceControl/EnableExternalIntegrationsPublishingsetting, while still supporting the legacyServiceControl/DisableExternalIntegrationsPublishingas an inverted alternative.Testing and Backward Compatibility:
ExternalIntegrationsPublishingSettingsTeststo verify the correct behavior of the new and legacy settings, including error handling when both are set.