Add column renaming/aliasing capability to GLQL tables

Problem to solve

Users need the ability to rename column headers in GLQL tables to provide more context-appropriate labels. For example, a user might want to display labels(...) as "Team" to make the table more intuitive for their team's specific use case.

Screenshot 2025-04-09 at 7.09.23 p.m..png

Intended users

  • GLQL query authors
  • Users viewing GLQL results who need more contextual column names

Proposal

Implement two different approaches to handle column renaming:

  1. Query syntax approach: Add support for column aliases in GLQL syntax:

    fields: state, title, assignee, labels("group::*") as "Team"

  2. UI approach: Add a dropdown menu to each column header with options to:

    • Rename column
    • Hide column

CleanShot 2025-04-11 at 15.17.29@2x.png

Questions:

When a user renames a column, should we save this change and make it available to everyone viewing the view, or should that change be stored as a user preference without modifying the original query?

Other thoughts:

  • For query authors: The change can be saved to the query definition
  • For viewers: The change can be persisted as a user preference without modifying the original query

We need to clearly communicate when changes affect only the current user vs. when they update the saved configuration for all users:

  • Add an "unsaved changes" indicator
  • When saving, show a modal explaining the change will affect all users with access

Implementation details

  • Store column aliases in the GLQL query metadata
  • For user-specific customizations, store in user preferences
  • Ensure aliases are properly handled during sorting and filtering operations

References

/cc @himkp @amandarueda @mmacfarlane @nickbrandt