UPGRADING.rst 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. Upgrading Pagure
  2. ================
  3. From 5.8 to 5.9
  4. ---------------
  5. The 5.9 release does not contain any database schema changes.
  6. New configuration key added:
  7. * SSH_ACCESS_GROUPS
  8. From 5.7 to 5.8
  9. ---------------
  10. The 5.8 release does not contain any database schema changes nor changes in the
  11. configuration keys.
  12. From 5.6 to 5.7
  13. ---------------
  14. The 5.7 release does not contain any database schema changes nor changes in the
  15. configuration keys.
  16. From 5.5 to 5.6
  17. ---------------
  18. The 5.6 release contains a database schema updates, so:
  19. * Update the data schema using alembic: ``alembic upgrade head``
  20. (As usual, do your backups before).
  21. New configuration key added:
  22. * CSP_HEADERS
  23. From 5.4 to 5.5
  24. ---------------
  25. The 5.5 release contains a database schema updates, so:
  26. * Update the data schema using alembic: ``alembic upgrade head``
  27. New configuration key added:
  28. * GIT_HOOK_DB_RO
  29. From 5.3.x to 5.4
  30. -----------------
  31. The 5.4 release does not contain any database schema changes, nor any new
  32. configuration key.
  33. From 5.2 to 5.3
  34. ---------------
  35. The 5.3 release contains a database schema updates, so:
  36. * Update the data schema using alembic: ``alembic upgrade head``
  37. (As usual, do your backups before).
  38. While working on pagure 5.3, we found that the version of python werkzeug
  39. available in CentOS 7 is too old and makes some of pagure's tests fail. We
  40. recomment it to be upgrade to at least 0.9.6.
  41. New configuration keys have been added:
  42. * ENABLE_TICKETS_NAMESPACE
  43. * FEDORA_MESSAGING_NOTIFICATIONS
  44. * SYNTAX_ALIAS_OVERRIDES
  45. * ALWAYS_STOMP_ON_COMMITS
  46. * ALWAYS_MQTT_ON_COMMITS
  47. * MQTT_TOPIC_PREFIX
  48. From 5.1.x to 5.2
  49. -----------------
  50. The 5.2 release contains a database schema updates, so:
  51. * Update the data schema using alembic: ``alembic upgrade head``
  52. (As usual, do your backups before).
  53. If you run into issues with the ``hook_mirror``, see the upgrade notes for
  54. the release 5.1.4 below.
  55. Note that the minimal version of pygit2 has been bumped to: 0.26.0
  56. New configuration keys have been added:
  57. * MQTT_NOTIFICATIONS
  58. * MQTT_HOST
  59. * MQTT_PORT
  60. * MQTT_USERNAME
  61. * MQTT_PASSWORD
  62. * MQTT_CA_CERTS
  63. * MQTT_CERTFILE
  64. * MQTT_KEYFILE
  65. * MQTT_CERT_REQS
  66. * MQTT_TLS_VERSION
  67. * MQTT_CIPHERS
  68. * DISABLE_MIRROR_IN
  69. * SSH_ADMIN_TOKEN
  70. * GIT_GARBAGE_COLLECT
  71. * DISABLE_REMOTE_PR
  72. * ADMIN_EMAIL
  73. * LOG_ALL_COMMITS
  74. * ARCHIVE_FOLDER
  75. One configuration key changes its default structure:
  76. * TRIGGER_CI
  77. Changes in dependencies:
  78. * Mimimal version of pygit2 version bumped to: 0.26.0
  79. * Minimal version of openssh set to: 7.4
  80. From 5.1 to 5.1.4
  81. -----------------
  82. In the development of 5.1.4 it was found out that the alembic migration
  83. ``ba538b2648b7`` that creates the ``hook_mirror`` table was incomplete.
  84. If you created that table via alembic, you will likely want to re-run it. Beware
  85. that applying the following commands will destroy any data you have in this
  86. table.
  87. * Mark the database to this migration::
  88. alembic stamp ba538b2648b7
  89. * Remove the ``hook_mirror`` table so it can be re-generated::
  90. alembic downgrade -1
  91. * Re-run that single migration::
  92. alembic upgrade +1
  93. * Marking the database to the last current migration (as of 5.1.4)::
  94. alembic stamp f16ab75e4d32
  95. Again, any project that tried to setup the mirroring feature in pagure will need
  96. to be reconfigured.
  97. Another option (that will prevent loosing any data in this table) is to
  98. adjust the table manually using these SQL queries:
  99. ::
  100. ALTER TABLE hook_mirror ADD COLUMN 'public_key' TEXT;
  101. ALTER TABLE hook_mirror ADD COLUMN 'target' TEXT;
  102. ALTER TABLE hook_mirror ADD COLUMN 'last_log' TEXT;
  103. From 5.x to 5.1
  104. ---------------
  105. The 5.1 release contains a database schema updates, so:
  106. * Update the data schema using alembic: ``alembic upgrade head``
  107. (As usual, do your backups before).
  108. New configuration keys added:
  109. * ALLOW_ADMIN_IGNORE_EXISTING_REPOS
  110. * ALLOW_HTTP_PULL_PUSH
  111. * ALLOW_HTTP_PUSH
  112. * HTTP_REPO_ACCESS_GITOLITE
  113. From 5.0 to 5.0.1
  114. -----------------
  115. The 5.0 release was missing a database schema migration to add the
  116. ``hook_mirror`` table. This alembic migration has been added, so if you have
  117. note update to 5.0, you will want to update your database schema using:
  118. ``alembic upgrade head``. If you went around this issue by running the
  119. ``pagure_createdb.py`` script, you can mark you database schema up to date using
  120. ``alembic stamp ba538b2648b7``.
  121. From 4.x to 5.0
  122. ---------------
  123. The release 5.0 brings some changes to the database schema.
  124. * Update the data schema using alembic: ``alembic upgrade head``
  125. New configuration keys added:
  126. * PR_TARGET_MATCHING_BRANCH
  127. * EMAIL_ON_WATCHCOMMITS
  128. * THEME
  129. * GIT_AUTH_BACKEND (replacing GITOLITE_BACKEND, backward compatibility kept for
  130. now)
  131. * REPOSPANNER_PSEUDO_FOLDER
  132. * REPOSPANNER_NEW_REPO
  133. * REPOSPANNER_NEW_REPO_ADMIN_OVERRIDE
  134. * REPOSPANNER_NEW_FORK
  135. * REPOSPANNER_ADMIN_MIGRATION
  136. * REPOSPANNER_REGIONS
  137. * SSH_KEYS_USERNAME_LOOKUP
  138. * SSH_KEYS_USERNAME_EXPECT
  139. * SSH_KEYS_OPTIONS
  140. Configuration deprecated:
  141. * BOOTSTRAP_URLS_CSS
  142. * BOOTSTRAP_URLS_JS
  143. * FILE_SIZE_HIGHLIGHT
  144. * HTML_TITLE
  145. * GITOLITE_BACKEND
  146. Note: Some configuration keys changed their default value:
  147. * LOGGING
  148. * PRIVATE_PROJECTS
  149. * EMAIL_ERROR
  150. * FROM_EMAIL
  151. * DOMAIN_EMAIL_NOTIFICATIONS
  152. * APP_URL
  153. * DOC_APP_URL
  154. * GIT_URL_SSH
  155. * GIT_URL_GIT
  156. * FEDMSG_NOTIFICATIONS
  157. * PAGURE_AUTH
  158. New dependencies:
  159. * trololio (replaces trollius that is no longer a direct dependency)
  160. From 3.x to 4.0
  161. ---------------
  162. The release 4.0 brings some changes to the database schema.
  163. * Update the data schema using alembic: ``alembic upgrade head``
  164. New configuration keys added:
  165. * EMAIL_ON_WATCHCOMMITS
  166. * ALWAYS_FEDMSG_ON_COMMITS
  167. * SESSION_TYPE
  168. * PROJECT_TEMPLATE_PATH
  169. * FORK_TEMPLATE_PATH
  170. From 3.13 to 3.13.1
  171. -------------------
  172. The release 3.13.1 brings one change to the database schema to remove a database
  173. constraint (pull_requests_check in the pull_requests table) that is not only no
  174. longer needed but even blocking now.
  175. * Update the data schema using alembic: ``alembic upgrade head``
  176. From 3.12 to 3.13
  177. -----------------
  178. The release 3.13 brings some features and bug fixes but does not have any
  179. changes made to the database schema or new configuration keys. Update should be
  180. straight forward.
  181. From 3.11 to 3.12
  182. -----------------
  183. The release 3.12 brings some changes to the database schema.
  184. * Update the data schema using alembic: ``alembic upgrade head``
  185. Note that this release bring support for `OpenID
  186. Connect<https://en.wikipedia.org/wiki/OpenID_Connect>`_ authentication, meaning
  187. pagure can now be deployed with authentication coming from, for example, google.
  188. This brings a number of new configuration keys:
  189. * OIDC_CLIENT_SECRETS
  190. * OIDC_ID_TOKEN_COOKIE_SECURE
  191. * OIDC_SCOPES
  192. * OIDC_PAGURE_EMAIL
  193. * OIDC_PAGURE_FULLNAME
  194. * OIDC_PAGURE_USERNAME
  195. * OIDC_PAGURE_SSH_KEY
  196. * OIDC_PAGURE_GROUPS
  197. * OIDC_PAGURE_USERNAME_FALLBACK
  198. From 3.10 to 3.11
  199. -----------------
  200. The release 3.11 brings some changes to the database schema.
  201. * Update the data schema using alembic: ``alembic upgrade head``
  202. In addition, if you are deploying pagure with fedmsg support you had to set
  203. fedmsg to the
  204. `active <http://www.fedmsg.com/en/stable/publishing/#publishing-through-a-relay>`_
  205. mode for the workers to be able to send fedmsg messages. This is now the
  206. default and forced configuration.
  207. New API acls:
  208. * commit_flag
  209. * pull_request_subscribe
  210. From 3.9 to 3.10
  211. ----------------
  212. The release 3.10 brings some changes to the database schema.
  213. * Update the data schema using alembic: ``alembic upgrade head``
  214. From 3.8 to 3.9
  215. ---------------
  216. This release brings a number of bug fixes and features but does not require
  217. any special precaution when upgrading.
  218. From 3.7 to 3.8
  219. ---------------
  220. The release 3.8 brings some changes to the database schema.
  221. * Update the data schema using alembic: ``alembic upgrade head``
  222. New configuration keys added:
  223. * PROJECT_NAME_REGEX
  224. From 3.6 to 3.7
  225. ---------------
  226. The release 3.7 brings some changes to the database schema.
  227. * Update the data schema using alembic: ``alembic upgrade head``
  228. New configuration keys added:
  229. * ENABLE_DEL_FORKS
  230. * ENABLE_UI_NEW_PROJECTS
  231. From 3.5 to 3.6
  232. ---------------
  233. New configuration keys added:
  234. * GITOLITE_CELERY_QUEUE
  235. From 3.4 to 3.5
  236. ---------------
  237. New configuration keys added:
  238. * USER_ACLS
  239. * CASE_SENSITIVE
  240. * HTML_TITLE
  241. From 3.3 to 3.4
  242. ---------------
  243. New configuration keys added:
  244. * DEPLOY_KEY
  245. * LOCAL_SSH_KEY
  246. * ALLOW_DELETE_BRANCH
  247. From 3.2 to 3.3
  248. ---------------
  249. [SECURITY FIX]: The 3.3 release contains an important security fix.
  250. If you are using the private project feature of pagure, the gitolite
  251. configuration generated was still granting access to the private projects. This
  252. made the private projects visible and accessible.
  253. After updating to 3.3, ensure your gitolite configuration gets re-generated
  254. (pagure-admin refresh-gitolite can help you with this).
  255. The 3.3 release brings some adjustments to the database schema.
  256. * Update the database schema using alembic: ``alembic upgrade head``
  257. From 3.1 to 3.2
  258. ---------------
  259. While not being a bug fix, this release has no database schema changes.
  260. However, this release breaks the plugin interface for auth introduced in 3.1 and
  261. changed in 3.1. If you are using pagure-dist-git, make sure to upgrade to at
  262. least 0.4. This interface will be considered stable in 3.4 and announced as
  263. such.
  264. From 3.0 to 3.1
  265. ---------------
  266. While not being a bug fix, this release has no database schema changes.
  267. However, this release breaks the plugin interface for auth introduced in 3.0. If
  268. you are using pagure-dist-git, make sure to upgrade to at least 0.3.
  269. From 2.15 to 3.0
  270. ----------------
  271. The 3.0 version was released with some major re-architecturing. The interaction
  272. with the backend git repo (being the main source repo or the tickets or requests
  273. repos) are now done by a worker that is triggered via a message queue.
  274. This communication is done using `celery <http://www.celeryproject.org/>`_ and
  275. via one of the message queue celery supports (pagure currently defaulting to
  276. `redis <https://redis.io/>`_.
  277. So to get pagure 3.0 running, you will need to get your own message queue (such
  278. as redis) up running and configured in pagure's configuration.
  279. This major version bump has also been an opportunity to rename all the services
  280. to use the same naming schema of pagure-<service>.
  281. The rename is as such:
  282. +------------------+-----------------+
  283. | In 2.x | From 3.0 |
  284. +==================+=================+
  285. | pagure-ci | pagure-ci |
  286. +------------------+-----------------+
  287. | ev-server | pagure-ev |
  288. +------------------+-----------------+
  289. | pagure-loadjson | pagure-loadjson |
  290. +------------------+-----------------+
  291. | pagure-logcom | pagure-logcom |
  292. +------------------+-----------------+
  293. | milters | pagure-milters |
  294. +------------------+-----------------+
  295. | webhook-server | pagure-webhook |
  296. +------------------+-----------------+
  297. | | pagure-worker |
  298. +------------------+-----------------+
  299. .. note:: This last service is the service mentioned above and it is part of
  300. pagure core, not optional unlike the other services in this table.
  301. This release also introduces some new configuration keys:
  302. - ``CELERY_CONFIG`` defaults to ``{}``
  303. - ``ATTACHMENTS_FOLDER``, to be configured
  304. - ``GITOLITE_BACKEND`` defaults to ``gitolite3``, deprecates ``GITOLITE_VERSION``
  305. - ``EXTERNAL_COMMITTER`` defaults to ``{}``
  306. - ``REQUIRED_GROUPS`` defaults to ``{}``
  307. This version also introduces a few database changes, so you will need to update
  308. the database schema using alembic: ``alembic upgrade head``.
  309. From 2.14 to 2.15
  310. -----------------
  311. The 2.15 release brings some adjustments to the database scheme.
  312. * Update the database schame using alembic: ``alembic upgrade head``
  313. From 2.13 to 2.14
  314. -----------------
  315. The 2.14 release brings some adjustments to the database scheme.
  316. * Update the database schame using alembic: ``alembic upgrade head``
  317. From 2.12 to 2.13
  318. -----------------
  319. The 2.13 release brings some adjustments to the database scheme.
  320. * Update the database schame using alembic: ``alembic upgrade head``
  321. From 2.11 to 2.12
  322. -----------------
  323. From this release on, we will have alembic migration script for new table
  324. creation, so there will no longer be a need to use ``createdb.py``
  325. The 2.12 release brings some adjustments to the database scheme.
  326. * Update the database schame using alembic: ``alembic upgrade head``
  327. From 2.10 to 2.11
  328. -----------------
  329. The 2.10 releases brings some adjustments to the database scheme.
  330. * Create the new DB tables and the new status field using the ``createdb.py``
  331. script.
  332. * Update the database schame using alembic: ``alembic upgrade head``
  333. From 2.9 to 2.10
  334. ----------------
  335. The 2.10 releases brings some little changes to the database scheme.
  336. Therefore when upgrading to 2.10, you will have to:
  337. * Update the database schame using alembic: ``alembic upgrade head``
  338. From 2.8 to 2.9
  339. ---------------
  340. The 2.9 releases brings some adjustments to the database scheme.
  341. * Create the new DB tables and the new status field using the ``createdb.py``
  342. script.
  343. * Update the database schame using alembic: ``alembic upgrade head``
  344. If you are interested in loading your local data into the ``pagure_logs`` table
  345. that this new release adds (data which is then displayed in the calendar heatmap
  346. on the user's page), you can find two utility scripts in
  347. https://pagure.io/pagure-utility that will help you to do that. They are:
  348. * fill_logs_from_db - Based on the data present in the database, this script
  349. fills the ``pagure_logs`` table (this will add: new ticket, new comment, new
  350. PR, closing a PR or a ticket and so on).
  351. * fill_logs_from_gits - By going through all the git repo hosted in your pagure
  352. instance, it will log who did what when.
  353. From 2.7 to 2.8
  354. ---------------
  355. 2.8 brings a little change to the database scheme.
  356. Therefore when upgrading to from 2.7 to 2.8, you will have to:
  357. * Update the database schame using alembic: ``alembic upgrade head``
  358. From 2.6 to 2.7
  359. ---------------
  360. 2.7 adds new tables as well as changes some of the existing ones.
  361. Therefore when upgrading to 2.7, you will have to:
  362. * Create the new DB tables and the new status field using the ``createdb.py``
  363. script.
  364. * Update the database schame using alembic, one of the upgrade will require
  365. access to pagure's configuration file, which should thus be passed onto the
  366. command via an environment variable:
  367. ``PAGURE_CONFIG=/path/to/pagure.cf alembic upgrade head``
  368. This release also brings a new configuration key:
  369. * ``INSTANCE_NAME`` used in the welcome screen shown upon first login (only with
  370. FAS and OpenID auth) to describe the instance
  371. The API has also been upgraded to a version ``0.8`` due to the changes (backward
  372. compatible) made to support the introduction of `close_status` to issues.
  373. From 2.5 to 2.6
  374. ---------------
  375. 2.6 brings quite a few changes and some of them impacting the database scheme.
  376. Therefore when upgrading from 2.4 to 2.6, you will have to:
  377. * Update the database schame using alembic: ``alembic upgrade head``
  378. From 2.4 to 2.5
  379. ---------------
  380. 2.5 brings quite a few changes and some of them impacting the database scheme.
  381. Therefore when upgrading from 2.4 to 2.5, you will have to:
  382. * Update the database schame using alembic: ``alembic upgrade head``
  383. From 2.3 to 2.4
  384. ---------------
  385. 2.4 brings quite a few changes and some of them impacting the database scheme.
  386. Therefore when upgrading from 2.3.x to 2.4, you will have to:
  387. * Update the database schame using alembic: ``alembic upgrade head``
  388. This update also brings some new configuration keys:
  389. * ``VIRUS_SCAN_ATTACHMENTS`` allows turning on or off checking attachments for
  390. virus using clamav. This requires pyclamd but is entirely optional (and off by
  391. default)
  392. * ``PAGURE_CI_SERVICES`` allows specifying with which CI (Continuous
  393. Integration) services this pagure instance can integrate with. Currently, only
  394. `Jenkins` is supported, but this configuration key defaults to ``None``.
  395. From 2.2 to 2.3
  396. ---------------
  397. 2.3 brings a few changes impacting the database scheme, including a new
  398. `duplicate` status for tickets, a feature allowing one to `watch` or
  399. `unwatch` a project and notifications on tickets as exist on pull-requests.
  400. Therefore, when upgrading from 2.2.x to 2.3, you will have to :
  401. * Create the new DB tables and the new status field using the ``createdb.py`` script.
  402. * Update the database schame using alembic: ``alembic upgrade head``
  403. This update also brings a new configuration key:
  404. * ``PAGURE_ADMIN_USERS`` allows to mark some users as instance-wide admins, giving
  405. them full access to every projects, private or not. This feature can then be
  406. used as a way to clean spams.
  407. * ``SMTP_PORT`` allows to specify the port to use when contacting the SMTP
  408. server
  409. * ``SMTP_SSL`` allows to specify whether to use SSL when contacting the SMTP
  410. server
  411. * ``SMTP_USERNAME`` and ``SMTP_PASSWORD`` if provided together allow to contact
  412. an SMTP requiring authentication.
  413. In this update is also added the script ``api_key_expire_mail.py`` meant to be
  414. run by a daily cron job and warning users when their API token is nearing its
  415. expiration date.
  416. 2.2.2
  417. -----
  418. Release 2.2.2 contains an important security fix, blocking a source of XSS
  419. attack.
  420. From 2.1 to 2.2
  421. ---------------
  422. 2.2 brings a number of bug fixes and a few improvements.
  423. One of the major changes impacts the databases where we must change some of the
  424. table so that the foreign key cascade on delete (fixes deleting a project when a
  425. few plugins were activated).
  426. When upgrading for 2.1 to 2.2 all you will have to do is:
  427. * Update the database scheme using alembic: ``alembic upgrade head``
  428. .. note:: If you run another database system than PostgreSQL the alembic
  429. revision ``317a285e04a8_delete_hooks.py`` will require adjustment as the
  430. foreign key constraints are named and the names are driver dependant.
  431. From 2.0 to 2.1
  432. ---------------
  433. 2.1 brings its usual flow of improvements and bug fixes.
  434. When upgrading from 2.0.x to 2.1 all you will have to:
  435. * Update the database schame using alembic: ``alembic upgrade head``
  436. From 1.x to 2.0
  437. ---------------
  438. As the version change indicates, 2.0 brings quite a number of changes,
  439. including some that are not backward compatible.
  440. When upgrading to 2.0 you will have to:
  441. * Update the database schema using alembic: ``alembic upgrade head``
  442. * Create the new DB tables so that the new plugins work using the
  443. ``createdb.py`` script
  444. * Move the forks git repo
  445. Forked git repos are now located under the same folder as the regular git
  446. repos, just under a ``forks/`` subfolder.
  447. So the structure changes from: ::
  448. repos/
  449. ├── foo.git
  450. └── bar.git
  451. forks/
  452. ├── patrick/
  453. │  ├── test.git
  454. │  └── ipsilon.git
  455. └── pingou/
  456. ├── foo.git
  457. └── bar.git
  458. to: ::
  459. repos/
  460. ├── foo.git
  461. ├── bar.git
  462. └── forks/
  463. ├── patrick/
  464. │  ├── test.git
  465. │  └── ipsilon.git
  466. └── pingou/
  467. ├── foo.git
  468. └── bar.git
  469. So the entire ``forks`` folder is moved under the ``repos`` folder where
  470. the other repositories are, containing the sources of the projects.
  471. Git repos for ``tickets``, ``requests`` and ``docs`` will be trickier to
  472. move as the structure changes from: ::
  473. tickets/
  474. ├── foo.git
  475. ├── bar.git
  476. ├── patrick/
  477. │  ├── test.git
  478. │  └── ipsilon.git
  479. └── pingou/
  480. ├── foo.git
  481. └── bar.git
  482. to: ::
  483. tickets/
  484. ├── foo.git
  485. ├── bar.git
  486. └── forks/
  487. ├── patrick/
  488. │  ├── test.git
  489. │  └── ipsilon.git
  490. └── pingou/
  491. ├── foo.git
  492. └── bar.git
  493. Same for the ``requests`` and the ``docs`` git repos.
  494. As you can see in the ``tickets``, ``requests`` and ``docs`` folders there
  495. are two types of folders, git repos which are folder with a name ending
  496. with ``.git``, and folder corresponding to usernames. These last ones are
  497. the ones to be moved into a subfolder ``forks/``.
  498. This can be done using something like: ::
  499. mkdir forks
  500. for i in `ls -1 |grep -v '\.git'`; do mv $i forks/; done
  501. * Re-generate the gitolite configuration.
  502. This can be done via the ``Re-generate gitolite ACLs file`` button in the
  503. admin page.
  504. * Keep URLs backward compatible
  505. The support of pseudo-namespace in pagure 2.0 has required some changes
  506. to the URL schema:
  507. https://pagure.io/pagure/053d8cc95fcd50c23a8b0a7f70e55f8d1cc7aebb
  508. became:
  509. https://pagure.io/pagure/c/053d8cc95fcd50c23a8b0a7f70e55f8d1cc7aebb
  510. (Note the added /c/ in it)
  511. We introduced a backward compatibility fix for this.
  512. This fix is however *disabled* by default so if you wish to keep the URLs
  513. valid, you will need to adjust you configuration file to include: ::
  514. OLD_VIEW_COMMIT_ENABLED = True