Dravere
a0a9494e4e
Added setting to set new users by default as external
...
As requested by the issue #14508 this adds an option in the application
settings to set newly registered users by default as external. The
default setting is set to false to stay backward compatible.
2016-07-07 19:21:18 +02:00
Stan Hu
d10642a4b8
Handle case when Redis cache returns an empty setting
2016-06-29 14:28:41 -07:00
Stan Hu
c600cf8348
Fix database migrations when Redis is not running
...
If Redis were not running or USE_DB were set to false, the
application settings retrieval would fail completely. This
change only attempts to use the cache if the system actually
wants to connect to the DB and rescues any failures in talking to
Redis.
Closes #17557
2016-06-29 14:04:59 -07:00
James Lopez
2d4556c5d2
a few changes based on MR feedback
2016-06-17 15:47:00 +02:00
James Lopez
e83fc684a5
Merge branches 'feature/project-export-ui-experimental' and 'feature/project-import' of gitlab.com:gitlab-org/gitlab-ce into feature/project-export-ui-experimental
...
# Conflicts:
# Gemfile.lock
# app/helpers/todos_helper.rb
# app/models/todo.rb
# app/views/projects/edit.html.haml
# lib/gitlab/import_export/import_service.rb
2016-06-13 14:00:19 +02:00
Sean McGivern
40b6d9064a
Allow custom text on 'almost there' page
...
Add a new application setting, after_sign_up_text. This is text to be
rendered as Markdown and shown on the 'almost there' page after a user
signs up, but before they've confirmed their account.
Tweak the styles for that page so that centered lists look reasonable.
2016-06-08 19:08:53 +01:00
Douwe Maan
4a50e1f051
Merge branch 'current-settings-use-request-store-during-request'
2016-06-01 12:55:00 +02:00
Kamil Trzcinski
846d111f1d
Add Application Setting to configure Container Registry token expire delay (default 5min)
2016-05-31 13:23:13 +02:00
DJ Mountney
c8eb1dccab
Try and use cache for application settings even when the db is not connected
2016-05-29 12:53:30 -07:00
DJ Mountney
78d8458773
Only use RequestStore for current_application_settings during a request
...
This fixes an issue where the RequestStore was being populated with the settings in the unicorn master
during the rails initializers. Each forked worker would then start their first request with an uncleaned RequestStore.
2016-05-27 14:28:04 -07:00
James Lopez
acf297955a
gitlab import UI - icon, file selector, etc... Also updated font-awesome and modified import source settings.
2016-04-22 17:44:59 +02:00
Jacob Vosmaer
97f4ffff1e
Add a 'circuit breaker' for repo checks
2016-04-12 17:07:54 +02:00
connorshea
85cc172959
Remove "Congratulations!" tweet button on newly-created project.
...
I’ve removed everything related to the feature based on this commit:
ce08f919f34fd8849834365
Resolves #10857 .
2016-03-31 17:09:36 -06:00
Jason Lee
e4d276816a
Fix CurrentSettings autoload bug in development.
...
Error: A copy of Gitlab::CurrentSettings has been removed from the module tree but is still active
2016-02-08 15:28:48 +01:00
Stan Hu
d20e75a8d8
Support Akismet spam checking for creation of issues via API
...
Currently any spam detected by Akismet by non-members via API will be logged
in a separate table in the admin page.
Closes #5612
2016-02-02 11:25:44 -02:00
Rémy Coutable
55ab92c00b
Use ActiveRecord::Base.connection.active? and rescue any exception in connect_to_db?
...
This ensures that rake tasks that don't need a DB connection can be run
without one.
2016-01-28 12:23:37 +01:00
Rémy Coutable
869b4d7c6a
Only create the defaults ApplicationSetting when DB is fully migrated
...
Return a fake application settings OpenStruct when this is not the case.
Also, use ActiveRecord::Base.connection_pool.active_connection? instead
of ActiveRecord::Base.connection.active? to avoid driver exception.
2016-01-28 11:26:28 +01:00
Rémy Coutable
e6f3fe5d3b
Ensure rake tasks that don't need a DB connection can be run without one
...
When using ActiveRecord::Base.connection.active? without a DB
connection, we get a "PG::ConnectionBad: could not connect to server"
error because ActiveRecord::Base.connection doesn't exist. By using
ActiveRecord::Base.connected? we ensure we don't get this error if
the connection is missing, which is the all point of the
Gitlab::CurrentSettings#connect_to_db? method!
2016-01-26 15:11:15 +01:00
Rémy Coutable
cd22da3ebd
Fix preventing migration from crashing in very specific cases
...
See https://gitlab.com/gitlab-org/gitlab-ce/issues/12606 for details
2016-01-25 20:00:59 +01:00
Douglas Barbosa Alexandre
bddef293d6
Ensure that doesn't have pending migrations when running the specs
2016-01-19 00:12:30 -02:00
Yorick Peterse
8d7a968d6d
Handle missing DBs in connect_to_db?
...
This ensures CurrentSettings#connect_to_db? returns "false" in the event
of a database not existing, instead of raising an error.
2016-01-08 14:31:39 +01:00
Douglas Barbosa Alexandre
ff98c631c1
Make sure that is no pending migrations in Gitlab::CurrentSettings
2015-12-30 14:26:54 -02:00
Kamil Trzcinski
11728b50f9
Expose artifacts path
2015-11-23 13:05:22 +01:00
Kamil Trzcinski
d0e3e823a2
Implement Build Artifacts
...
- Offloads uploading to GitLab Workhorse
- Use /authorize request for fast uploading
- Added backup recipes for artifacts
- Support download acceleration using X-Sendfile
2015-11-10 12:51:50 +01:00
Kamil Trzcinski
b18671a1b2
Enable shared runners for all new projects
2015-11-05 17:02:02 +01:00
Marin Jankovski
3a8773fb2f
Added USE_DB env var to allow loading fake settings without db running.
2015-09-01 17:49:16 +02:00
Eric Maziade
23aee0ca8a
fixed connection detection so settings can be read from the database
2015-08-27 21:21:31 -04:00
Artem Sidorenko
55dca86b98
Import sources: settings in the admin interface
2015-08-20 11:28:27 +02:00
themaze75
1d080f5745
session_expire_seconds => session_expire_delay
...
delay is in seconds
more legible code in session_store
Added `GitLab restart required` help block to session_expire_delay
2015-06-10 22:10:00 -04:00
Eric Maziade
84a414fe53
Add session expiration delay configuration through UI application
...
settings
2015-06-05 11:50:37 -04:00
Stan Hu
dfd256f29e
Support configurable attachment size via Application Settings
...
Fix bug where error messages from Dropzone would not be displayed on the issues page
Closes #1258
2015-04-02 00:04:08 -07:00
Vinnie Okada
cacac147de
Move restricted visibility settings to the UI
...
Add checkboxes to the application settings page for restricted
visibility levels, and remove those settings from gitlab.yml.
2015-03-07 13:11:08 -07:00
Dmitriy Zaporozhets
a8a328b151
DB performance improvements to GitLab
2015-02-18 00:16:42 -08:00
Marco Wessel
afce47923c
actually fix indentation
2015-01-25 18:38:35 +01:00
Marco Wessel
b20fc14133
Fix indentation
2015-01-25 18:34:02 +01:00
Marco Wessel
aad6ceaef9
Allow configuring protection of the default branch upon first push
2015-01-25 17:09:10 +01:00
DJ Mountney
02d8575a61
Check for database connection before loading current application settings
2015-01-14 16:23:46 -08:00
Marin Jankovski
e348af1d4c
Rescue database error in application settings if the database still doesn't exist.
2015-01-14 09:03:25 +01:00
Jacob Vosmaer
bc95576e2c
Rescue missing database errors
...
While loading the Rails app we cannot assume that the gitlabhq_xxx
database exists already. If we do, `rake gitlab:setup` breaks!
This is a quick hack to make sure that fresh development setups of
GitLab (from master) will work again.
2015-01-09 11:26:26 +01:00
Dmitriy Zaporozhets
d0a50985ec
Create ApplicationSettings if does not exist in runtime
2015-01-08 11:26:16 -08:00
Dmitriy Zaporozhets
8133e44998
Hack for migrating to new settings
2015-01-08 10:30:35 -08:00
Dmitriy Zaporozhets
57a65ede77
Improve application settings and write tests
2015-01-08 09:53:35 -08:00