6543 and GitHub
bfda0f3864
[API] ListIssues add filter for milestones ( #10148 )
...
* Refactor Issue Filter Func
* ListIssues add filter for milestones
* as per @lafriks
* documentation ...
2020-04-30 01:15:39 -03:00
6543 and GitHub
6b6f20b6d4
BugFix: updateLabel can updated not allowed fields #11242 ( #11242 )
2020-04-28 19:28:56 -04:00
6543 and GitHub
41cebeb8fa
Make error pages translatable ( #11163 )
...
* make error pages translatable
* dont translate ":"
* link need Safe
2020-04-27 18:03:15 -05:00
6543 and GitHub
4ddfe0d07a
Fix GetContents(): Dont't ignore Executables ( #11192 )
...
* Refactor: dont expose help functions
* repofiles GetContents: dont ignore executables
* CI.restart()
2020-04-24 19:20:22 +03:00
6543 and GitHub
49f8b20570
make pagination optional for notifications ( #10714 )
2020-04-21 22:21:46 +01:00
6543 and GitHub
bb4261a5ed
Add issue subscription check to API ( #10967 )
...
close #10962
Adds `GET /api/v1/repos/{owner}/{repo}/issues/{index}/subscriptions/check`
-> return a `WachInfo`
2020-04-21 14:48:53 +01:00
6543 and GitHub
b9ed8d8497
make branch parameter optional for /api/v1/repos/{owner}/{repo}/contents/{filepath} ( #11067 )
2020-04-20 17:47:05 +01:00
5bfb9bc2b6
When migrating from Gitlab map Approvals to approving Reviews ( #11147 )
...
When migrating from Gitlab map Gitlab Approvals to approving Reviews
Co-Authored-By: zeripath <art27@cantab.net >
2020-04-20 13:30:46 +01:00
6543 and GitHub
77171abcad
Prevent xorm nil insert in Review.Comments ( #11150 )
2020-04-20 04:04:08 +01:00
6543 and GitHub
e37e217602
[Fix] RetryDownloader (add GetReviews()) ( #11093 )
...
* add GetReviews() to RetryDownloader
2020-04-20 03:23:28 +01:00
6543 and GitHub
82dbb34c9c
Vendor Update: go-gitlab v0.22.1 -> v0.31.0 ( #11136 )
...
* vendor update: go-gitlab to v0.31.0
* migrate client init to v0.31.0
* refactor
2020-04-19 21:23:05 +01:00
6543 and GitHub
3c5a4d094a
[API] Add branch delete ( #11112 )
...
* use same process as in routers/repo/branch.go/deleteBranch
* make sure default branch can not be deleted
* remove IsDefaultBranch from UI process - it is worth its own pull
* permissions
2020-04-19 10:38:09 +08:00
6543 and GitHub
4be7cf0405
On Repo Deletion: Delete related TrackedTimes too ( #11110 )
2020-04-18 22:39:23 +01:00
12960b9d18
[BugFix] remove nil inserts in models ( #11096 )
...
* Fix InsertReleases Nil Insert on Attachments
* FIX "No element on slice when insert" & smal refactor
* again
* impruve
* rm useles newline
* Apply suggestions from code review
Co-Authored-By: zeripath <art27@cantab.net >
* process insert as a whole
Co-authored-by: zeripath <art27@cantab.net >
2020-04-17 20:42:57 +03:00
c52d48aae4
Prevent merge of outdated PRs on protected branches ( #11012 )
...
* Block PR on Outdated Branch
* finalize
* cleanup
* fix typo and sentences
thanks @guillep2k
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-04-16 22:00:36 -03:00
6543 and GitHub
a4cab2bbfa
[BugFix] ReviewCount: GetApprovalCounts func sorted wrong ( #11086 )
...
* FIX by simplify
* code reformat and optimize
2020-04-16 13:44:34 +03:00
6543 and GitHub
a88f3663eb
Fix merge dialog on protected branch with missing required statuses ( #11074 )
...
It is possible for misconfigured protected branches to have required status checks that are not in any of the current statuses: Pending, Success, Error, Failure, or Warning - presumably because the CI has not contacted us as yet.
Fix #10636 by adding case: missing StatusChecks when these are missing
2020-04-15 21:35:18 +01:00
6543 and GitHub
70fab7e26a
document 404 responce and meaning ( #11073 )
2020-04-15 16:03:05 +03:00
6543 and GitHub
d66b9a4690
Fix Migration 136 (be less aggressive to open pulls missing git files) ( #11072 )
...
* be less aggressife to open pulls when migrating
* remove unused
2020-04-14 17:16:07 -05:00
6543 and GitHub
f7ecc2bee7
fix ( #11066 )
2020-04-14 19:29:31 +03:00
6543 and GitHub
10e2f29144
Cache PullRequest Divergence ( #10914 )
...
* Cache PullRequest Divergence
* only re-calc divergence if AddTestPullRequestTask() is exec
* migrate already open pulls
* finalize
* take care of closed¬-merged+deleted-branch pull requests
* fix nil pointer exeption
Signed-off-by: 6543 <6543@obermui.de >
* try this
* no error its a warn
* init gitea-repositories-meta
* dont use gitDivergence type
* CI.restart()
* CI.restart()
* CI.restart()
* CI.restart()
* check IsUserAllowedToUpdate independend from CommitsBehind
2020-04-14 09:53:34 -04:00
ad5c43ae5d
Reject duplicate AccessToken names ( #10994 )
...
* make sure duplicate token names cannot be used
* add check to api routes too
* add @lunny s suggestion
* fix & don't forget User.ID
* AccessTokenByNameExists() return error too
* unique token for each test
* fix lint
Signed-off-by: 6543 <6543@obermui.de >
Co-authored-by: Lanre Adelowo <yo@lanre.wtf >
2020-04-13 22:02:48 +03:00
6543 and GitHub
0dadea19bc
[Api] Check Notify (always return json) ( #10059 )
...
* BEAKING: check return status based on struct not httpStatus
* update Tests
* CI.restart()
2020-04-10 19:49:39 -04:00
6543 and GitHub
bc362ea3c6
remove package code.gitea.io/gitea/modules/git import out of models ( #11025 )
2020-04-10 14:26:37 +03:00
6543 and GitHub
d21b974f6c
Load pr Issue Poster on API too ( #11033 )
2020-04-10 13:40:36 +03:00
6543 and GitHub
3d63caa542
[API] Get a single commit via Ref ( #10915 )
...
* GET /repos/:owner/:repo/commits/:ref
* add Validation Checks
* Fix & Extend TEST
* add two new tast cases
2020-04-07 22:54:46 -04:00
71979d9663
Automatically remove Watches, Assignments, etc if user loses access due to being removed as collaborator or from a team ( #10997 )
...
* remove a user from being assigned to any issue/PR if (s)he is removed as a collaborator
* fix gender specific comment
* do not remove users that still have access to the repo if they are a member of a team that can access the repo
* add context to errors
* updates
* incorporate review fixes
* Update models/repo_collaboration.go
Co-Authored-By: 6543 <6543@obermui.de >
* Update models/repo_collaboration.go
Co-Authored-By: 6543 <6543@obermui.de >
* Fix Rebase Relict
* Fix & Impruve
* use xorm builder
* all in one session
* generalize reconsiderIssueAssignees
* Only Unwatch if have no access anymore
* prepare for reuse
* Same things if remove User from Team
* fix lint
* let mysql take time to react
* add description
* CI.restart()
* CI.restart()
Co-authored-by: Lanre Adelowo <yo@lanre.wtf >
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-04-07 22:52:01 +01:00
6543 and GitHub
17837986f0
[Docs] Add Note to Readme-Template about Variable Espansion ( #10983 )
...
* add note with Espansion VarNames
* add context of Name
2020-04-06 19:43:17 -04:00
6543 and GitHub
ad31d6b5e8
Fix release counter on API repository info ( #10968 )
...
Use the same mechanism as the webpage for calculating the release count
Fix #10946
2020-04-06 19:42:30 +01:00
6543 and GitHub
a291a0eddc
Prevent deadlock in pull_service.GetDiverging(pr) ( #10905 )
...
* Switch to use a temporary repository instead of adding remotes to the base gitea repository to prevent deadlocking the base gitea repository.
* Add documentation on how to use func **createTemporaryRepo**
2020-04-01 20:03:08 +01:00
d501aec427
Changelog v1.11.4 ( #10916 ) ( #10917 )
...
* output of changelog
* Apply suggestions from code review
* Update CHANGELOG.md
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2020-04-01 12:59:05 -04:00
6543 and GitHub
57c7a7aa72
Ensure Update button is enabled even when CI has failed ( #10640 )
...
* ignore pull status
* fix css
* fix css
2020-03-07 03:24:42 +02:00
6543 and GitHub
4160bd6ef1
Remove Unused Functions ( #10516 )
...
* remove ReplaceLeft
* remove GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName
* remove CheckUnitUser chainload to models.CheckUnitUser
* remove MakeAssigneeList
* remove DownloadDiff & DownloadPatch -> DownloadDiffOrPatch
* remove GetRandomBytesAsBase64
* remove PushUpdateDeleteTags
* remove GetUserByKeyID
(you still can resolve user by "k, err := GetPublicKeyByID; userID := k.OwnerID")
* remove BasicAuthEncode from struct package -> same function in modules/base/tools !
* remove UserID from api.utils
* remove unused func from structs package
2020-03-02 00:05:44 +02:00
7e8cdba181
[Refactor] move APIFormat() of Issue and Label to convert package ( #10423 )
...
* Label: delete .APIFormat() and use convert.ToLabel()
* move issue APIFormat too
* add missing one
* move TEST too
* handle error -> return empty APIIssue
* Apply suggestions from code review
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-02-28 23:49:50 -03:00
6543 and GitHub
ae4eaf02be
vendor: unknown/cae move to taged version ( #10521 )
2020-02-28 13:46:28 +00:00
6543 and GitHub
15c7738b3a
goldmark v1.1.19 -> v1.1.23 ( #10519 )
...
vendor update
2020-02-28 13:06:10 +00:00
8d2059a201
update: macaron cores,gzip,session ( #10522 )
...
Co-authored-by: zeripath <art27@cantab.net >
2020-02-28 10:51:18 +01:00
6543 and GitHub
694f44660f
inform participants on UI too ( #10473 )
...
* inform participants on UI too
* ajust test
* refactor getParticipantIDsByIssue
2020-02-28 05:16:41 -03:00
6543 and GitHub
e57ac841de
Fix potential bugs ( #10513 )
...
* use e if it is an option
* potential nil so check err first
* check err first
* m == nil already checked
2020-02-27 20:10:27 -03:00
a924a90349
[BugFix] Avoid mailing explicit unwatched ( #10475 )
...
* Avoid mailing explicit unwatched
* CI.restart()
* back to normal
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-02-27 10:07:05 +00:00
084a2b0026
Code Refactor of IssueWatch related things ( #10401 )
...
* refactor
* optimize
* remove Iretating function
LoadWatchUsers do not load Users into IW object and it is used only in api ... so move this logic
* remove unessesary
* Apply suggestions from code review
Thx
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
* make Tests more robust
* fix rebase
* restart CI
* CI no dont hit sqlites deadlock
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-02-26 03:32:22 -03:00
4427a936b4
[API] enable paggination for ListRepoTags ( #10454 )
...
* enable paggination for repoTags
* precalculate first, cut slice second
* Apply suggestions from code review
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-02-25 14:07:07 -05:00
6543 and GitHub
fa3381610c
update discord link ( #10455 )
2020-02-25 12:36:45 -05:00
6543 and GitHub
dc88b786e9
Use local timezone to compare ( #10446 )
2020-02-25 11:05:00 +08:00
6543 and GitHub
b65e954f73
FIX Pagination of ListAccessTokens and GetIssueWatchers ( #10449 )
...
* fix a pagination bug
* fix pagination of ListAccessTokens
2020-02-24 16:50:32 -06:00
6543 and GitHub
39b507e3c4
Trigger webhooks on issue label-change via API too ( #10421 )
...
* trigger webhooks with api too
* fix comment
* notify report old too
* CI restart
* restart CI again
* remove duplicated code
2020-02-23 22:53:08 +00:00
6543 and GitHub
fe26ca53c1
update integration README ( #10400 )
2020-02-23 00:45:20 +02:00
6543 and GitHub
bfd62b6f01
update vendor keybase/go-crypto ( #10234 )
2020-02-11 20:58:23 +02:00
585316f3bf
[API] let admin check org membership on other users ( #10201 )
...
* fix
* fix lint on master
Co-authored-by: zeripath <art27@cantab.net >
2020-02-09 23:54:53 +02:00
6543 and GitHub
e273817154
[API] Fix inconsistent label color format ( #10129 )
...
* update and use labelColorPattern
* add TestCases
* fix lint
* # optional for templates
* fix typo
* some more
* fix lint of **master**
2020-02-09 14:33:03 +00:00
6543 and GitHub
11789aebb0
Fix code-expansion arc-green theme bug ( #10180 )
...
* fix code-expansion theme bug
* working solution without important
* no new color
* the midle
2020-02-07 20:19:50 +01:00
d4096ab6a2
Ensure DeleteUser is not allowed to Delete Orgs and visa versa ( #10134 )
...
* add check to DeleteUser
* add check to DeleteOrganization
* add Test
* remove redundancy (deleteOrg is only used in DeleteOrganization)
* Update models/org.go
Co-authored-by: zeripath <art27@cantab.net >
2020-02-04 16:27:18 +02:00
6543 and GitHub
b3c72a7c4a
[API] expose RepoOwner on Issue responce ( #10126 )
...
* add RepoOwner on issue api responce
* CI.restart()
2020-02-04 00:05:17 -05:00
6543 and GitHub
ea50f60df2
Prevent DeleteUser API abuse ( #10125 )
...
* fix & co
* word suggestions from @jolheiser
2020-02-03 18:46:33 +02:00
e959d1a48b
working part of #9998 ( #10114 )
...
Co-authored-by: zeripath <art27@cantab.net >
2020-02-03 10:21:50 +08:00
6543 and GitHub
8d43563a32
[BugFix] [API] Pull.API.Convert: Only try to get HeadBranch if HeadRepo exist ( #10029 )
...
* only try to get HeadBranch if HeadRepo exist
* impruve
* no nil error
* add TEST
* correct error msg
2020-01-31 16:13:51 -05:00
6543 and GitHub
13bc82009c
API endpoint for repo transfer ( #9947 )
...
* squash
* optimize
* fail before make any changes
* fix-header
2020-01-31 15:49:04 +00:00
6543 and GitHub
159732dcb7
update ( #10079 )
2020-01-31 07:01:32 +02:00
6543 and GitHub
169bb55ec6
[UI] Show pull icon on pull ( #10061 )
...
* make fmt
* show pull icon on pull
2020-01-29 18:54:34 +00:00
f29c301040
Refactor api repo dir ( #10048 )
...
* mv migrate
* mv mirror
Co-authored-by: zeripath <art27@cantab.net >
2020-01-29 13:55:23 +08:00
6543 and zeripath
88c3ccb897
trim whitespace of MilestoneName at creation/rename ( #10017 )
2020-01-27 16:23:21 +00:00
6543 and techknowlogick
fec1095f17
[Docs] add usefull info to REQUIRE_SIGNIN_VIEW ( #9848 )
2020-01-17 18:34:55 -05:00
6543 and techknowlogick
6140325e98
Changelog 1.10.3 ( #9832 ) ( #9850 )
2020-01-17 17:03:07 -05:00
6543 and Lunny Xiao
2f3a602b3c
fix ( #9836 )
2020-01-17 22:37:46 +08:00
6543 and Lauris BH
36943e56d6
Add "Update Branch" button to Pull Requests ( #9784 )
...
* add Divergence
* add Update Button
* first working version
* re-use code
* split raw merge commands and db-change functions (notify, cache, ...)
* use rawMerge (remove redundant code)
* own function to get Diverging of PRs
* use FlashError
* correct Error Msg
* hook is triggerd ... so remove comment
* add "branch2" to "user2/repo1" because it unit-test "TestPullView_ReviewerMissed" use it but dont exist jet :/
* move GetPerm to IsUserAllowedToUpdate
* add Flash Success MSG
* imprufe code
- remove useless js chage
* fix-lint
* TEST: add PullRequest ID:5
Repo: user2/repo1
Base: branch1
Head: pr-to-update
* correct comments
* make PR5 outdated
* fix Tests
* WIP: add pull update test
* update revs
* update locales
* working TEST
* update UI
* misspell
* change style
* add 1s delay so rev exist
* move row up (before merge row)
* fix lint nit
* UI remove divider
* Update style
* nits
* do it right
* introduce IsSameRepo
* remove useless check
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-17 08:03:40 +02:00
6543 and Antoine GIRARD
06cd3e03a2
[refactor] notify remove unused praram ( #9804 )
2020-01-16 17:24:20 +01:00
6543 and techknowlogick
3ae5f8ef11
[Docs] Update Feature 'Reject unsigned commits' ( #9793 )
...
* update docs
* add link to feature
2020-01-16 01:43:02 -05:00
6543 and zeripath
665d7e91a8
Fix signing info on PR view if not signed in ( #9788 )
2020-01-15 22:55:25 +00:00
6543 and Antoine GIRARD
44de66bf50
[API] add endpoint to check notifications [Extend #9488 ] ( #9595 )
...
* introduce GET /notifications/new
* add TEST
* use Sprintf instead of path.Join
* Error more verbose
* return number of notifications if unreaded exist
* 200 http status for available notifications
2020-01-14 16:37:19 +01:00
0b3aaa6196
[API] Add "before" query to ListIssueComments and ListRepoIssue… ( #9685 )
...
* add "before" query to ListIssueComments and ListRepoIssueComments
* Add TEST
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-13 17:02:24 +01:00
6543 and Lunny Xiao
10055bd2b1
[API] add GET /orgs endpoint ( #9560 )
...
* introduce `GET /orgs`
* add TEST
* show also other VisibleType's
* update description
* refactor a lot
* SearchUserOptions by default return only public
2020-01-12 23:43:44 +08:00
83f9359a75
[BugFix] [API] /repos/issues/search ( #9698 )
...
* fix
* fix options
* add TEST
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-12 14:35:11 +08:00
e8ea0695b0
[API] creat org repo call same as github ( #9186 )
...
* deprecate /api/v1/org/{org}/repos in favour of /api/v1/orgs/{org}/repos + cleanup api repository routes a bit
* remove redundant code
* use upstream function for api cal
* make generate-swagger
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-09 16:40:01 +00:00
1080c768d3
[API] orgEditTeam make Fields optional ( #9556 )
...
* API: orgEditTeam make Fields optional
* add TestCase
* Update integrations/api_team_test.go
* suggestions from lafriks
use len() to check if string is empty
Co-Authored-By: Lauris BH <lauris@nix.lv >
* change ...
* use Where not ID to get mssql
* add return and code format
* fix test
* fix test ... null pointer exept
* update specific colums
* only specific colums too
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-01-09 13:15:14 +00:00
6543 and zeripath
6baa5d7588
[API] Add notification endpoint ( #9488 )
...
* [API] Add notification endpoints
* add func GetNotifications(opts FindNotificationOptions)
* add func (n *Notification) APIFormat()
* add func (nl NotificationList) APIFormat()
* add func (n *Notification) APIURL()
* add func (nl NotificationList) APIFormat()
* add LoadAttributes functions (loadRepo, loadIssue, loadComment, loadUser)
* add func (c *Comment) APIURL()
* add func (issue *Issue) GetLastComment()
* add endpoint GET /notifications
* add endpoint PUT /notifications
* add endpoint GET /repos/{owner}/{repo}/notifications
* add endpoint PUT /repos/{owner}/{repo}/notifications
* add endpoint GET /notifications/threads/{id}
* add endpoint PATCH /notifications/threads/{id}
* Add TEST
* code format
* code format
2020-01-09 11:56:32 +00:00
14a9687444
times Add filters ( #9373 )
...
(extend #9200 )
* add query param for GET functions (created Bevore & after)
* add test
* generalize func GetQueryBeforeSince
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-01-08 16:14:00 -05:00
6543 and Antoine GIRARD
c779ac12c9
fix #9648 | use filepath.IsAbs instead of path.IsAbs ( #9651 )
...
* fix #9648
* found next
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-08 15:30:58 +01:00
6543 and Lunny Xiao
e88d67b774
[API] add comments endpoint for single comment ( #9494 )
...
* add GET /repos/{owner}/{repo}/issues/comments/{id}
and complete error list for swagger in other func
* add repo check
2020-01-08 15:00:59 +08:00
bb4476908d
Changelog for 1.11.0-RC1 ( #9636 )
...
* generated Changelog
* cormat, sort, fix
* teamwork :)
Co-Authored-By: techknowlogick <matti@mdranta.net >
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* next()
* Next()
* add last change
* as @jolheiser suggested
* Apply suggestions from code review
Co-Authored-By: techknowlogick <matti@mdranta.net >
* Apply suggestions from code review
* Update CHANGELOG.md
* Update CHANGELOG.md
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Update CHANGELOG.md
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
* add bugfix + topic is plural
* rest
* Apply suggestions from code review
* Apply suggestions from code review
Co-Authored-By: techknowlogick <matti@mdranta.net >
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-01-08 10:57:44 +08:00
6543 and zeripath
9406368633
Fix Issue Unsubscription ( #9634 )
2020-01-07 15:41:35 +00:00
6543 and Lauris BH
bcac7cb934
fix swagger description of reaction API ( #9617 )
2020-01-06 06:58:13 +02:00
6543 and zeripath
133ae18b61
[BugFix] Hide public repos owned by private orgs ( #9609 )
...
* Restrict AllPublic to actually public repos.
* Add new parameter to add in AllLimited Repos
2020-01-05 18:48:47 +00:00
7e4f490482
[Docs] introduce "make help" ( #9604 )
...
* introduce "make help"
* fix + add more routienes
* Update Makefile
* add make vet
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-01-05 12:40:02 -05:00
6543 and Antoine GIRARD
a5a79f702d
update gitea.com/macaron/macaron to 1.4.0 ( #9608 )
2020-01-05 15:27:25 +01:00
ee9b9365be
[Docs] Add guide on howto develop API ( #9587 )
...
* draft 1
* add suggestions
thanks to @bagasme @techknowlogick @davidsvantesson
* http methods
* use permalinks
* Apply suggestions from code review
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* code format + add to INDEX
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-04 10:23:40 +08:00
6543 and Lauris BH
134e3fdf3d
[API] dont reqToken on GetReactions ( fix #9543 ) ( #9548 )
...
* dont reqToken on GetReactions
* ctx.Repo.CanWrite has ctx.User.IsAdmin in It
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-02 23:27:31 +02:00
6543 and Lauris BH
4ab072d9c2
Changelog for 1.10.2 ( #9586 )
2020-01-02 14:15:30 +02:00
6543 and zeripath
5b9283ddfe
make sure Poster is loaded ( #9583 )
2020-01-02 07:54:22 +00:00
6543 and Lauris BH
9cf7048a6a
Dont trigger notification twice on issue assignee change ( #9582 )
2020-01-02 04:07:15 +02:00
c620eb5b2d
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 >
2020-01-01 17:51:10 -05:00
6543 and Lauris BH
d1798f77f6
swagger UI: hide iretating search field ( #9554 )
2020-01-01 18:08:13 +02:00
9600c27085
[API] Fix 9544 | return 200 when reaction already exist ( #9550 )
...
* add ErrReactionAlreadyExist
* extend CreateReaction
* reaction already exist = 200
* extend FindReactionsOptions
* refactor swagger options/definitions
* fix swagger-validate
* Update models/error.go
Co-Authored-By: zeripath <art27@cantab.net >
* fix test PART1
* extend FindReactionsOptions with UserID option
* catch error on test
* fix test PART2
* format ...
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <matti@mdranta.net >
2019-12-31 03:21:21 -05:00
6543 and Lunny Xiao
655aea13a5
update swagger info ( #9558 )
2019-12-31 12:11:15 +08:00
d59536c222
[BugFix] use default avatar for ghost user (fix 500 error) ( #9536 )
...
* remove since it is there for 3years
* fix 500 error for ghost avatar
* dont insert "-1" in any case to issue.poster_id
* fix lint
* Test: ghost avatar link
* fix test
* Revert "remove since it is there for 3years"
This reverts commit fd9ad05159 .
* Revert "dont insert "-1" in any case to issue.poster_id"
This reverts commit 05469ab6d8 .
Co-authored-by: zeripath <art27@cantab.net >
2019-12-29 16:24:50 +02:00
6543 and zeripath
98bc3e1da8
remove since it is there for 3years ( #9538 )
2019-12-29 12:32:31 +00:00
6543 and zeripath
261c3a56a2
[Fix] Release attachment should use DownloadURL() not Name ( #9529 )
...
* Handle if two or more attachments have the same name
* previously only the first could be downloaded - now each is downloadable
* dos also take care of #6506 (fix was: #6512 )
* use func DownloadURL() at issue attatchments too
2019-12-28 23:33:13 +00:00
6543 and zeripath
599c0ee75f
go-mssqldb UPDATE ( #9522 )
2019-12-28 17:14:38 +00:00
4ee97465e9
[Fix] AllowedReaction code ( #9518 )
...
* optimize
* CI.restart()
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: zeripath <art27@cantab.net >
2019-12-27 18:43:56 -05:00
6543 and zeripath
f2d03cda96
[API] Extend times API ( #9200 )
...
Extensively extend the times API.
close #8833 ; close #8513 ; close #8559
2019-12-27 20:30:58 +00:00
40e99ea010
[API] Extend contents with dates ( #9464 )
...
* extend CommitTree func
* make sure Date NOT nil
* spell corection
Co-Authored-By: zeripath <art27@cantab.net >
* add TEST
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2019-12-24 10:33:52 +08:00