Toon Claes
c3b1cb71f0
Override setters so it also accepts string visibility levels
...
Override the `ApplicationSetting` default visibility_level setters so
they accept strings & integers for the levels.
2017-03-02 16:31:22 +01:00
Toon Claes
260cc57838
Expose ApplicationSetting visibility settings as String
...
Use strings for the ApplicationSetting properties:
- restricted_visibility_levels
- default_project_visibility
- default_snippet_visibility
- default_group_visibility
2017-03-02 12:15:25 +01:00
Lin Jen-Shin
cfd839d6f5
Fix tests and disallow 0 to make it consistent with .gitlab-ci.yml
2017-02-15 15:31:51 +08:00
Lin Jen-Shin
53c94f9ea2
Use the same syntax for default expiration
...
Feedback:
* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23343951
* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23344036
* https://gitlab.com/gitlab-org/gitlab-ce/issues/27762#note_23344797
2017-02-15 15:31:51 +08:00
Lin Jen-Shin
d2d30cff55
Initial implementation for default artifacts expiration
...
TODO: Add tests and screenshots
2017-02-15 15:31:51 +08:00
James Edwards-Jones
b988faaf85
Merge branch 'master' into 'jej-pages-to-ce'
...
# Conflicts:
# db/schema.rb
2017-02-06 15:12:27 +00:00
Adam Niedzielski
5d3816652e
Introduce maximum session time for terminal websocket connection
...
Store the value in application settings.
Expose the value to Workhorse.
2017-02-06 11:49:30 +01:00
James Edwards-Jones
67c8526033
Ported max_pages_size in settings API to CE
2017-02-02 22:21:06 +00:00
Horacio Sanson
f986b4c4e5
Add support for PlantUML diagrams in Asciidoc.
...
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
2017-01-12 10:04:52 +00:00
Robert Schilling
ec7485de21
Grapify the settings API
2016-12-29 11:24:15 +01:00
Nick Thomas
c1388d0efb
Allow multiple repository storage shards to be enabled, and automatically round-robin between them
2016-11-04 04:01:08 +00:00
Dmitriy Zaporozhets
603ceea21a
Add tests and improve logic
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-06 16:47:19 +02:00
Dmitriy Zaporozhets
b28714b6a9
Add docs and empty specs for applicaiton settings API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-06 15:53:08 +02:00
Dmitriy Zaporozhets
c2ee6862c8
API to set application settings for admin
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-03 16:50:21 +02:00