Skip to content

🧹 Remove unused MDX frontmatter fields: createdByEmail and lastUpdatedByEmail #2654

Description

@Aibono1225

Context

We currently store the following metadata fields in MDX frontmatter:

  • createdByEmail
  • lastUpdatedByEmail

Based on investigation, these appear to be write-only TinaCMS metadata fields. They are written/preserved by TinaCMS and some update flows, but they are not displayed in the UI and are not consumed by business logic.

The existing “Last updated by” UI uses GitHub history rather than these frontmatter fields.

Proposed change

Remove the unused createdByEmail and lastUpdatedByEmail metadata fields from the MDX content model.

This work should cover both the app repo and the content repo:

  • In the app repo, remove the schema, query, type, and update-flow support that currently writes or preserves these fields.
  • In the content repo, remove these fields from existing MDX frontmatter once the app no longer depends on them.

The goal is to stop storing and maintaining metadata that is not used by the UI or business logic, while ensuring TinaCMS and content update flows continue to work correctly after the fields are removed.

Risk / impact

Expected risk is low because these fields are not displayed or consumed by business logic.

Potential impact to check during implementation:

  • Tina generated files and lock file need to be updated.

  • Tina Cloud schema may need to be synced.

  • The app repo should be updated before removing the fields from the content repo.

Acceptance criteria

  • createdByEmail and lastUpdatedByEmail are removed from TinaCMS schema/config.
  • TinaCMS no longer writes these fields into MDX frontmatter.
  • App GraphQL queries no longer request these fields.
  • App TypeScript types and mutation params no longer include these fields.
  • Category update flows no longer preserve/pass through these fields.
  • Tina generated files are updated.
  • The content repo cleanup for SSW.Rules.Content is completed or tracked as a follow-up.

Screenshot

Image

Figure: Safe to remove after schema/type/query updates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions