Lunny Xiao
6362462da8
fix admin lost permission caused by #947
2017-05-19 08:59:26 +08:00
Lunny Xiao
fd6034aaf2
Add units to team ( #947 )
...
* add units to team
* fix lint
* finish team setting backend
* finished permission controll on routes
* fix import blank line
* add unit check on ssh/http pull and push and fix test failed
* fix fixtures data
* remove unused code
2017-05-18 22:54:24 +08:00
Diep Pham
407fbfa6ce
fixes wrong after field in webhook payload
...
when merge pull request
2017-05-18 12:16:36 +07:00
Lunny Xiao
bc299b8317
fix avatar update bug ( #1729 )
2017-05-16 08:36:09 +08:00
Jonas Östanbäck
e214728725
Add new text for reset password flash ( #1718 )
...
* Forgot password should use ResetPwdCodeLives, not ActiveCodeLives
* Improve documentation for different send mail functions related to password reset
* Improve documentation in conf/app.ini regarding xxx_CODE_LIVE_MINUTES settings
2017-05-14 10:38:30 +08:00
Ethan Koenig
9e627af9a4
gofmt ( #1710 )
2017-05-12 16:09:53 +08:00
guyzmo
397474ecb1
Added Parent property to the repo API ( #1687 )
...
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2017-05-12 11:09:26 +08:00
Ethan Koenig
251fb935ff
Don't recreate database in integration tests ( #1697 )
2017-05-11 23:32:43 +08:00
Lauris BH
524885dd65
LDAP user synchronization ( #1478 )
2017-05-10 15:10:18 +02:00
Andrey Nering
ab79069dc7
Improve dashboard repo search ( #1652 )
...
* Add VueJS
* Improve dashboard search
* Fix tab switching
* Fix input autofocus
2017-05-09 08:31:30 +08:00
Lauris BH
51d0becb42
Add configuration option for default permission to create Organizations ( #1686 )
2017-05-08 21:51:53 +02:00
Kim "BKC" Carlbäcker
a85c5ab9ff
fix potential sqlite lock #1680
2017-05-08 10:02:44 +02:00
Lauris BH
79494047b0
Show commit status icon in commits table ( #1688 )
...
* Show commit status icon in commits table
* Add comments
* Fix icons
* Few more places where commit table is displayed
* Change integration test to use goquery for parsing html
* Add integration tests for commit table and status icons
* Fix status to return lates status correctly on all databases
* Rewrote lates commit status selects
2017-05-07 22:40:31 +08:00
Lunny Xiao
930d1759ae
Remove env user salt since no need to use ( #1515 )
...
* remove env user salt since no need to use
* remove unused variable from update.go
2017-05-06 21:21:22 +08:00
guyzmo
98460a8d9d
Exposes in API the Repo entity's Size and IsBare property ( #1668 )
...
* Exposes in API the Repo entity's IsBare property as IsEmpty
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
* Exposes in API the Repo entity's Size property
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2017-05-05 10:55:54 +08:00
Lunny Xiao
36f02c0c32
fix potential sqlite lock
2017-05-05 10:13:48 +08:00
Lunny Xiao
0f3923c4d7
fix potential lock when sqlite ( #1647 )
2017-05-05 08:47:03 +08:00
Ethan Koenig
a5f28a4544
gofmt ( #1662 )
2017-05-04 13:54:56 +08:00
Lunny Xiao
1773e88643
Drop db operations from hook commands ( #1514 )
...
* move all database operations from hook command to web command and instead of internal routes
* bug fixed
* adjust the import path sequences
* remove unused return value on hookSetup
2017-05-04 13:42:02 +08:00
Antoine GIRARD
3edb0c5894
Generate swagger json ( #1402 )
...
- Generate swagger.json into public/
- Add swagger-ui auto-installation
- Add footer link to local swagger-ui
- Add /swagger url for using app url.
- Fix Swagger-UI version via git tag
2017-05-02 15:35:59 +02:00
Lauris BH
98548c83d3
Add primary key and index to external login user table ( #1656 )
2017-05-02 16:41:44 +08:00
Lauris BH
0144817971
Do not allow commiting to protected branch from online editor ( #1502 )
...
* Do not allow commiting to protected branch from online editor
* Add editor integration tests for adding new file and not allowing to add new file to protected branch
2017-05-02 08:49:55 +08:00
Willem van Dreumel
950f2e2074
Additional OAuth2 providers ( #1010 )
...
* add google+
* sort signin oauth2 providers based on the name so order is always the same
* update auth tip for google+
* add gitlab provider
* add bitbucket provider (and some go fmt)
* add twitter provider
* add facebook provider
* add dropbox provider
* add openid connect provider incl. new format of tips section in "Add New Source"
* lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow)
* imports according to goimport and code style
* make it possible to set custom urls to gitlab and github provider (only these could have a different host)
* split up oauth2 into multiple files
* small typo in comment
* fix indention
* fix indentation
* fix new line before external import
* fix layout of signin part
* update "broken" dependency
2017-05-01 21:26:53 +08:00
Ethan Koenig
66c803fae2
MySQL, Postgres integration tests in drone ( #1638 )
...
* MySQL, Postgres integration tests in drone
* Fix .drone.yml
* sign drone
* resign drone
2017-04-30 14:30:12 +08:00
Jonas Östanbäck
9a8ca3e877
Fix broken migration v27 ( #1504 )
...
Mirror.interval column type needed to be changed to bigint.
Correct interval where the interval set is < MinInterval.
2017-04-30 10:08:16 +08:00
Lunny Xiao
e31c02d4bf
fix bug on issue view when not login ( #1624 )
...
* fix bug on issue view when not login
* hide issue watch when not login
* update the tests
* fix test on issue
2017-04-29 13:52:25 +08:00
Jonas Östanbäck
e4a0a04829
Add create_at and updated_at in PR json ( #1616 )
...
* Move new fields to object creation (use reference)
* Vendor: Update SDK
2017-04-27 17:29:46 +08:00
Antoine GIRARD
8371f94d06
Rework SSH key management UI to add GPG ( #1293 )
...
* Rework SSH key management UI to add GPG
* Add more detail to gpg key display
* Update CHANGELOG.md
* Implement deletion UI
* Implement adding gpg UI
* Various fixes
- Fix duplicate entry in locale
- Re-generate hash before verification since they are consumed
* Add missing translation
* Split template
* Catch not found/verified email error
2017-04-26 21:10:43 +08:00
Ethan Koenig
c58708d3ee
Integration test framework ( #1290 )
...
* Integration test framework
* udpate drone sign
* Formatting fixes and move router.go to routers/
* update sign for drone
2017-04-25 15:24:51 +08:00
Lunny Xiao
3012971e92
fix bug on status API ( #1533 )
2017-04-24 22:33:54 +08:00
Kim "BKC" Carlbäcker
4bea219128
Status-API ( #1332 )
2017-04-21 19:32:31 +08:00
Bo-Yi Wu
fa2a513c62
feat: add download count field and unit testing for attachment. ( #1512 )
...
* feat: add download count field and unit testing.
* fix: unit testing
* refactor: improve testing.
* fix: update comment
* add default value.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-04-20 10:31:31 +08:00
Lunny Xiao
2eeae84cbd
Add internal routes for ssh hook comands ( #1471 )
...
* add internal routes for ssh hook comands
* fix lint
* add comment on why package named private not internal but the route name is internal
* add comment above package private why package named private not internal but the route name is internal
* remove exp time on internal access
* move routes from /internal to /api/internal
* add comment and defer on UpdatePublicKeyUpdated
2017-04-19 11:45:01 +08:00
Kim "BKC" Carlbäcker
d409d3ab57
Sanitation fix from Gogs ( #1461 )
...
* Santiation fix from Gogs
* Linting
* Fix build-errors
* still not working
* Fix all the things!
* gofmt
* Add code-injection checks
2017-04-13 10:52:24 +08:00
Jonas
be6edaddcb
Repo size in admin panel ( #1482 )
...
* Implementation of the feature to view repository size in admin panel
* Move GetRepoSize to git module
* Repository.RepoSize -> Repository.Size
* RepoSize -> Size in template
* Redo a few bits and pieces
* Update size when syncing mirror or forking
* Remove GetRepoSize
* Changed fatal errors to error message
* Copy migration code from Gogs
* make fmt
2017-04-11 21:30:15 +08:00
Jonas
54f0293f0a
Mirror sync interval specified as duration string ( #1407 )
...
* Sync interval specifed as duration string
* Changed mirror interval text
* make fmt
* Add MinInterval for mirror sync
* Use duration internally
* Changed min default to 10m
* make fmt
* Incorrect default
* Removed defaults in MustDuration()
* Add Mirror interval migration
* Default values corrected
* Use transaction during migration
* Change http 500 to page with error message
* Cleanup session.commit()
2017-04-08 23:27:26 +08:00
Lunny Xiao
5c0bee9b20
refactor update ssh key use time ( #1466 )
2017-04-07 17:40:38 -07:00
Lunny Xiao
5acfc7c4bc
fix migrate failed and org dashboard failed on MSSQL database ( #1448 )
2017-04-06 18:47:25 -07:00
Jonas
e7493e953f
Corrected Mirror.NextUpdate not set ( #1388 )
2017-04-05 17:56:45 -07:00
Kuba Tyszko
5d6b71fdbb
fixes pull request hanging indefinitely when it contains normal and LFS file pointers ( #1425 )
2017-04-03 10:21:09 +08:00
Andrey Nering
37a34c1a28
Merge pull request #1410 from andreynering/notification/issue-watch
...
[Notifications Step 6] Per issue/PR watch/unwatch
2017-04-01 15:12:24 -03:00
Andrey Nering
f6e5ce65b2
Improve tests a little
2017-04-01 10:05:58 -03:00
Andrey Nering
e5c56fe30d
Code style fixes
2017-04-01 09:58:20 -03:00
agrn
88112a5324
Fix "Error: No issue number specified" when pushing ( #1393 )
...
* Fix "Error: No issue number specified" when pushing
* update pr
2017-03-31 18:05:39 -07:00
Mura Li
6a39250579
Add length check for the return string ( #1420 )
...
* Add length check for the return string
* Differentiate error paths and logging messages
* Rectify error message
2017-03-31 16:42:23 +08:00
Andrey Nering
e6781d5488
Add unit tests for issue_watch
2017-03-30 20:20:08 -03:00
Andrey Nering
a90ffffb1a
Use variables for times
2017-03-30 19:14:16 -03:00
Andrey Nering
18952c40f8
Add copyright headers
2017-03-30 19:11:58 -03:00
Andrey Nering
caed86fc6e
Fix lint
2017-03-29 21:18:28 -03:00
Andrey Nering
cb362513f0
Add updated_unix column on issue_watch
2017-03-29 20:59:28 -03:00
Andrey Nering
aa6e949b3d
Consider issue_watchers while sending notifications
2017-03-29 20:54:57 -03:00
Andrey Nering
b674460748
Add watch button on issue
2017-03-29 20:31:47 -03:00
Andrey Nering
a0d0de7233
Create issue_watch table
2017-03-29 19:55:40 -03:00
Bo-Yi Wu
08f7fded3c
refactor: remove workaround after the golang 1.7 release. ( #1349 )
...
* refactor: remove workaround after the golang 1.7 release.
* remove unused import.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* refactor: Add remove function.
* refactor: rename
* refactor: update build flag
2017-03-29 10:05:23 +08:00
Philippe Kueck
fe94032f74
rewrite pre-commit, post-commit and options hooks ( fixes #1250 ) ( #1257 )
...
* issue #1250 , replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script
* issue #1250 , make script posix compilant
* v23, add migration script to update {pre,post}-receive and update hooks
* migration: use a more common name and rename v23 to v26 to avoid conflicts
* gofmt'ed and added copyright header
* fix SyncRepositoryHooks to also sync wiki repos
2017-03-23 09:12:51 +08:00
Lunny Xiao
d330a23ce1
fix migration failed when authorized_keys is not exist ( #1180 )
2017-03-23 00:04:31 +08:00
Kim "BKC" Carlbäcker
d349f059af
Cleaner IMO ( #1361 )
2017-03-22 22:30:40 +08:00
Antoine GIRARD
14fe9010ae
GPG commit validation ( #1150 )
...
* GPG commit validation
* Add translation
+ some little fix
* Move hash calc after retrieving of potential key + missing translation
* Add some little test
2017-03-22 18:43:54 +08:00
Sandro Santilli
f73e734411
Run "make fmt" with go-1.6 ( #1333 )
2017-03-21 08:55:00 +08:00
Lunny Xiao
888dee3b5f
fix delete user failed on sqlite ( #1321 )
2017-03-20 22:13:52 +08:00
Lunny Xiao
bd8fe49076
fix wiki bugs ( #1294 )
2017-03-20 21:36:19 +08:00
Sandro Santilli
9182a35f18
Show user OpenID URIs in their profile ( #1314 )
2017-03-20 09:31:08 +01:00
Lunny Xiao
608cd54a68
fix gpg wrong column types
2017-03-20 02:55:07 +01:00
Bo-Yi Wu
1c3bd436cc
feat: Only use issue and wiki on repo. ( #1297 )
2017-03-18 18:59:07 +08:00
Sandro Santilli
71d16f69ff
Login via OpenID-2.0 ( #618 )
2017-03-17 15:16:08 +01:00
Lunny Xiao
3cf0e513e6
fix wrong log when push to a new branch ( #1220 )
2017-03-17 10:15:00 +08:00
Sandro Santilli
447c9b428f
Send notifications to partecipants in issue comments ( #1217 )
...
* Send notifications to partecipants in issue comments
Closes #1216
Includes test (still failing)
* Do not include "labelers" to participants
Fix test to expect what GetParticipants return
2017-03-16 09:34:24 +08:00
Antoine GIRARD
ca1c3f1926
Implement GPG api ( #710 )
...
* Implement GPG API
* Better handle error
* Apply review recommendation + simplify database operations
* Remove useless comments
2017-03-16 09:27:35 +08:00
Ethan Koenig
09fe4a2ae9
Batch updates for issues ( #926 )
2017-03-15 02:10:35 +01:00
Ethan Koenig
021904e4e6
Fix typos in models/ and modules/ ( #1248 )
2017-03-15 08:52:01 +08:00
Ethan Koenig
ec0ae5d50c
Refactor and fix incorrect comment ( #1247 )
2017-03-15 08:51:46 +08:00
Sandro Santilli
8746fb3385
Fix migration comment ( #1241 )
2017-03-14 14:39:02 +08:00
Lunny Xiao
1ccdf19fae
fix forget migration for wiki hooks ( #1227 )
2017-03-13 14:27:29 +08:00
Sandro Santilli
0475e7351f
Reserve the "explore" user/org name ( #1222 )
2017-03-12 09:39:38 +08:00
Ethan Koenig
c99e7e1a62
Simplify RepositoryList.loadAttributes() ( #1211 )
2017-03-11 16:50:12 +08:00
Ethan Koenig
3803f257fb
Move user_follow to separate file ( #1210 )
...
Also add unit tests
2017-03-11 16:46:53 +08:00
Ethan Koenig
1e3548b7e7
Unit tests for issue_list ( #1209 )
2017-03-11 16:46:23 +08:00
Philippe Kueck
e2b2fd6e78
fix #1189 , commit messages containing a pipe ( #1203 )
2017-03-11 12:01:38 +08:00
Lunny Xiao
74cde12677
Fix upgrade failed after ever rollback ( #1194 )
...
* fix upgrade failed after rollback
* fix upgrade failed after rollback
* fix possible upgrade twice fail after rollback
2017-03-10 23:43:51 +08:00
Lunny Xiao
f5476bdbb1
bug fixed for delete repo failed ( #1193 )
2017-03-10 22:05:53 +08:00
Lunny Xiao
5d40db629c
fix random avatars ( #1147 )
2017-03-08 23:05:15 +08:00
Lunny Xiao
2215840363
fix avatar bug #1114 ( #1122 )
...
This PR fix the avatar bug described in #1114 . This will fix random avatar is blank problem and potential delete avatars dir problem.
2017-03-06 16:15:40 +08:00
Lunny Xiao
0376029241
fix del org avatar potential delete all avtars ( #1120 )
2017-03-06 16:07:18 +08:00
Lunny Xiao
7b64b2ddab
fix install submit crash caused by xorm log ( #1119 )
2017-03-06 10:11:43 +08:00
Bo-Yi Wu
d76d67de23
feat: expose url field on issue api. ( #982 )
...
* Add api url func.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix: Add unit testing.
* fix: conflicts
* fix: remove trim
* fix: revert test function name.
2017-03-03 22:35:42 +08:00
Lunny Xiao
ef13bbaf7d
Don't rewrite non-gitea public keys ( #906 )
...
* don't rewrite non-gitea public keys
* add comment for public key
2017-03-03 00:36:47 +08:00
Lunny Xiao
9cb08a3cf5
fix wrong num of user repos because of duplicated click delete button & performance optimization ( #1092 )
2017-03-01 12:05:45 +08:00
Ethan Koenig
d21d5fd736
Remove unnecessary loads in org_team ( #1090 )
2017-03-01 09:09:49 +08:00
Ethan Koenig
22f7aa6e9c
LableIDs -> LabelIDs ( #1088 )
2017-03-01 09:08:45 +08:00
Bo-Yi Wu
e83c8afc56
refactor: move SearchRepositoryByName testing. ( #1083 )
2017-02-28 17:58:50 +08:00
Lunny Xiao
c2eef171ff
fix some typos ( #1082 )
2017-02-28 12:56:15 +08:00
Ethan Koenig
4b286f282a
Consistency checks for action unit tests ( #1079 )
2017-02-28 09:42:10 +08:00
Ethan Koenig
cf80e19157
Optimize and unit test Issue_ReplaceLabels ( #1080 )
2017-02-28 09:35:55 +08:00
Ethan Koenig
136e6beb0f
Fix unused Engine bugs ( #1064 )
2017-02-27 10:16:35 +08:00
Lunny Xiao
e4134debd1
Remove unused vars ( #1063 )
...
* remove unused vars
* remove unused comment
2017-02-27 09:22:15 +08:00
Lunny Xiao
32faec00e6
move all repo list functions as a standalone file ( #1061 )
2017-02-27 08:45:03 +08:00
Lunny Xiao
d4e38cf129
fix setMerged for remove unnecessary db connection ( #1067 )
2017-02-27 08:42:55 +08:00
Lunny Xiao
522f194983
Bug fixed for org avatar caused by #1049 ( #1070 )
...
* bug fixed for org avatar caused by #1049
* use isfile only
2017-02-27 08:42:22 +08:00
Bo-Yi Wu
95574a3640
fix: Admin can see all private repositories on Explore page. ( #1026 )
...
* fix: Admin can see all private repositories on Explore page.
* refactor: fix session
2017-02-26 13:59:31 +08:00
Sandro Santilli
bf24099114
Allow migrating installations with no local avatars ( #1056 )
2017-02-26 11:58:02 +08:00