From 4912c93947d6d5eb9201c2e5aa2c3209bc096fed Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 11 2016 13:40:46 +0000 Subject: Release 2.3 --- diff --git a/UPGRADING.rst b/UPGRADING.rst index 603d23d..697460b 100644 --- a/UPGRADING.rst +++ b/UPGRADING.rst @@ -1,6 +1,45 @@ Upgrading Pagure ================ +From 2.2 to 2.3 +--------------- + +2.3 brings a few changes impacting the database scheme, including a new +`duplicate` status for tickets, a feature allowing one to `watch` or +`unwatch` a project and notifications on tickets as exist on pull-requests. + +Therefore, when upgrading from 2.2.x to 2.3, you will have to : + +* Create the new DB tables and the new status field using the ``createdb.py`` script. + +* Update the database schame using alembic: ``alembic upgrade head`` + +This update also brings a new configuration key: + +* ``PAGURE_ADMIN_USERS`` allows to mark some users as instance-wide admins, giving + them full access to every projects, private or not. This feature can then be + used as a way to clean spams. +* ``SMTP_PORT`` allows to specify the port to use when contacting the SMTP + server +* ``SMTP_SSL`` allows to specify whether to use SSL when contacting the SMTP + server +* ``SMTP_USERNAME`` and ``SMTP_PASSWORD`` if provided together allow to contact + an SMTP requiring authentication. + +In this update is also added the script ``api_key_expire_mail.py`` meant to be +run by a daily cron job and warning users when their API token is nearing its +expiration date. + + + +2.2.2 +----- + +Release 2.2.2 contains an important security fix, blocking a source of XSS +attack. + + + From 2.1 to 2.2 --------------- diff --git a/doc/contributors.rst b/doc/contributors.rst index e9ea761..e00b3b8 100644 --- a/doc/contributors.rst +++ b/doc/contributors.rst @@ -3,35 +3,37 @@ Contributors to pagure Pagure would be nothing without its contributors. -On June 1, 2016 (release 2.2.1), the list looks as follow: +On July 11, 2016 (release 2.3), the list looks as follow: ================= =========== Number of commits Contributor ================= =========== - 4003 Pierre-Yves Chibon - 170 Ryan Lerch + 4092 Pierre-Yves Chibon + 174 Ryan Lerch 61 farhaanbukhsh 59 Johan Cwiklinski 48 Clement Verna + 35 Vivek Anand 18 Sayan Chowdhury + 15 Gaurav Kumar + 15 Lubomír Sedlář + 15 Patrick Uiterwijk 15 Ralph Bean - 14 Lubomír Sedlář - 14 Patrick Uiterwijk 13 Ghost-script 13 Mathieu Bridon - 13 Vivek Anand 8 Lei Yang - 5 Gaurav Kumar 5 Mike McLean + 5 Oliver Gutierrez + 5 vanzhiganov 5 yangl1996 4 Maciej Lasyk 4 Paul W. Frields 3 Ankush Behl 3 Anthony Lackey 3 Dhriti Shikhar + 3 Eric Barbour 3 Jan Pokorný 3 Kushal Khandelwal - 3 Oliver Gutierrez 3 Pedro Lima 2 Daniel Mach 2 Nuno Maltez @@ -41,7 +43,6 @@ Number of commits Contributor 2 Till Maas 2 bruno 2 dhrish20 - 2 vanzhiganov 1 Anthony Lackey 1 David Caro 1 Kunaal Jain @@ -49,11 +50,13 @@ Number of commits Contributor 1 Pierre-YvesChibon 1 Rahul Bajaj 1 Stanislav Ochotnicky + 1 Vyacheslav Anzhiganov 1 Yves Martin 1 abhishek 1 jcvicelli 1 pingou 1 ryanlerch + 1 skrzepto 1 skrzepto 1 tenstormavi ================= =========== diff --git a/files/pagure.spec b/files/pagure.spec index 772dd7e..7d20386 100644 --- a/files/pagure.spec +++ b/files/pagure.spec @@ -2,7 +2,7 @@ %distutils.sysconfig import get_python_lib; print (get_python_lib())")} Name: pagure -Version: 2.2.1 +Version: 2.3 Release: 1%{?dist} Summary: A git-centered forge @@ -160,10 +160,14 @@ install -m 644 files/pagure.cfg.sample $RPM_BUILD_ROOT/%{_sysconfdir}/pagure/pag # Install WSGI file mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pagure install -m 644 files/pagure.wsgi $RPM_BUILD_ROOT/%{_datadir}/pagure/pagure.wsgi +install -m 644 files/doc_pagure.wsgi $RPM_BUILD_ROOT/%{_datadir}/pagure/doc_pagure.wsgi # Install the createdb script install -m 644 createdb.py $RPM_BUILD_ROOT/%{_datadir}/pagure/pagure_createdb.py +# Install the api_key_expire_mail.py script +install -m 644 createdb.py $RPM_BUILD_ROOT/%{_datadir}/pagure/api_key_expire_mail.py + # Install the alembic configuration file install -m 644 files/alembic.ini $RPM_BUILD_ROOT/%{_sysconfdir}/pagure/alembic.ini @@ -226,7 +230,8 @@ install -m 644 webhook-server/pagure_webhook.service \ %config(noreplace) %{_sysconfdir}/pagure/alembic.ini %dir %{_sysconfdir}/pagure/ %dir %{_datadir}/pagure/ -%{_datadir}/pagure/pagure* +%config(noreplace) %{_datadir}/pagure/*.wsgi +%{_datadir}/pagure/*.py* %{_datadir}/pagure/alembic/ %{python_sitelib}/pagure/ %{python_sitelib}/pagure*.egg-info @@ -254,6 +259,53 @@ install -m 644 webhook-server/pagure_webhook.service \ %changelog +* Mon Jul 11 2016 Pierre-Yves Chibon - 2.3-1 +- Update to 2.3 +- Fix typos in pr_custom_page.rst (Lubomír Sedlář) +- Improve the unit-test suite (Vivek Anand) +- Remove the branch chooser from the repoheader and rework the fork button (Ryan + Lerch) +- Add support for non utf-8 file names (Ryan Lerch) +- Add a 'Duplicate' status for issues (Vivek Anand) +- Add title attribute for replying to comment and editing the comment in issues + and PRs (Vivek Anand) +- Include the user when reporting error by email +- Add an API endpoint to create projects +- Add an API endpoint to assign someone to a ticket +- Add small script to be ran as cron to send reminder of expiring tokens (Vivek + Anand) +- Do not show the PR button on branches for which a PR is already opened +- Add an API endpoint to fork projects +- Add the possibility to watch/unwatch a project (Gaurav Kumar) +- Add a 'Take' button on the issue page (Ryan Lerch and I) +- Add a dev-data script to input some test data in the DB for testing/dev + purposes (skrzepto) +- Fix links to ticket/pull-request in the preview of a new ticket +- Add the possibility to diff two or more commits (Oliver Gutierrez) +- Fix viewing a file having a non-ascii name +- Fix viewing the diff between two commits having a file with a non-ascii name +- On the commit detail page, specify on which branch(es) the commit is +- Add the possibility to have instance-wide admins will full access to every + projects (set in the configuration file) +- Drop the hash to the blob of the file when listing the files in the repo +- Add autocomple/suggestion on typing @ on a ticket or a pull-request + (Eric Barbour) +- Fix the edit link when adding a comment to a ticket via SSE +- Add notifications to issues as we have for pull-requests +- Record in the db the date at which a ticket was closed (Vivek Anand) +- Add the possibility for pagure to rely on external groups provided by the auth + service +- Add the possibility for pagure to use an SMTP server requiring auth + (Vyacheslav Anzhiganov) +- Add autocomple/suggestion on typing # for tickets and pull-requests (Eric + Barbour) +- With creating a README when project's description has non-ascii characters + (vanzhiganov) +- Add colored label for duplicate status of issues (Vivek Anand) +- Ship working wsgi files so that they can be used directly from the RPM +- Mark the wsgi files provided with the RPM as %%config(noreplace) +- Install the api_key_expire_mail.py script next to the createdb one + * Wed Jun 01 2016 Pierre-Yves Chibon - 2.2.1-1 - Update to 2.2.1 - Fix showing the inital comment on PR having only one commit (Ryan Lerch) diff --git a/pagure/__init__.py b/pagure/__init__.py index da02fca..8888a2e 100644 --- a/pagure/__init__.py +++ b/pagure/__init__.py @@ -12,8 +12,8 @@ __requires__ = ['SQLAlchemy >= 0.8', 'jinja2 >= 2.4'] import pkg_resources -__version__ = '2.2.1' -__api_version__ = '0.6' +__version__ = '2.3' +__api_version__ = '0.7' import datetime