aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures/issue.yml
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-01-01 23:51:10 +0100
committertechknowlogick <techknowlogick@gitea.io>2020-01-01 17:51:10 -0500
commitc620eb5b2d0d874da68ebd734d3864c5224f71f7 (patch)
tree340d2846fba024170ce31003af666814bb31bc33 /models/fixtures/issue.yml
parentd1798f77f62988828c004fcf8d234bff6340deb7 (diff)
downloadgitea-c620eb5b2d0d874da68ebd734d3864c5224f71f7.tar.gz
gitea-c620eb5b2d0d874da68ebd734d3864c5224f71f7.zip
Fix #9189 - API Allow only specific Colums to be updated on Issue (#9539)
* dont insert "-1" in any case to issue.poster_id * Make sure API cant override importand fields * code format * fix lint * WIP test * add missing poster_id * fix test * user.IsGhost handle nil * CI.restart() * make sure no -1 is realy added * CI.restart() * @lunny suggestion remove some not allowed fields * seperate issue.LoadMilestone * load milestone and return it on IssueEdit via API * extend Test for TestAPIEditIssue * fix fixtures * declare allowedColumnsUpdateIssueByAPI only once * Update Year * no var just write id drecty into func cal Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'models/fixtures/issue.yml')
-rw-r--r--models/fixtures/issue.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/models/fixtures/issue.yml b/models/fixtures/issue.yml
index 6b57268a7a..ecee7499f6 100644
--- a/models/fixtures/issue.yml
+++ b/models/fixtures/issue.yml
@@ -108,4 +108,17 @@
is_closed: false
is_pull: true
created_unix: 946684820
- updated_unix: 978307180 \ No newline at end of file
+ updated_unix: 978307180
+
+-
+ id: 10
+ repo_id: 42
+ index: 1
+ poster_id: 500
+ name: issue from deleted account
+ content: content from deleted account
+ is_closed: false
+ is_pull: false
+ created_unix: 946684830
+ updated_unix: 999307200
+ deadline_unix: 1019307200