-
- Downloads
Create idea of read-only database
In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo secondary node). But in GitLab CE it also might be useful to have the "read-only" idea around. So port it back to GitLab CE. Also having the principle of read-only in GitLab CE would hopefully lead to less errors introduced, doing write operations when there aren't allowed for read-only calls. Closes gitlab-org/gitlab-ce#37534.
Showing
- app/controllers/admin/application_controller.rb 14 additions, 0 deletionsapp/controllers/admin/application_controller.rb
- app/controllers/boards/issues_controller.rb 1 addition, 1 deletionapp/controllers/boards/issues_controller.rb
- app/controllers/projects/lfs_api_controller.rb 18 additions, 0 deletionsapp/controllers/projects/lfs_api_controller.rb
- app/controllers/projects/merge_requests/application_controller.rb 1 addition, 1 deletion...rollers/projects/merge_requests/application_controller.rb
- app/controllers/sessions_controller.rb 22 additions, 15 deletionsapp/controllers/sessions_controller.rb
- app/models/concerns/cache_markdown_field.rb 10 additions, 4 deletionsapp/models/concerns/cache_markdown_field.rb
- app/models/concerns/routable.rb 2 additions, 0 deletionsapp/models/concerns/routable.rb
- app/models/concerns/token_authenticatable.rb 3 additions, 1 deletionapp/models/concerns/token_authenticatable.rb
- app/models/merge_request.rb 1 addition, 1 deletionapp/models/merge_request.rb
- app/models/project.rb 2 additions, 2 deletionsapp/models/project.rb
- app/models/user.rb 8 additions, 0 deletionsapp/models/user.rb
- app/services/keys/last_used_service.rb 2 additions, 0 deletionsapp/services/keys/last_used_service.rb
- app/services/users/activity_service.rb 1 addition, 1 deletionapp/services/users/activity_service.rb
- changelogs/unreleased/tc-geo-read-only-idea.yml 5 additions, 0 deletionschangelogs/unreleased/tc-geo-read-only-idea.yml
- config/application.rb 3 additions, 0 deletionsconfig/application.rb
- doc/development/verifying_database_capabilities.md 12 additions, 0 deletionsdoc/development/verifying_database_capabilities.md
- lib/banzai/renderer.rb 1 addition, 6 deletionslib/banzai/renderer.rb
- lib/gitlab/database.rb 9 additions, 0 deletionslib/gitlab/database.rb
- lib/gitlab/git_access.rb 7 additions, 2 deletionslib/gitlab/git_access.rb
- lib/gitlab/git_access_wiki.rb 5 additions, 0 deletionslib/gitlab/git_access_wiki.rb
Please register or sign in to comment