Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #39675
Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Closed (moved)
(moved)
Open
Created Nov 01, 2017 by Inactive Account@winh🚫Contributor

system hooks for group creation / deletion don't contain owners

Summary

The system hooks group_create and group_destroy don't contain owner information. The examples in the documentation still do.

Steps to reproduce

  • set up system hook
  • create or delete group

What is the current bug behavior?

Data sent by the hook:

"owner_name":null,
"owner_email":null

What is the expected correct behavior?

An array of owners (because there can be multiple) is sent:

"owners": [{
  "id": 41,
  "name": "John Smith",
  "username": "johnsmith",
  "email": "johnsmith@gmail.com"
}, {
  "id": 42,
  "name": "Maria Smith",
  "username": "maria"
}]

Users without a public e-mail should probably not have the email included.

Possible fixes

Use model.owners instead of model.owner in SystemHooksService

Edited Nov 01, 2017 by Inactive Account
Assignee
Assign to
Time tracking