diff --git a/docs/admin/repo_admin/repo-extra-fields.rst b/docs/admin/repo_admin/repo-extra-fields.rst index 0e5aecbc..bcf3edc8 100644 --- a/docs/admin/repo_admin/repo-extra-fields.rst +++ b/docs/admin/repo_admin/repo-extra-fields.rst @@ -31,11 +31,12 @@ To configure extra fields per repository, use the following steps: .. image:: ../../images/extra-repo-fields.png -The most important is the `New field key` variable which under the value will +3. The most important is the `New field key` variable which under the value will be stored. It needs to be unique for each repository. The label and description will be generated in repository settings where users can actually save some values inside generated extra fields. +.. image:: ../../images/extra-repo-fields-set-value.png Example Usage in extensions --------------------------- diff --git a/docs/images/extra-repo-fields-set-value.png b/docs/images/extra-repo-fields-set-value.png new file mode 100644 index 00000000..feff8fca Binary files /dev/null and b/docs/images/extra-repo-fields-set-value.png differ diff --git a/docs/tools/tools-cli.rst b/docs/tools/tools-cli.rst index 4280671c..04bc4667 100644 --- a/docs/tools/tools-cli.rst +++ b/docs/tools/tools-cli.rst @@ -117,7 +117,8 @@ Options: Set the API key value. \ - -instance-name - Set the instance name + Specify which instance configuration to use from your :file:`~/.rhoderc` file. + Must match an existing instance name from the config. \-I, - -install-dir Location of application instances @@ -155,7 +156,8 @@ Use this to delete gists within |RCE|. Options: Show help messages. current configuration values. \ - -instance-name - Set the instance name. + Specify which instance configuration to use from your :file:`~/.rhoderc` file. + Must match an existing instance name from the config. \-R, - -repo-dir Set the repository file path. @@ -205,7 +207,8 @@ Use this to manage |repos| and |repo| groups within |RCE|. Options: Remove repository groups. \ - -instance-name - Set the instance name. + Specify which instance configuration to use from your :file:`~/.rhoderc` file. + Must match an existing instance name from the config. \ - -list-only Display repositories selected for deletion. @@ -359,7 +362,8 @@ Use this to create, list, show, or delete gists within |RCE|. Options: Location of application instances \ - -instance-name - Set the instance name. + Specify which instance configuration to use from your :file:`~/.rhoderc` file. + Must match an existing instance name from the config. \ - -list Display instance gists. @@ -514,7 +518,8 @@ the :ref:`indexing-ref` section. Options: Show help messages. \ - -instance-name - Set the instance name + Specify which instance configuration to use from your :file:`~/.rhoderc` file. + Must match an existing instance name from the config. \-I, - -install-dir Location of application instances @@ -569,7 +574,8 @@ remote instances. .. rst-class:: dl-horizontal \- -instance-name - Specify the instance name in the :file:`~/.rhoderc` + Set the instance name to create in the :file:`~/.rhoderc` file. + This is a string you create to identify your RhodeCode instance configuration. \api_host Create a configuration file. The default file is created diff --git a/pyproject.toml b/pyproject.toml index 595b4818..50efacb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ line-ending = "auto" [tool.bumpversion] -current_version = "5.6.1" +current_version = "5.7.0" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" serialize = ["{major}.{minor}.{patch}"] search = "{current_version}" diff --git a/rhodecode/VERSION b/rhodecode/VERSION index 566ac638..3b867ccd 100644 --- a/rhodecode/VERSION +++ b/rhodecode/VERSION @@ -1 +1 @@ -5.6.1 \ No newline at end of file +5.7.0 \ No newline at end of file diff --git a/rhodecode/config/settings_maker.py b/rhodecode/config/settings_maker.py index fd05b715..c946db82 100644 --- a/rhodecode/config/settings_maker.py +++ b/rhodecode/config/settings_maker.py @@ -46,6 +46,14 @@ def initialize_ini_config_default_values_if_not_present( log.warning("Config file %s not found.", ini_path) return + if not os.access(ini_path, os.W_OK): + log.warning( + "Cannot save value for %s, reason: cannot write to config file '%s' due to lack of permissions.", + option, + ini_path, + ) + return + updater = ConfigUpdater() updater.read(ini_path) diff --git a/rhodecode/templates/admin/repos/repo_edit_fields.mako b/rhodecode/templates/admin/repos/repo_edit_fields.mako index 14d7bbf1..38809d5e 100644 --- a/rhodecode/templates/admin/repos/repo_edit_fields.mako +++ b/rhodecode/templates/admin/repos/repo_edit_fields.mako @@ -61,6 +61,12 @@ +
+

+ ${_("Note")}: ${_("You can set values for your custom fields in")} ${_("Repository Settings")} ${_("(bottom of the page)")} +

+
+
${h.submit('save',_('Add'),class_="btn")} ${h.reset('reset',_('Reset'),class_="btn")}