Show More
@@ -0,0 +1,28 b'' | |||||
|
1 | .. _repo-admin-set: | |||
|
2 | .. _permissions-info-add-group-ref: | |||
|
3 | ||||
|
4 | Repository Administration | |||
|
5 | ========================= | |||
|
6 | ||||
|
7 | Repository permissions in |RCE| can be managed in a number of different ways. | |||
|
8 | This overview should give you an insight into how you could adopt particular | |||
|
9 | settings for your needs: | |||
|
10 | ||||
|
11 | * Global |repo| permissions: This allows you to set the default permissions | |||
|
12 | for each new |repo| created within |RCE|, see :ref:`repo-default-ref`. All | |||
|
13 | |repos| created will inherit these permissions unless explicitly configured. | |||
|
14 | * Individual |repo| permissions: To set individual |repo| permissions, | |||
|
15 | see :ref:`set-repo-perms`. | |||
|
16 | * Repository Group permissions: This allows you to define the permissions for | |||
|
17 | a group, and all |repos| created within that group will inherit the same | |||
|
18 | permissions. | |||
|
19 | ||||
|
20 | .. toctree:: | |||
|
21 | ||||
|
22 | repo_admin/repo-perm-steps | |||
|
23 | repo_admin/repo-extra-fields | |||
|
24 | repo_admin/repo-hooks | |||
|
25 | repo_admin/repo-issue-tracker | |||
|
26 | repo_admin/repo-vcs | |||
|
27 | repo_admin/restore-deleted-repositories | |||
|
28 | repo_admin/repo-admin-tasks No newline at end of file |
@@ -0,0 +1,24 b'' | |||||
|
1 | .. _repo-admin-tasks: | |||
|
2 | ||||
|
3 | Common Admin Tasks for Repositories | |||
|
4 | ----------------------------------- | |||
|
5 | ||||
|
6 | ||||
|
7 | Manually Force Delete Repository | |||
|
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
|
9 | ||||
|
10 | In case of attached forks or pull-requests repositories should be archived. | |||
|
11 | Here is how to force delete a repository and remove all dependent objects | |||
|
12 | ||||
|
13 | ||||
|
14 | .. code-block:: bash | |||
|
15 | ||||
|
16 | # starts the ishell interactive prompt | |||
|
17 | $ rccontrol ishell enterprise-1 | |||
|
18 | ||||
|
19 | .. code-block:: python | |||
|
20 | ||||
|
21 | In [4]: from rhodecode.model.repo import RepoModel | |||
|
22 | In [3]: repo = Repository.get_by_repo_name('test_repos/repo_with_prs') | |||
|
23 | In [5]: RepoModel().delete(repo, forks='detach', pull_requests='delete') | |||
|
24 | In [6]: Session().commit() |
@@ -0,0 +1,35 b'' | |||||
|
1 | .. _search-methods-ref: | |||
|
2 | ||||
|
3 | search methods | |||
|
4 | ============== | |||
|
5 | ||||
|
6 | search | |||
|
7 | ------ | |||
|
8 | ||||
|
9 | .. py:function:: search(apiuser, search_query, search_type, page_limit=<Optional:10>, page=<Optional:1>, search_sort=<Optional:'newfirst'>, repo_name=<Optional:None>, repo_group_name=<Optional:None>) | |||
|
10 | ||||
|
11 | Fetch Full Text Search results using API. | |||
|
12 | ||||
|
13 | :param apiuser: This is filled automatically from the |authtoken|. | |||
|
14 | :type apiuser: AuthUser | |||
|
15 | :param search_query: Search query. | |||
|
16 | :type search_query: str | |||
|
17 | :param search_type: Search type. The following are valid options: | |||
|
18 | * commit | |||
|
19 | * content | |||
|
20 | * path | |||
|
21 | :type search_type: str | |||
|
22 | :param page_limit: Page item limit, from 1 to 500. Default 10 items. | |||
|
23 | :type page_limit: Optional(int) | |||
|
24 | :param page: Page number. Default first page. | |||
|
25 | :type page: Optional(int) | |||
|
26 | :param search_sort: Search sort order. Default newfirst. The following are valid options: | |||
|
27 | * newfirst | |||
|
28 | * oldfirst | |||
|
29 | :type search_sort: Optional(str) | |||
|
30 | :param repo_name: Filter by one repo. Default is all. | |||
|
31 | :type repo_name: Optional(str) | |||
|
32 | :param repo_group_name: Filter by one repo group. Default is all. | |||
|
33 | :type repo_group_name: Optional(str) | |||
|
34 | ||||
|
35 |
@@ -29,7 +29,7 b' 1. Go to :menuselection:`Admin --> Repos' | |||||
29 | beside the |repo| to which you wish to add extra fields. |
|
29 | beside the |repo| to which you wish to add extra fields. | |
30 | 2. On the |repo| settings page, select the :guilabel:`Extra fields` tab. |
|
30 | 2. On the |repo| settings page, select the :guilabel:`Extra fields` tab. | |
31 |
|
31 | |||
32 | .. image:: ../images/extra-repo-fields.png |
|
32 | .. image:: ../../images/extra-repo-fields.png | |
33 |
|
33 | |||
34 | The most important is the `New field key` variable which under the value will |
|
34 | The most important is the `New field key` variable which under the value will | |
35 | be stored. It needs to be unique for each repository. The label and description |
|
35 | be stored. It needs to be unique for each repository. The label and description |
1 | NO CONTENT: file renamed from docs/admin/repo-hooks.rst to docs/admin/repo_admin/repo-hooks.rst |
|
NO CONTENT: file renamed from docs/admin/repo-hooks.rst to docs/admin/repo_admin/repo-hooks.rst |
1 | NO CONTENT: file renamed from docs/admin/repo-issue-tracker.rst to docs/admin/repo_admin/repo-issue-tracker.rst |
|
NO CONTENT: file renamed from docs/admin/repo-issue-tracker.rst to docs/admin/repo_admin/repo-issue-tracker.rst |
1 | NO CONTENT: file renamed from docs/admin/repo-perm-steps.rst to docs/admin/repo_admin/repo-perm-steps.rst |
|
NO CONTENT: file renamed from docs/admin/repo-perm-steps.rst to docs/admin/repo_admin/repo-perm-steps.rst |
1 | NO CONTENT: file renamed from docs/admin/repo-vcs.rst to docs/admin/repo_admin/repo-vcs.rst |
|
NO CONTENT: file renamed from docs/admin/repo-vcs.rst to docs/admin/repo_admin/repo-vcs.rst |
1 | NO CONTENT: file renamed from docs/admin/restore-deleted-repositories.rst to docs/admin/repo_admin/restore-deleted-repositories.rst |
|
NO CONTENT: file renamed from docs/admin/restore-deleted-repositories.rst to docs/admin/repo_admin/restore-deleted-repositories.rst |
@@ -16,19 +16,17 b' The following are the most common system' | |||||
16 |
|
16 | |||
17 | .. toctree:: |
|
17 | .. toctree:: | |
18 |
|
18 | |||
19 | config-files-overview |
|
19 | system_admin/config-files-overview | |
20 | vcs-server |
|
20 | system_admin/vcs-server | |
21 | svn-http |
|
21 | system_admin/svn-http | |
22 | svn-path-permissions |
|
22 | system_admin/svn-path-permissions | |
23 | gunicorn-ssl-support |
|
23 | system_admin/gunicorn-ssl-support | |
24 | apache-config |
|
24 | system_admin/apache-config | |
25 | nginx-config |
|
25 | system_admin/nginx-config | |
26 | backup-restore |
|
26 | system_admin/backup-restore | |
27 | tuning-rhodecode |
|
27 | system_admin/tuning-rhodecode | |
28 | indexing |
|
28 | system_admin/indexing | |
29 | reset-information |
|
29 | system_admin/reset-information | |
30 | enable-debug |
|
30 | system_admin/enable-debug | |
31 | admin-tricks |
|
31 | system_admin/admin-tricks | |
32 | cleanup-cmds |
|
32 | system_admin/cleanup-cmds | |
33 | restore-deleted-repositories |
|
|||
34 |
|
@@ -57,7 +57,7 b' 2. To add a message that will be display' | |||||
57 | 3. Select :guilabel:`Save`, and you will see the message once your page |
|
57 | 3. Select :guilabel:`Save`, and you will see the message once your page | |
58 | refreshes. |
|
58 | refreshes. | |
59 |
|
59 | |||
60 | .. image:: ../images/server-wide-announcement.png |
|
60 | .. image:: ../../images/server-wide-announcement.png | |
61 | :alt: Server Wide Announcement |
|
61 | :alt: Server Wide Announcement | |
62 |
|
62 | |||
63 | .. _md-rst: |
|
63 | .. _md-rst: | |
@@ -207,7 +207,7 b' 2. Restart the |RCE| instance and check ' | |||||
207 | Instance "enterprise-2" successfully stopped. |
|
207 | Instance "enterprise-2" successfully stopped. | |
208 | Instance "enterprise-2" successfully started. |
|
208 | Instance "enterprise-2" successfully started. | |
209 |
|
209 | |||
210 | .. image:: ../images/language.png |
|
210 | .. image:: ../../images/language.png | |
211 |
|
211 | |||
212 | .. _set-repo-pub: |
|
212 | .. _set-repo-pub: | |
213 |
|
213 |
@@ -8,7 +8,7 b' the information in the following section' | |||||
8 |
|
8 | |||
9 | .. toctree:: |
|
9 | .. toctree:: | |
10 |
|
10 | |||
11 | apache-conf-example |
|
11 | apache/apache-conf-example | |
12 | apache-diffie-hellman |
|
12 | apache/apache-diffie-hellman | |
13 | apache-subdirectory |
|
13 | apache/apache-subdirectory | |
14 | apache-wsgi-coding |
|
14 | apache/apache-wsgi-coding |
1 | NO CONTENT: file renamed from docs/admin/apache-conf-example.rst to docs/admin/system_admin/apache/apache-conf-example.rst |
|
NO CONTENT: file renamed from docs/admin/apache-conf-example.rst to docs/admin/system_admin/apache/apache-conf-example.rst |
1 | NO CONTENT: file renamed from docs/admin/apache-diffie-hellman.rst to docs/admin/system_admin/apache/apache-diffie-hellman.rst |
|
NO CONTENT: file renamed from docs/admin/apache-diffie-hellman.rst to docs/admin/system_admin/apache/apache-diffie-hellman.rst |
1 | NO CONTENT: file renamed from docs/admin/apache-subdirectory.rst to docs/admin/system_admin/apache/apache-subdirectory.rst |
|
NO CONTENT: file renamed from docs/admin/apache-subdirectory.rst to docs/admin/system_admin/apache/apache-subdirectory.rst |
1 | NO CONTENT: file renamed from docs/admin/apache-wsgi-coding.rst to docs/admin/system_admin/apache/apache-wsgi-coding.rst |
|
NO CONTENT: file renamed from docs/admin/apache-wsgi-coding.rst to docs/admin/system_admin/apache/apache-wsgi-coding.rst |
1 | NO CONTENT: file renamed from docs/admin/backup-restore.rst to docs/admin/system_admin/backup-restore.rst |
|
NO CONTENT: file renamed from docs/admin/backup-restore.rst to docs/admin/system_admin/backup-restore.rst |
1 | NO CONTENT: file renamed from docs/admin/cleanup-cmds.rst to docs/admin/system_admin/cleanup-cmds.rst |
|
NO CONTENT: file renamed from docs/admin/cleanup-cmds.rst to docs/admin/system_admin/cleanup-cmds.rst |
1 | NO CONTENT: file renamed from docs/admin/config-files-overview.rst to docs/admin/system_admin/config-files-overview.rst |
|
NO CONTENT: file renamed from docs/admin/config-files-overview.rst to docs/admin/system_admin/config-files-overview.rst |
1 | NO CONTENT: file renamed from docs/admin/enable-debug.rst to docs/admin/system_admin/enable-debug.rst |
|
NO CONTENT: file renamed from docs/admin/enable-debug.rst to docs/admin/system_admin/enable-debug.rst |
1 | NO CONTENT: file renamed from docs/admin/gunicorn-ssl-support.rst to docs/admin/system_admin/gunicorn-ssl-support.rst |
|
NO CONTENT: file renamed from docs/admin/gunicorn-ssl-support.rst to docs/admin/system_admin/gunicorn-ssl-support.rst |
1 | NO CONTENT: file renamed from docs/admin/indexing.rst to docs/admin/system_admin/indexing.rst |
|
NO CONTENT: file renamed from docs/admin/indexing.rst to docs/admin/system_admin/indexing.rst |
@@ -8,7 +8,7 b' the information in the following section' | |||||
8 |
|
8 | |||
9 | .. toctree:: |
|
9 | .. toctree:: | |
10 |
|
10 | |||
11 | nginx-config-example |
|
11 | nginx/nginx-config-example | |
12 | nginx-diffie-hellman |
|
12 | nginx/nginx-diffie-hellman | |
13 | nginx-proxy-conf |
|
13 | nginx/nginx-proxy-conf | |
14 | nginx-url-prefix |
|
14 | nginx/nginx-url-prefix |
1 | NO CONTENT: file renamed from docs/admin/nginx-config-example.rst to docs/admin/system_admin/nginx/nginx-config-example.rst |
|
NO CONTENT: file renamed from docs/admin/nginx-config-example.rst to docs/admin/system_admin/nginx/nginx-config-example.rst |
1 | NO CONTENT: file renamed from docs/admin/nginx-diffie-hellman.rst to docs/admin/system_admin/nginx/nginx-diffie-hellman.rst |
|
NO CONTENT: file renamed from docs/admin/nginx-diffie-hellman.rst to docs/admin/system_admin/nginx/nginx-diffie-hellman.rst |
1 | NO CONTENT: file renamed from docs/admin/nginx-proxy-conf.rst to docs/admin/system_admin/nginx/nginx-proxy-conf.rst |
|
NO CONTENT: file renamed from docs/admin/nginx-proxy-conf.rst to docs/admin/system_admin/nginx/nginx-proxy-conf.rst |
1 | NO CONTENT: file renamed from docs/admin/nginx-url-prefix.rst to docs/admin/system_admin/nginx/nginx-url-prefix.rst |
|
NO CONTENT: file renamed from docs/admin/nginx-url-prefix.rst to docs/admin/system_admin/nginx/nginx-url-prefix.rst |
1 | NO CONTENT: file renamed from docs/admin/reset-information.rst to docs/admin/system_admin/reset-information.rst |
|
NO CONTENT: file renamed from docs/admin/reset-information.rst to docs/admin/system_admin/reset-information.rst |
1 | NO CONTENT: file renamed from docs/admin/svn-http.rst to docs/admin/system_admin/svn-http.rst |
|
NO CONTENT: file renamed from docs/admin/svn-http.rst to docs/admin/system_admin/svn-http.rst |
1 | NO CONTENT: file renamed from docs/admin/svn-path-permissions.rst to docs/admin/system_admin/svn-path-permissions.rst |
|
NO CONTENT: file renamed from docs/admin/svn-path-permissions.rst to docs/admin/system_admin/svn-path-permissions.rst |
@@ -8,14 +8,14 b' may find some of the following methods u' | |||||
8 |
|
8 | |||
9 | .. toctree:: |
|
9 | .. toctree:: | |
10 |
|
10 | |||
11 | tuning-gunicorn |
|
11 | tuning/tuning-gunicorn | |
12 | tuning-vcs-memory-cache |
|
12 | tuning/tuning-vcs-memory-cache | |
13 | tuning-user-sessions-performance |
|
13 | tuning/tuning-user-sessions-performance | |
14 | tuning-increase-db-performance |
|
14 | tuning/tuning-increase-db-performance | |
15 | tuning-scale-horizontally-cluster |
|
15 | tuning/tuning-scale-horizontally-cluster | |
16 | tuning-mount-cache-memory |
|
16 | tuning/tuning-mount-cache-memory | |
17 | tuning-change-encoding |
|
17 | tuning/tuning-change-encoding | |
18 | tuning-change-large-file-dir |
|
18 | tuning/tuning-change-large-file-dir | |
19 | tuning-change-lfs-dir |
|
19 | tuning/tuning-change-lfs-dir | |
20 | tuning-hg-auth-loop |
|
20 | tuning/tuning-hg-auth-loop | |
21 |
|
21 |
1 | NO CONTENT: file renamed from docs/admin/tuning-change-encoding.rst to docs/admin/system_admin/tuning/tuning-change-encoding.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-change-encoding.rst to docs/admin/system_admin/tuning/tuning-change-encoding.rst |
1 | NO CONTENT: file renamed from docs/admin/tuning-change-large-file-dir.rst to docs/admin/system_admin/tuning/tuning-change-large-file-dir.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-change-large-file-dir.rst to docs/admin/system_admin/tuning/tuning-change-large-file-dir.rst |
1 | NO CONTENT: file renamed from docs/admin/tuning-change-lfs-dir.rst to docs/admin/system_admin/tuning/tuning-change-lfs-dir.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-change-lfs-dir.rst to docs/admin/system_admin/tuning/tuning-change-lfs-dir.rst |
@@ -42,7 +42,7 b' 2. In the ``[server:main]`` section, cha' | |||||
42 | ## restarted, could prevent memory leaks |
|
42 | ## restarted, could prevent memory leaks | |
43 | max_requests = 1000 |
|
43 | max_requests = 1000 | |
44 | max_requests_jitter = 30 |
|
44 | max_requests_jitter = 30 | |
45 | ## amount of time a worker can spend with handling a request before it |
|
45 | ## amount of time a worker can spend with handling a request tuning-change-lfs-dir.before it | |
46 | ## gets killed and restarted. Set to 6hrs |
|
46 | ## gets killed and restarted. Set to 6hrs | |
47 | timeout = 21600 |
|
47 | timeout = 21600 | |
48 |
|
48 |
1 | NO CONTENT: file renamed from docs/admin/tuning-hg-auth-loop.rst to docs/admin/system_admin/tuning/tuning-hg-auth-loop.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-hg-auth-loop.rst to docs/admin/system_admin/tuning/tuning-hg-auth-loop.rst |
1 | NO CONTENT: file renamed from docs/admin/tuning-increase-db-performance.rst to docs/admin/system_admin/tuning/tuning-increase-db-performance.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-increase-db-performance.rst to docs/admin/system_admin/tuning/tuning-increase-db-performance.rst |
1 | NO CONTENT: file renamed from docs/admin/tuning-mount-cache-memory.rst to docs/admin/system_admin/tuning/tuning-mount-cache-memory.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-mount-cache-memory.rst to docs/admin/system_admin/tuning/tuning-mount-cache-memory.rst |
1 | NO CONTENT: file renamed from docs/admin/tuning-scale-horizontally-cluster.rst to docs/admin/system_admin/tuning/tuning-scale-horizontally-cluster.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-scale-horizontally-cluster.rst to docs/admin/system_admin/tuning/tuning-scale-horizontally-cluster.rst |
1 | NO CONTENT: file renamed from docs/admin/tuning-user-sessions-performance.rst to docs/admin/system_admin/tuning/tuning-user-sessions-performance.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-user-sessions-performance.rst to docs/admin/system_admin/tuning/tuning-user-sessions-performance.rst |
1 | NO CONTENT: file renamed from docs/admin/tuning-vcs-memory-cache.rst to docs/admin/system_admin/tuning/tuning-vcs-memory-cache.rst |
|
NO CONTENT: file renamed from docs/admin/tuning-vcs-memory-cache.rst to docs/admin/system_admin/tuning/tuning-vcs-memory-cache.rst |
1 | NO CONTENT: file renamed from docs/admin/vcs-server.rst to docs/admin/system_admin/vcs-server.rst |
|
NO CONTENT: file renamed from docs/admin/vcs-server.rst to docs/admin/system_admin/vcs-server.rst |
@@ -204,6 +204,7 b' are not required in args.' | |||||
204 | methods/pull-request-methods |
|
204 | methods/pull-request-methods | |
205 | methods/repo-methods |
|
205 | methods/repo-methods | |
206 | methods/repo-group-methods |
|
206 | methods/repo-group-methods | |
|
207 | methods/search-methods | |||
207 | methods/server-methods |
|
208 | methods/server-methods | |
208 | methods/user-methods |
|
209 | methods/user-methods | |
209 | methods/user-group-methods |
|
210 | methods/user-group-methods |
@@ -462,6 +462,7 b' get_repo_file' | |||||
462 | :param cache: Use internal caches for fetching files. If disabled fetching |
|
462 | :param cache: Use internal caches for fetching files. If disabled fetching | |
463 | files is slower but more memory efficient |
|
463 | files is slower but more memory efficient | |
464 | :type cache: Optional(bool) |
|
464 | :type cache: Optional(bool) | |
|
465 | ||||
465 | Example output: |
|
466 | Example output: | |
466 |
|
467 | |||
467 | .. code-block:: bash |
|
468 | .. code-block:: bash | |
@@ -532,9 +533,7 b' get_repo_nodes' | |||||
532 |
|
|
533 | result: [ | |
533 |
|
|
534 | { | |
534 |
|
|
535 | "binary": false, | |
535 |
|
|
536 | "content": "File line", | |
536 | Line2 |
|
|||
537 | ", |
|
|||
538 |
|
|
537 | "extension": "md", | |
539 |
|
|
538 | "lines": 2, | |
540 |
|
|
539 | "md5": "059fa5d29b19c0657e384749480f6422", |
@@ -46,7 +46,7 b' and commit files and |repos| while manag' | |||||
46 | nix/default-env |
|
46 | nix/default-env | |
47 | admin/system-admin |
|
47 | admin/system-admin | |
48 | admin/user-admin |
|
48 | admin/user-admin | |
49 |
admin/ |
|
49 | admin/repo-admin | |
50 | admin/security-tips |
|
50 | admin/security-tips | |
51 | auth/auth |
|
51 | auth/auth | |
52 | issue-trackers/issue-trackers |
|
52 | issue-trackers/issue-trackers |
@@ -444,7 +444,7 b' def get_repo_nodes(request, apiuser, rep' | |||||
444 | result: [ |
|
444 | result: [ | |
445 | { |
|
445 | { | |
446 | "binary": false, |
|
446 | "binary": false, | |
447 |
"content": "File line |
|
447 | "content": "File line", | |
448 | "extension": "md", |
|
448 | "extension": "md", | |
449 | "lines": 2, |
|
449 | "lines": 2, | |
450 | "md5": "059fa5d29b19c0657e384749480f6422", |
|
450 | "md5": "059fa5d29b19c0657e384749480f6422", | |
@@ -529,6 +529,7 b' def get_repo_file(request, apiuser, repo' | |||||
529 | :param cache: Use internal caches for fetching files. If disabled fetching |
|
529 | :param cache: Use internal caches for fetching files. If disabled fetching | |
530 | files is slower but more memory efficient |
|
530 | files is slower but more memory efficient | |
531 | :type cache: Optional(bool) |
|
531 | :type cache: Optional(bool) | |
|
532 | ||||
532 | Example output: |
|
533 | Example output: | |
533 |
|
534 | |||
534 | .. code-block:: bash |
|
535 | .. code-block:: bash |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now