Skip to content

[dasc] Renamed structured content keys are not removed from EDS JSON response #517

Description

@kozmaadrian

Renamed structured content keys are not removed from EDS JSON response

Issue

EDS structured content currently retains the old key when a field key is renamed.

Steps to Reproduce:

  • Create a structured content field with key employeeCommsManifest.
  • Rename the key to employeeCommsConfig.
  • Publish/update the content.
  • Inspect the JSON response.

Current Behavior

The JSON response contains both:

{
  "employeeCommsManifest": { ... },
  "employeeCommsConfig": { ... }
}

The old key employeeCommsManifest remains in the response even after the rename.

Expected Behavior

When a key is renamed, the old key should be removed from the generated JSON response. Only the new key should be present.

{
  "employeeCommsConfig": { ... }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dascUsed by DA Structured Contentstale

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions