Gabriel Mazetto
f5a0ac0fc1
Codestyle: make sure we have space around operators
2016-05-13 04:46:56 -03:00
Artem Sidorenko
d6c2d6bab9
Use sign out path only if not empty
2016-05-03 22:10:49 +02:00
Robert Speicher
f583129767
Add Sentry program context even without a current user
2016-04-14 13:56:30 -04:00
Stan Hu
e450892f56
Include GonHelper separately and remove created_at in factory
2016-04-14 07:25:27 -07:00
Stan Hu
c7e384aab2
Add spec for deletion of authorized OAuth2 application
...
Closes #14370
Move gon function into its own helper
2016-04-14 07:24:58 -07:00
Robert Speicher
2378ec0d63
Add a program tag to Sentry Raven context
...
This will let us filter errors by the program environment in which they
were encountered.
Source: http://stackoverflow.com/a/28370539/223897
Closes #15092
2016-04-09 19:57:27 -04:00
Douwe Maan
ae7b2ef62c
Merge branch 'master' into issue_12658
...
# Conflicts:
# app/models/issue.rb
# app/views/projects/_home_panel.html.haml
# app/views/shared/projects/_project.html.haml
# db/schema.rb
# spec/models/project_spec.rb
2016-03-21 23:22:21 +01:00
Douwe Maan
8db1292139
Tweaks, refactoring, and specs
2016-03-20 21:04:07 +01:00
Robert Speicher
085538c2bd
Use the configured Kaminari "per page" default
2016-03-19 17:37:54 -04:00
Jacob Vosmaer
e7df3f51c9
Move method to User
2016-03-10 12:37:14 +01:00
Jacob Vosmaer
cda0b7e1b1
Rename ExpiringLock to ExclusiveLease
2016-03-10 10:41:16 +01:00
Jacob Vosmaer
acd9bc0213
Acquire lock before LDAP sync
2016-03-09 19:11:24 +01:00
Rubén Dávila and Robert Speicher
b8295fc323
Fix build and add specs
2016-02-19 13:14:53 -05:00
Robert Speicher
ae13389b0b
Provide explicit html format when rendering git_not_found page
...
Prior, if the request format was, for example, .zip, we'd get an
`ActionView::MissingTemplate` error.
2016-02-15 16:38:27 -05:00
Robert Speicher
012c75d1b0
Properly render the errors/git_not_found page
2016-02-15 15:52:39 -05:00
Josh Frye
2ad094132d
Various filter fixes
2016-02-04 13:03:41 -05:00
Josh Frye
7522ac0b3c
Paginate + ajax filter dashboard projects
2016-02-04 11:40:19 -05:00
Stan Hu and Rémy Coutable
7aa739ddc7
Support download access by PRIVATE-TOKEN header
...
Currently there is no way to download a raw file without embedding
the token in the URL, which exposes the token in the URL. There
should be an way of sending this information via the header as the
API does.
Closes https://github.com/gitlabhq/gitlabhq/issues/8137
2016-02-03 15:42:24 +01:00
Rubén Dávila
c3c92c7317
Make default sorting preference work for Issues and MRs.
2016-01-22 18:43:21 -05:00
Rubén Dávila
9ef468922c
Merge branch 'master' into issue_5546
2016-01-22 17:54:37 -05:00
Rubén Dávila
7c520c7803
Make sorting preference reusable for all projects.
2016-01-22 17:00:35 -05:00
Rubén Dávila
eccaa099d1
Make cookie suffix more simpler.
2016-01-21 15:06:07 -05:00
Rubén Dávila
0f79620ccb
Little refactor plus some specs.
2016-01-21 12:54:10 -05:00
Rubén Dávila
4d345bc400
Remember last sort option used.
2016-01-20 17:29:53 -05:00
Douwe Maan
7d347ae564
Merge branch 'master' into issue_3945
2016-01-20 20:04:15 +01:00
Douwe Maan
0ad6b44a27
Send user context to Sentry
2016-01-20 16:15:19 +01:00
Douwe Maan
c23ca0b0b5
Merge branch 'master' into issue_3945
2016-01-20 14:53:41 +01:00
Rubén Dávila
c8db25c37c
Merge branch 'master' into issue_3945
2016-01-14 17:28:44 -05:00
Rubén Dávila
df8776f480
Consider that URL can end with '/' before redirecting. #7975
2016-01-13 17:03:24 -05:00
Rubén Dávila
21b602c60a
Change strategy to highlight diffs. #3945
...
Now we apply syntax highlighting to the whole old and new files.
This basically help us to highlight adequately multiline content.
2016-01-07 22:37:01 -05:00
Yorick Peterse
9dacc3bc56
Sort by ID when sorting using "Recently created"
...
Sorting by "id" has the same effect as sorting by created_at while
performing far better and without the need of an extra index (in case
one wanted to speed up sorting by "created_at").
Sorting by "Recently updated" still uses the physical "updated_at"
column as there's no way to use the "id" column for this instead.
2016-01-07 14:53:02 +01:00
Gabriel Mazetto
1249289f89
Fixed codestyle and added 2FA documentation
2015-12-24 19:01:30 -02:00
Gabriel Mazetto
b61a5bc20c
specs for forced two-factor authentication and grace period
...
simplified code and fixed stuffs
2015-12-24 19:01:30 -02:00
Gabriel Mazetto
31fb2b7702
Grace period support for TFA
2015-12-24 19:01:30 -02:00
Gabriel Mazetto
33964469b3
WIP require two factor authentication
2015-12-24 19:00:18 -02:00
tduehr
8e3f1fa629
add CAS authentication support
2015-12-14 21:43:41 -06:00
Jeroen van Baarsen
2dec5ec990
Only redirect to homepage url when its not the root url
...
It was possible to create an infi redirect when the user set up the
`home_page_url` to redirect to the main URL of the gitlab instance.
This fix makes sure this redirect is not possible.
Fixes !1020
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com >
2015-11-02 15:42:30 +01:00
Robert Speicher
7924dd5c9f
Merge branch 'project-path-case-sensitivity' into 'master'
...
Prefer project with exact path to differently cased one when both exist.
Fixes #3113 .
See merge request !1649
2015-10-22 13:03:04 +00:00
Douwe Maan
e17e5a5ce4
Move case sensitivity check to find_with_namespace.
2015-10-21 10:09:32 +02:00
Stan Hu
9bfc531ec6
Redirect to a default path if HTTP_REFERER is not set
...
Safari 9.0 does not yet honor the HTML5 `origin-when-cross-origin` mode,
and it's possible load balancers/proxies strip the HTTP_REFERER from
the request header. In these cases, default to some default path.
Closes #3122
Closes https://github.com/gitlabhq/gitlabhq/issues/9731
2015-10-20 07:45:48 -07:00
Douwe Maan
2f7fc7e9f7
Prefer project with exact path to differently cased one when both exist.
2015-10-20 16:16:08 +02:00
Douwe Maan
c993481d99
Merge branch 'master' into git-archive-golang
2015-10-15 11:47:36 +02:00
Jacob Vosmaer
a74915a4ad
Always return HTML in git_not_found
...
This allows us to give a nice 404 for e.g. archive.zip.
2015-10-14 15:22:03 +02:00
Valery Sizov
8346dde052
Only render 404 page from /public
2015-10-13 20:12:34 +03:00
Francesco Levorato
1bbcc29687
Redirect case sensitive project path to the normalized one
2015-09-18 16:37:21 +02:00
Dmitriy Zaporozhets
0b5d627cd4
Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g
2015-09-09 14:56:02 +02:00
Dmitriy Zaporozhets
90c338a495
Move helpers back to original directory
2015-09-09 14:37:34 +02:00
Jared Szechy
e156f42079
FogBugz project import
2015-09-08 20:23:01 -04:00
Douwe Maan
30555c1d24
Merge branch 'rs-remove-user-color-scheme-class' into 'master'
...
Apply syntax highlighting to fenced code blocks client-side
Instead of applying the syntax highlighting scheme class to these blocks
server-side, we use Javascript and Gon to apply the user's color scheme
(or the default) client-side.
This will make it easier to cache these blocks in the future because
they're no longer state-dependent.
See merge request !1203
2015-08-27 16:24:51 +00:00
Douwe Maan
843694f902
Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g
2015-08-26 17:53:31 -07:00