summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-07-09 12:35:53 -0700
committerStan Hu <stanhu@gmail.com>2015-07-09 12:35:53 -0700
commit4c586dc7c217b3e43956919fa752a8fa4e16acb9 (patch)
treec94c92660b4c33d7855eb4f37f6584960a5cf28c
parentadd283bf685141b6ce6e41045c4c592fc3fd5b44 (diff)
downloadgitlab-ce-4c586dc7c217b3e43956919fa752a8fa4e16acb9.tar.gz
Revert "api: add 'system', 'upvote', and 'downvote' fields to note queries"
This reverts commit dd4fee5fdbda07fbc09234c4b043c3c9939a6a9b.
-rw-r--r--doc/api/notes.md10
-rw-r--r--lib/api/entities.rb3
2 files changed, 2 insertions, 11 deletions
diff --git a/doc/api/notes.md b/doc/api/notes.md
index c683cb883d4..ee2f9fa0eac 100644
--- a/doc/api/notes.md
+++ b/doc/api/notes.md
@@ -31,10 +31,7 @@ Parameters:
"state": "active",
"created_at": "2013-09-30T13:46:01Z"
},
- "created_at": "2013-10-02T09:22:45Z",
- "system": true,
- "upvote": false,
- "downvote": false
+ "created_at": "2013-10-02T09:22:45Z"
},
{
"id": 305,
@@ -48,10 +45,7 @@ Parameters:
"state": "active",
"created_at": "2013-09-30T13:46:01Z"
},
- "created_at": "2013-10-02T09:56:03Z",
- "system": false,
- "upvote": false,
- "downvote": false
+ "created_at": "2013-10-02T09:56:03Z"
}
]
```
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 27d60e881ec..31202fa8c1f 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -190,9 +190,6 @@ module API
expose :attachment_identifier, as: :attachment
expose :author, using: Entities::UserBasic
expose :created_at
- expose :system
- expose :upvote?, as: :upvote
- expose :downvote?, as: :downvote
end
class MRNote < Grape::Entity