Manush Dodunekov
ee2f31f32b
Don't assume block only applies to orgs
2020-01-09 08:43:15 +01:00
Manush Dodunekov
b788ef32ff
Don't disclose limited orgs to unauthenticated users
2020-01-09 08:28:11 +01:00
Manush Dodunekov
3459547fca
merge upstream, resolve migration conflicts
2020-01-09 07:51:45 +01:00
John Olheiser
ee9ce0cfa9
Fix nil reference in repo generation ( #9660 )
...
* Fix nil reference
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Tighten
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-01-09 08:22:37 +02:00
David Svantesson
25531c71a7
Mark PR reviews as stale at push and allow to dismiss stale approvals ( #9532 )
...
Fix #5997 .
If a push causes the patch/diff of a PR towards target branch to change, all existing reviews for the PR will be set and shown as stale.
New branch protection option to dismiss stale approvals are added.
To show that a review is not based on the latest PR changes, an hourglass is shown
2020-01-09 01:47:45 +00:00
Manush Dodunekov
7d74b8596c
Avoid extra loop
2020-01-09 01:37:39 +01:00
Manush Dodunekov
7d17aad805
even tighter
2020-01-09 00:31:40 +01:00
Manush Dodunekov
10de9b6b89
updateUserAccess(): use tighter syntax as suggested by lafriks
2020-01-09 00:12:43 +01:00
John Olheiser
5b2d9333f1
Add HTML URL to API Issues ( #9654 )
...
* Add HTML URL to API Issues
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-01-08 23:10:34 +00:00
Manush Dodunekov
06ad61aad3
or even better: map[int64]*userAccess
2020-01-08 22:19:00 +01:00
6543
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
Manush Dodunekov
124f056e19
Revert to an int64
keyed accessMap
...
* Add type `userAccess`
* Add convenience func updateUserAccess()
* Turn accessMap into a `map[int64]userAccess`
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
2020-01-08 21:42:59 +01:00
Manush Dodunekov
5b652427c0
Remove unnecessary org.IsOrganization()
call
...
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
2020-01-08 18:48:32 +01:00
John Olheiser
f8dcc5f9f8
Add PR review webhook to Telegram ( #9653 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-08 18:45:24 +01:00
Bagas Sanjaya
b822518e39
[Docs] Linux Service Edit ( #9633 )
...
* Rename h3 title
* Add intro
Should work on Ubuntu Xenial, but should work on any Linux distros.
* Indirect edit files
Instead of providing `sudo vim`, invite to edit files.
* enable now instead of enable and start
* Re-add systemctl enable && systemctl start
* Revert service enablement back to status quo
* Add enable now counterpart for systemd > v220
* Apply suggestions from @sapk
Strip `vim` from editor usage
Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-08 17:33:13 +01:00
6543
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
Manush Dodunekov
4501f22d98
Revert unnecessary change .isUserPartOfOrg
-> .IsUserPartOfOrg
...
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
2020-01-08 14:55:36 +01:00
Manush Dodunekov
dc7e423afc
Mention restricted users in the faq
...
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
2020-01-08 15:38:56 +02:00
GiteaBot
98772d376c
[skip ci] Updated translations via Crowdin
2020-01-08 12:45:05 +00:00
Shashvat Kedia
632fb5badc
Fix #9552 : Merge commits generated by pull request capture pull request details ( #9635 )
2020-01-08 11:53:07 +00:00
Antoine GIRARD
1f7b0fc4f4
Merge branch 'master' into feature/restricted-users
2020-01-08 12:31:28 +01:00
Bagas Sanjaya
74d6ec6807
[Docs] Grammar Edit on Enabling HTTPS Using Reverse Proxy ( #9649 )
...
* Use infinitives for accept and pass
* Close parentheeses for proxy exposed
2020-01-08 10:20:15 +01:00
6543
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
techknowlogick
c884735740
Plural form for changelog ( #9645 )
...
Fix: https://gitea.com/gitea/changelog/issues/16
2020-01-08 00:08:49 -05:00
techknowlogick
8e132cd16a
Update date for new year ( #9644 )
2020-01-07 23:06:45 -05:00
Matti R
fe2e812121
empty commit to start 1.12-dev
2020-01-07 22:56:59 -05:00
6543
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
David Svantesson
c181070f9e
Repository teams - disable remove button when have access to all ( #9640 )
...
Co-authored-by: zeripath <art27@cantab.net>
2020-01-08 08:36:39 +08:00
Shashvat Kedia
1e9b3d4743
Fix #9530 : admin auth list make readable and admin auth delete bug fix ( #9628 )
2020-01-07 23:41:16 +00:00
Lunny Xiao
b9309e52f0
Move wiki related funtions from models to services/wiki ( #9355 )
...
* Move wiki related funtions from models to services/wiki
2020-01-07 18:27:36 +00:00
zeripath
e5d8e2d10c
Branches not at ref commit ID should not be listed as Merged ( #9614 )
...
Once a branch has been merged if the commit ID no longer equals that of
the pulls ref commit id don't offer to delete the branch on the pull screen
and don't list it as merged on branches.
Fix #9201
When looking at the pull page we should also get the commits from the refs/pulls/x/head
Fix #9158
2020-01-07 17:06:14 +00:00
6543
9406368633
Fix Issue Unsubscription ( #9634 )
2020-01-07 15:41:35 +00:00
GiteaBot
b6fa229dcf
[skip ci] Updated translations via Crowdin
2020-01-07 14:32:33 +00:00
zeripath
0d515474b8
Remove stray printf ( #9631 )
2020-01-07 14:30:03 +00:00
GiteaBot
c88f0fed36
[skip ci] Updated translations via Crowdin
2020-01-07 11:24:19 +00:00
zeripath
62eb1b0f25
Graceful Queues: Issue Indexing and Tasks ( #9363 )
...
* Queue: Add generic graceful queues with settings
* Queue & Setting: Add worker pool implementation
* Queue: Add worker settings
* Queue: Make resizing worker pools
* Queue: Add name variable to queues
* Queue: Add monitoring
* Queue: Improve logging
* Issues: Gracefulise the issues indexer
Remove the old now unused specific queues
* Task: Move to generic queue and gracefulise
* Issues: Standardise the issues indexer queue settings
* Fix test
* Queue: Allow Redis to connect to unix
* Prevent deadlock during early shutdown of issue indexer
* Add MaxWorker settings to queues
* Merge branch 'master' into graceful-queues
* Update modules/indexer/issues/indexer.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update modules/indexer/issues/indexer.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update modules/queue/queue_channel.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update modules/queue/queue_disk.go
* Update modules/queue/queue_disk_channel.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Rename queue.Description to queue.ManagedQueue as per @guillep2k
* Cancel pool workers when removed
* Remove dependency on queue from setting
* Update modules/queue/queue_redis.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* As per @guillep2k add mutex locks on shutdown/terminate
* move unlocking out of setInternal
* Add warning if number of workers < 0
* Small changes as per @guillep2k
* No redis host specified not found
* Clean up documentation for queues
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
* Update modules/indexer/issues/indexer_test.go
* Ensure that persistable channel queue is added to manager
* Rename QUEUE_NAME REDIS_QUEUE_NAME
* Revert "Rename QUEUE_NAME REDIS_QUEUE_NAME"
This reverts commit 1f83b4fc9b
.
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-01-07 12:23:09 +01:00
GiteaBot
f71e1c8e79
[skip ci] Updated translations via Crowdin
2020-01-07 07:40:50 +00:00
8ctopus
143f88d975
More extensive robots.txt docs ( #9566 )
2020-01-07 07:38:22 +00:00
Manush Dodunekov
836f9d86aa
Restricted users ( #4334 ): initial implementation
...
* Add User.IsRestricted & UI to edit it
* Pass user object instead of user id to places where IsRestricted flag matters
* Restricted users: maintain access rows for all referenced repos (incl public)
* Take logged in user & IsRestricted flag into account in org/repo listings, searches and accesses
* Add basic repo access tests for restricted users
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
2020-01-06 23:21:56 +01:00
GiteaBot
5749b26cdd
[skip ci] Updated translations via Crowdin
2020-01-06 16:52:05 +00:00
Timon Engelke
abc0f53539
Add a /user/login landing page option ( #9622 )
...
* Add a /user/login landing page option
* Add test case for login landing page
2020-01-06 17:50:44 +01:00
6543
bcac7cb934
fix swagger description of reaction API ( #9617 )
2020-01-06 06:58:13 +02:00
zeripath
2a1cf5bae9
Add some padding to the shadowed comment box ( #9612 )
...
* Add some padding to the shadowed comment box
* prevent the padding affecting the other comments
2020-01-05 19:25:27 +00:00
6543
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
6543
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
GiteaBot
444c3a1184
[skip ci] Updated translations via Crowdin
2020-01-05 14:30:20 +00:00
6543
a5a79f702d
update gitea.com/macaron/macaron to 1.4.0 ( #9608 )
2020-01-05 15:27:25 +01:00
John Olheiser
4f54a4628a
!important makes me sad ( #9607 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-01-05 06:56:06 +02:00
John Olheiser
08424648ae
Fix create bugs ( #9606 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-01-04 21:39:14 -05:00
David Svantesson
03d59bcd1d
Fix access issues on milestone and issue overview pages. ( #9603 )
...
* Fix access issues on milestone and issue overview pages.
* Fix filter algorithm
2020-01-04 20:23:29 -05:00