Skip to content

SRDS: remove first and then add to avoid scope-key conflict in the case a new resource contains the same same key as a to-be-deleted resource. #9349

@stevenzzzz

Description

@stevenzzzz

Bug Template

Title: Remove first then add when adding a scope which has the same key as a to-be-deleted scope.

Description:

A new scope may have the same scope key as a to-be-deleted existing scope, in which case we should not raise an scope key conflict error.

Repro steps:
push -1: { scope A: keyA }
push -2: { Scope B: keyA } (in StoW API, this means deletion of "Scope A").
now in the delta form onConfigUpdate, we will report conflict error as the new scopeB 's "keyA" conflicts with the existing scopeA's key.

Metadata

Metadata

Assignees

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