Commit Graph

40 Commits

Author SHA1 Message Date
GitLab Bot 4aa6fba6d8 Add latest changes from gitlab-org/gitlab@master 2023-12-21 00:13:46 +00:00
GitLab Bot 190734a48c Add latest changes from gitlab-org/gitlab@master 2023-04-25 21:16:20 +00:00
GitLab Bot 79d6dbbd46 Add latest changes from gitlab-org/gitlab@master 2022-02-17 15:18:08 +00:00
GitLab Bot 3bd9ad5574 Add latest changes from gitlab-org/gitlab@master 2021-03-25 03:09:35 +00:00
GitLab Bot 889bf7a0ee Add latest changes from gitlab-org/gitlab@master 2021-03-16 18:11:53 +00:00
GitLab Bot b4ddc24045 Add latest changes from gitlab-org/gitlab@master 2020-12-08 00:09:45 +00:00
GitLab Bot d306437ae0 Add latest changes from gitlab-org/gitlab@master 2020-12-01 03:09:24 +00:00
GitLab Bot 7379b60d2c Add latest changes from gitlab-org/gitlab@master 2020-05-21 09:08:04 +00:00
GitLab Bot 78d8830cec Add latest changes from gitlab-org/gitlab@master 2020-03-19 15:09:41 +00:00
GitLab Bot 219eead23f Add latest changes from gitlab-org/gitlab@master 2020-03-10 18:08:17 +00:00
GitLab Bot 80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
Martin Wortschack 5660690787 Externalize strings in projects controllers
- concerns
- dashboard
- groups
- import
2019-03-27 16:52:52 +00:00
gfyoung be42c05054 Enable more frozen string in app/controllers/
Enables frozen string for the following:

* app/controllers/dashboard/**/*.rb
* app/controllers/explore/**/*.rb
* app/controllers/google_api/**/*.rb
* app/controllers/groups/**/*.rb
* app/controllers/import/**/*.rb
* app/controllers/instance_statistics/**/*.rb
* app/controllers/ldap/**/*.rb
* app/controllers/oauth/**/*.rb
* app/controllers/profiles/**/*.rb

Partially addresses #47424.
2018-09-23 12:48:02 -07:00
James Lopez e72aeccdae Resolve "Unable to import repository: undefined method `import_file' for nil:NilClass" 2018-09-17 10:52:49 +00:00
Yorick Peterse cca61980d5
Track and act upon the number of executed queries
This ensures that we have more visibility in the number of SQL queries
that are executed in web requests. The current threshold is hardcoded to
100 as we will rarely (maybe once or twice) change it.

In production and development we use Sentry if enabled, in the test
environment we raise an error. This feature is also only enabled in
production/staging when running on GitLab.com as it's not very useful to
other users.
2018-02-01 17:00:46 +01:00
Jacopo 181cd299f9 Adds Rubocop rule for line break after guard clause
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
Z.J. van de Weg 036ee515d4
Port form back to use form_tag 2017-08-07 19:36:06 +02:00
Z.J. van de Weg 1d3815f89b
Allow projects to be started from a template
Started implementation for the first iteration of
gitlab-org/gitlab-ce#32420. This will allow users to select a template
to start with, instead of an empty repository in the project just
created.

Internally this is basically a small extension of the ImportExport
GitLab projects we already support. We just import a certain import
tar archive. This commits includes the first one: Ruby on Rails. In the
future more will be added.
2017-07-28 11:32:46 +02:00
Douwe Maan 4a0e8f59e2 Merge branch 'security-fix-leaking-namespace-name' into 'security'
Check that user has access to a given namespace to prevent leaking namespace names.

See merge request !2009
2016-10-24 15:49:05 +02:00
James Lopez a09e1d3dda Enable import/export back for non-admins 2016-10-03 10:53:18 +02:00
James Lopez 30f9596c61 Fix permissions check in controller, added relevant spec and updated docs 2016-08-11 16:59:37 +02:00
James Lopez 6a0bbb5aa5 using shared path for project import uploads and refactored gitlab remove export worker 2016-08-04 12:51:55 +02:00
James Lopez dad8fc242c fix 404 error, redirect back with flash message 2016-07-07 15:34:45 +02:00
James Lopez c3b6eadc33 fix params 2016-06-24 11:41:33 +02:00
James Lopez 46b89a270f Fix tmp file being deleted after the request plus some cleanup and improved erroring for this situation 2016-06-24 10:50:23 +02:00
James Lopez 4bde59341f lots of refactoring again based on feedback. Changed the UI slightly and also fixed a small bug 2016-06-15 17:31:00 +02:00
James Lopez 7019a19b8c cleanup namespace check now done by service 2016-06-15 09:08:33 +02:00
James Lopez fc5f6943f8 yay finally importing working with the new services structure 2016-06-14 21:41:40 +02:00
James Lopez ff44198e17 few fixes after refactoring the whole UI stuff 2016-06-14 21:03:14 +02:00
James Lopez b53ed84843 adapted current services stuff to use new project import, plus fixes a few issues, updated routes, etc... 2016-06-14 20:32:19 +02:00
James Lopez 9ecebaaea1 adding notifications stuff and more refactoring for exporting projects 2016-06-14 16:31:03 +02:00
James Lopez 3f7ed55011 lots of refactoring to reuse import service 2016-06-14 12:47:07 +02:00
James Lopez 903da37755 WIP - starting refactoring import/export to use services 2016-06-13 20:35:57 +02:00
James Lopez 1ee19f04fd fixed permissions 2016-05-13 17:16:24 +02:00
James Lopez 8c508037a6 updated controllers with permissions check 2016-05-13 17:03:03 +02:00
James Lopez 07ab6c2e26 refactoring and fixing a bunch of stuff 2016-05-02 11:29:21 +02:00
James Lopez 34c826a311 some JS magic to pass namespace and path importing projects 2016-04-27 15:01:55 +02:00
James Lopez cbbc42e0c4 adding more UI changes, updated controller, worker and refactored import service 2016-04-26 17:12:50 +02:00
James Lopez 1d4c3fa150 more refactoring, now using custom job for processing project imports 2016-04-26 13:01:51 +02:00
James Lopez 28b0208e93 refactoring, mainly UI stuff to follow other import actions 2016-04-26 10:59:00 +02:00