Skip to content

Added sorting option to timelogs GraphQL resolver

What does this MR do and why?

This MR adds a sort argument to the timelogs' GraphQL resolver so to allow sorting 🙂

Screenshots or screen recordings

How to set up and validate locally

  1. Log some time entries to issues or MRs using the /spent quick action (alternatively you could create those from the rails console)
  2. Run a this GraphQL query changing the sort value and check that the timelogs are sorted accordingly 🙂
query {
  timelogs(sort: SPENT_AT_ASC) {
    nodes {
      timeSpent
      spentAt
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading