New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message decorators API returns "_id" instead of "id" #2734

Closed
bernd opened this Issue Aug 24, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@bernd
Member

bernd commented Aug 24, 2016

Expected Behavior

The ID of the message decorator should be returned as key id and not as _id.

Current Behavior

{
    "_id": "57ab425567d0cb19cf7e03c3",
    "type": "org.graylog2.decorators.SyslogSeverityMapperDecorator",
    "config": {
      "source_field": "level",
      "target_field": "level"
    },
    "stream": null,
    "order": 0
}

Possible Solution

Update domain object to return id.

Steps to Reproduce (for bugs)

  1. Create new message decorator for a stream
  2. Look at /search/decorators API response

Your Environment

  • Graylog Version: Graylog 2.1.0-beta.5-SNAPSHOT+606e329

@bernd bernd added the bug label Aug 24, 2016

@bernd bernd added this to the 2.1.0 milestone Aug 24, 2016

@bernd bernd self-assigned this Aug 24, 2016

bernd added a commit that referenced this issue Aug 24, 2016

bernd added a commit that referenced this issue Aug 24, 2016

dennisoelkers added a commit that referenced this issue Aug 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment