1
0

UPGRADING.rst 21 KB

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