Skip to content

Changing a subscription from non-batchable to batchable doesn't work #6009

@rolfbjarne

Description

@rolfbjarne

Changing a subscription from non-batchable to batchable results in:

fail: An unexpected error occurred while setting up the base data for ingestion. Please contact an administrator of maestro-configuration.
      System.ArgumentException: Subscription update failed for subscription f4928934-9e75-4ba7-b3d0-757a5edf906b because there was an attempt to modify the following immutable fields: Batchable
         at Maestro.DataProviders.SqlBarClient.UpdateSubscription(Subscription subscription, Subscription existingSubscription)
         at Maestro.DataProviders.SqlBarClient.UpdateSubscriptionsAsync(IEnumerable`1 subscriptions, Boolean andSaveContext)
         at Maestro.DataProviders.ConfigurationIngestion.ConfigurationIngestor.UpdateSubscriptions(IEnumerable`1 updatedSubscriptions, Namespace namespaceEntity, Dictionary`2 existingChannelsByName)
         at Maestro.DataProviders.ConfigurationIngestion.ConfigurationIngestor.PerformEntityChangesAsync(IngestedConfigurationUpdates configurationDataUpdate, Namespace namespaceEntity)
         at Maestro.DataProviders.ConfigurationIngestion.ConfigurationIngestor.IngestConfigurationAsync(ConfigurationData configurationData, String configurationNamespace, Boolean saveChanges)
         at Microsoft.DotNet.MaestroConfiguration.Cli.ConfigurationValidator.ValidateConfiguration(ILocalGitRepo configurationRepo, String originalConfigurationBranch, String newConfigurationBranch) in /_/src/Microsoft.DotNet.MaestroConfiguration.Cli/ConfigurationValidator.cs:line 92

Example build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2911815&view=logs&j=8f183919-ef98-5d4d-b21f-f2cc6adfe25f&t=613d5903-0643-55ed-f7e9-1d5cf836838f
From pull request: https://dev.azure.com/dnceng/internal/_git/maestro-configuration/pullrequest/58316

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions