Skip to content

update public events listing #867

Description

@tenkus47

Summary

The Public Events API should use English metadata as a fallback when the selected language is unavailable.

Tasks

  • Check whether metadata exists for the user’s selected language.
  • Return metadata in the selected language when available.
  • If no metadata is available in the selected language, return the English (en) metadata.
  • Ensure the event is not excluded simply because the selected-language metadata is missing.
  • Add tests for language fallback behaviour.

Expected Behaviour

For example, when the selected language is bo:

  • If Tibetan metadata exists, return the Tibetan metadata.
  • If Tibetan metadata does not exist, return the English metadata.
  • If neither Tibetan nor English metadata exists, return the event with empty or NULL metadata fields, according to the API response standard.

Fallback Logic

selected language → English (`en`) → empty/null metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    IN PROGRESS

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions