Skip to content

Expose user permissions for timelog entries

What does this MR do and why?

Related to #356796.

This MR is a follow up of !83928 (merged).

This MR adds the permissions that the querying user has for each timelog entry.

Screenshots or screen recordings

Schermata_2022-05-04_alle_22.36.21

How to set up and validate locally

  • Add some time spent to an issueable
  • Run the GraphQL query
query {
  issue(id: "<issuable_id>") {
    timelogs {
      nodes {
        userPermissions {
          adminTimelog
        }
      }
    }
  }
}

MR acceptance checklist

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

Edited by Marco Zille

Merge request reports

Loading