Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-23Enable Rails/DelegateDouwe Maan
2017-01-27Move ApplicationSetting DEFAULTS to `.defaults` insteadRémy Coutable
This will avoid autoloading issues in the long term. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-23Rescue from ActiveRecord::UnknownAttributeError and fallback to fake settingsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-23Revert "Merge branch 'revert-9cac0317' into 'master' "Grzegorz Bizon
This reverts commit c20934869f7dc8cfbdbafb6ecb7b1305452c9e8a, reversing changes made to 4b7ec44b91e0571d209c790d54947ba1756dac0e.
2017-01-22Revert "Merge branch 'dont-persist-application-settings-in-test-env' into ↵Grzegorz Bizon
'master'" This reverts merge request !8573
2017-01-21Revert "Merge branch 'backport-fix-load-error' into 'master'"Stan Hu
This reverts merge request !8671
2017-01-20Don't define ApplicationSetting defaults in a constantRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-15Don't persist ApplicationSetting in test envRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-15Move default values to ApplicationSetting::DEFAULTS and use it in ↵Rémy Coutable
CurrentSettings Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-12Add support for PlantUML diagrams in Asciidoc.Horacio Sanson
This MR enables rendering of PlantUML diagrams in Asciidoc documents. To add a PlantUML diagram all we need is to include a plantuml block like: ``` [plantuml, id="myDiagram", width="100px", height="100px"] -- bob -> alice : ping alice -> bob : pong -- ``` The plantuml block is substituted by an HTML img element with *src* pointing to an external PlantUML server. This MR also add a PlantUML integration section to the Administrator -> Settings page to configure the PlantUML rendering service and to enable/disable it. Closes: #17603
2016-12-19Rename Gogs to Gitea, DRY the controller and improve viewsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-19Gogs ImporterKim "BKC" Carlbäcker
2016-11-13Only turn on Sidekiq throttling if application settings existsStan Hu
If the database has not been migrated properly, the initializer for Sidekiq will fail to start and cause the whole Rails server to crash. This change checks the existence for the column and allows Rails to start even if the setting has not been added as a database column. Closes #24452
2016-11-10Allow the Sidekiq queues to throttle and the factor by which to throttle ↵Patricio Cano
them to be configurable
2016-11-10Allow certain Sidekiq jobs to be throttledPatricio Cano
2016-09-23Remove use of `USE_DB` environment variable in codeGrzegorz Bizon
2016-09-22Update `CurrentSettings` class that uses ENVGrzegorz Bizon
2016-08-25Remove gitoriousZ.J. van de Weg
2016-08-19Support integration with Koding (online IDE)Gokmen Goksel
Koding: #index: landing page for Koding integration If enabled it will provide a link to open remote Koding instance url for now we are also providing the sneak preview video for how integration works in detail. Repository: check whether .koding.yml file exists on repository Projects: landing page: show Run in IDE (Koding) button if repo has stack file Projects: MR: show Run in IDE Koding button if repo has stack file on active branch ProjectHelpers: add_koding_stack: stack generator for provided project With this helper we will auto-generate the required stack template for a given project. For the feature we can request this base template from the running Koding instance on integration. Currently this will provide users to create a t2.nano instance on aws and it'll automatically configures the instance for basic requirements. Projects: empty state and landing page provide shortcuts to create stack projects_helper: use branch on checkout and provide an entry point This ${var.koding_queryString_branch} will be replaced with the branch provided in query string which will allow us to use same stack template for different branches of the same repository. ref: https://github.com/koding/koding/pull/8597/commits/b8c0e43c4c24bf132670aa8a3cfb0d634acfd09b projects_helper: provide sha info in query string to use existing vms With this change we'll be able to query existing vms on Koding side based on the commit id that they've created. ref: https://github.com/koding/koding/pull/8597/commits/1d630fadf31963fa6ccd3bed92e526761a30a343 Integration: Docs: Koding documentation added Disable /koding route if integration is disabled Use application settings to enable Koding Projects_helper: better indentation with strip_heredoc usage Projects_helper: return koding_url as is if there is no project provided current_settings: set koding_enabled: false by default Koding_Controller: to render not_found once integration is disabled Dashboard_specs: update spec for Koding enabled case Projects_Helper: make repo dynamic ref: https://github.com/koding/koding/pull/8597/commits/4d615242f45aaea4c4986be84ecc612b0bb1514c Updated documentation to have right format
2016-07-19Refactor and rename `restricted_signup_domains` to `domain_whitelist` to ↵Patricio Cano
better conform to its behavior and newly introduced behavior.
2016-07-07Added setting to set new users by default as externalDravere
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-06-30Handle case when Redis cache returns an empty settingStan Hu
2016-06-30Fix database migrations when Redis is not runningStan Hu
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-17a few changes based on MR feedbackJames Lopez
2016-06-13Merge branches 'feature/project-export-ui-experimental' and ↵James Lopez
'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-08Allow custom text on 'almost there' pageSean McGivern
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-01Merge branch 'current-settings-use-request-store-during-request'Douwe Maan
2016-05-31Add Application Setting to configure Container Registry token expire delay ↵Kamil Trzcinski
(default 5min)
2016-05-29Try and use cache for application settings even when the db is not connectedDJ Mountney
2016-05-28Only use RequestStore for current_application_settings during a requestDJ Mountney
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-04-22gitlab import UI - icon, file selector, etc... Also updated font-awesome and ↵James Lopez
modified import source settings.
2016-04-12Add a 'circuit breaker' for repo checksJacob Vosmaer
2016-04-01Remove "Congratulations!" tweet button on newly-created project.connorshea
I’ve removed everything related to the feature based on this commit: ce08f919f34fd8849834365 Resolves #10857.
2016-02-08Fix CurrentSettings autoload bug in development.Jason Lee
Error: A copy of Gitlab::CurrentSettings has been removed from the module tree but is still active
2016-02-02Support Akismet spam checking for creation of issues via APIStan Hu
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-01-28Use ActiveRecord::Base.connection.active? and rescue any exception in ↵Rémy Coutable
connect_to_db? This ensures that rake tasks that don't need a DB connection can be run without one.
2016-01-28Only create the defaults ApplicationSetting when DB is fully migratedRémy Coutable
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-26Ensure rake tasks that don't need a DB connection can be run without oneRémy Coutable
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-25Fix preventing migration from crashing in very specific casesRémy Coutable
See https://gitlab.com/gitlab-org/gitlab-ce/issues/12606 for details
2016-01-19Ensure that doesn't have pending migrations when running the specsDouglas Barbosa Alexandre
2016-01-08Handle missing DBs in connect_to_db?Yorick Peterse
This ensures CurrentSettings#connect_to_db? returns "false" in the event of a database not existing, instead of raising an error.
2015-12-30Make sure that is no pending migrations in Gitlab::CurrentSettingsDouglas Barbosa Alexandre
2015-11-23Expose artifacts pathKamil Trzcinski
2015-11-10Implement Build ArtifactsKamil Trzcinski
- Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
2015-11-05Enable shared runners for all new projectsKamil Trzcinski
2015-09-01Added USE_DB env var to allow loading fake settings without db running.Marin Jankovski
2015-08-28fixed connection detection so settings can be read from the databaseEric Maziade
2015-08-20Import sources: settings in the admin interfaceArtem Sidorenko
2015-06-11session_expire_seconds => session_expire_delaythemaze75
delay is in seconds more legible code in session_store Added `GitLab restart required` help block to session_expire_delay
2015-06-05Add session expiration delay configuration through UI applicationEric Maziade
settings