#1450 correlate or remove orphaned config keys
Merged 5 years ago by pingou. Opened 7 years ago by billauger.
billauger/pagure docs-patch  into  master

file added
+21
@@ -0,0 +1,21 @@ 

+ ---------------------------------------------------

+ undocumented keys in pagure/default_config.py

+ * ACLS

Used: the different ACLs an API token can have

+ * ADMIN_SESSION_LIFETIME

Used: the lifetime of the session during which the user won't have to re-login for admin actions

+ * ALLOWED_PREFIX

Used: list of hard-coded/allowed namespaces

+ * APPLICATION_ROOT

Used: used for the cookie path

+ * BLACKLISTED_GROUPS

Used: list of group whose names are blacklisted

+ * BOOTSTRAP_URLS_CSS

+ * BOOTSTRAP_URLS_JS

Both used: allows to host the bootstrap files yourself w/o relying on fedoraproject.org

+ * ENABLE_GROUP_MNGT

Used: turn on/off managing group in this pagure instance

+ * ENABLE_USER_MNGT

Used: turn on/off managing users in this pagure instance

+ * FORK_FOLDER             (OBSOLETE)

I'm still seeing one instance of it, but it should be cleared

+ * SESSION_COOKIE_NAME

Used: name of the cookie

+ * SHOW_PROJECTS_INDEX

Used: allows specifying what is shown on the index page

Used: allows specifying what is shown on the index page

+ * UPLOAD_FOLDER

Used: Defaults to None

+ ---------------------------------------------------

+ documented keys not represented in pagure/default_config.py

+ * OLD_VIEW_COMMIT_ENABLED

Used: Defaults to False

+ * SSH_KEYS

Used: No defaults

this is one of the documented keys that are to be added to pagure/default_config.py if necessary - are you saying that this key should be omitted from the default config or should it be defined set to None or empty list?

There isn't really any need to put it in the default_config (which is equivalent to define it to None), we can if you want but it's not needed.

+ * VIRUS_SCAN_ATTACHMENTS

Used: defaults to False

+ ---------------------------------------------------

i have compiled a list of configuration keys that are not correlated between the documentation and the default config file - these should probably be sorted out to be made consistent

some of these (namely FORK_FOLDER) i have been told are obsolete and should be removed but there are several others i am not sure about

FORK_FOLDER was removed from the documentation in PR #1447 but i just noticed that it is still present in (the default config file on the master branch)[https://pagure.io/pagure/blob/master/f/pagure/default_config.py#_96]

ive opened this issue as a PR to make it easy to comment on each item line-by-line - once all keys are marked as be either (REQUIRED) or (OBSOLETE) i can make the appropriate changes then rebase this as a merge-able patch

Used: the different ACLs an API token can have

Used: the lifetime of the session during which the user won't have to re-login for admin actions

Used: list of hard-coded/allowed namespaces

Used: used for the cookie path

Used: list of group whose names are blacklisted

Both used: allows to host the bootstrap files yourself w/o relying on fedoraproject.org

Used: turn on/off managing group in this pagure instance

Used: turn on/off managing users in this pagure instance

I'm still seeing one instance of it, but it should be cleared

Used: name of the cookie

Used: allows specifying what is shown on the index page

Used: allows specifying what is shown on the index page

Used: Defaults to False

Used: defaults to False

this is one of the documented keys that are to be added to pagure/default_config.py if necessary - are you saying that this key should be omitted from the default config or should it be defined set to None or empty list?

There isn't really any need to put it in the default_config (which is equivalent to define it to None), we can if you want but it's not needed.

Commit 861b6dd fixes this pull-request

Pull-Request has been merged by pingou

5 years ago