Added metadata to Issue
Created by: joel-rightshift
We needed a field on Issue that could hold arbitrary data. To enable this, we added a metadata field. The change itself it rather simple
Merge request reports
Activity
Created by: TeatroIO
I've prepared a stage. Click to open.
By Administrator on 2014-07-02T09:32:25 (imported from GitLab project)
By Administrator on 2014-07-02T09:32:25 (imported from GitLab)
Created by: jvanbaarsen
@joel-rightshift I'm not sure about this one, since this would add other behaviour to the API then whats possible from the web-interface. I think @dosire or @randx have to decide on this one.
By Administrator on 2014-07-25T20:29:09 (imported from GitLab project)
By Administrator on 2014-07-25T20:29:09 (imported from GitLab)
129 133 put ":id/issues/:issue_id" do 130 134 issue = user_project.issues.find(params[:issue_id]) 131 135 authorize! :modify_issue, issue 136 <<<<<<< HEAD 129 133 put ":id/issues/:issue_id" do 130 134 issue = user_project.issues.find(params[:issue_id]) 131 135 authorize! :modify_issue, issue 136 <<<<<<< HEAD 137 138 attrs = attributes_for_keys [:title, :description, :assignee_id, :milestone_id, :state_event, :metadata] 139 attrs[:label_list] = params[:labels] if params[:labels].present? 140 ======= 132 141 attrs = attributes_for_keys [:title, :description, :assignee_id, :milestone_id, :state_event] 133 142 134 143 # Validate label names in advance 135 144 if (errors = validate_label_params(params)).any? 136 145 render_api_error!({ labels: errors }, 400) 137 146 end 147 >>>>>>> upstream/master 129 133 put ":id/issues/:issue_id" do 130 134 issue = user_project.issues.find(params[:issue_id]) 131 135 authorize! :modify_issue, issue 136 <<<<<<< HEAD 137 138 attrs = attributes_for_keys [:title, :description, :assignee_id, :milestone_id, :state_event, :metadata] 139 attrs[:label_list] = params[:labels] if params[:labels].present? 140 ======= Created by: dblessing
This merge request has been closed because a request for more information has not been reacted to for more than 2 weeks. If you respond and conform to the merge request guidelines in our contributing guidelines we will reopen this merge request.
By Administrator on 2014-12-20T14:58:24 (imported from GitLab project)
By Administrator on 2014-12-20T14:58:24 (imported from GitLab)