forked from mayan-edms/Mayan-EDMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/series/3.4'
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
- Loading branch information
Showing
21 changed files
with
309 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
Version 3.4.20 | ||
============== | ||
|
||
Released: November 11, 2020 | ||
|
||
Changes | ||
------- | ||
|
||
Code style | ||
^^^^^^^^^^ | ||
|
||
As part of the continuous effort to keep the code maintainable and to comply | ||
with MERC 0005 (https://docs.mayan-edms.com/mercs/0005-explicit-arguments.html) | ||
keyword arguments were added to the ``.acquire_lock()`` function, uses | ||
of the library ``shutil``, as well as uses of ``Command`` class from the | ||
``sh`` library. | ||
|
||
|
||
Documentation | ||
^^^^^^^^^^^^^ | ||
|
||
A chapter devoted to the search system was added. Minor formatting error | ||
in the REST API chapter were fixed. | ||
|
||
|
||
User interface | ||
^^^^^^^^^^^^^^ | ||
|
||
Two commits from the version 4.0 development branch were merged back. | ||
The first, makes sure that only one CSRF token is generated per form. There | ||
are no functional changes and this only concern the sources app form. | ||
|
||
The second commit fixes an edge case where URLs with a query string were | ||
being incorrectly modified when a form was submitted in such a way it caused | ||
a reload, as is the case when a required field was left empty. | ||
|
||
|
||
Upgrading process | ||
----------------- | ||
|
||
|
||
Upgrading from Mayan EDMS 3.2.x or earlier | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
#. Stop supervisord:: | ||
|
||
sudo systemctl stop supervisor | ||
|
||
#. Update the Redis configuration: | ||
|
||
Configure Redis to discard data when it runs out of memory, not save its | ||
database, and only keep 2 database: | ||
|
||
.. code-block:: bash | ||
|
||
echo "maxmemory-policy allkeys-lru" | sudo tee -a /etc/redis/redis.conf | ||
echo "save \"\"" | sudo tee -a /etc/redis/redis.conf | ||
echo "databases 2" | sudo tee -a /etc/redis/redis.conf | ||
echo "requirepass |DEFAULT_REDIS_PASSWORD|" | sudo tee -a /etc/redis/redis.conf | ||
sudo systemctl restart redis | ||
|
||
|
||
#. Install the Python 3 development OS package: | ||
|
||
.. code-block:: bash | ||
|
||
sudo apt-get install python3-dev | ||
|
||
|
||
#. Update the virtualenv to use Python 3: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| virtualenv --clear /opt/mayan-edms -p /usr/bin/python3 | ||
|
||
|
||
#. Create a home directory for the Mayan EDMS system user: | ||
|
||
.. code-block:: bash | ||
|
||
mkdir /home/mayan | ||
|
||
|
||
#. Grant ownership to the Mayan EDMS system user: | ||
|
||
.. code-block:: bash | ||
|
||
chown mayan:mayan /home/mayan | ||
|
||
#. Reinstall the Python client for PostgreSQL and Redis: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| |MAYAN_PIP_BIN| install psycopg2==|PYTHON_PSYCOPG2_VERSION| redis==|PYTHON_REDIS_VERSION| | ||
|
||
.. note:: | ||
|
||
Platforms with the ARM CPU might also need additional requirements: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| |MAYAN_PIP_BIN| install psutil==|PYTHON_PSUTIL_VERSION| | ||
|
||
|
||
#. Reinstall the Python client for RabbitMQ if you are using RabbitMQ as a broker: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| |MAYAN_PIP_BIN| install amqp==|PYTHON_AMQP_VERSION| | ||
|
||
|
||
Upgrading from Mayan EDMS 3.4.x or 3.3.x | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
#. Stop supervisord:: | ||
|
||
sudo systemctl stop supervisor | ||
|
||
|
||
#. Upgrade to the latest pip version: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| |MAYAN_PIP_BIN| install -U pip | ||
|
||
|
||
#. Update the Redis configuration to enable password protection: | ||
|
||
.. code-block:: bash | ||
|
||
echo "requirepass mayanredispassword" | sudo tee -a /etc/redis/redis.conf | ||
sudo systemctl restart redis | ||
|
||
|
||
#. Remove deprecated requirements: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| curl |SOURCE_CODE_REPOSITORY|raw/master/removals.txt -o /tmp/removals.txt \ | ||
&& sudo -u |DEFAULT_OS_USERNAME| |MAYAN_PIP_BIN| uninstall -y -r /tmp/removals.txt | ||
|
||
|
||
#. Update the Mayan EDMS Python package: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| |MAYAN_PIP_BIN| install mayan-edms==3.4.20 | ||
|
||
the requirements will also be updated automatically. | ||
|
||
|
||
#. Make a backup of your supervisord file: | ||
|
||
.. code-block:: bash | ||
|
||
sudo cp |MAYAN_SUPERVISOR_CONF| |MAYAN_SUPERVISOR_CONF|.bck | ||
|
||
|
||
#. Update the supervisord configuration file. Replace the environment | ||
variables values show here with your respective settings. This step will refresh | ||
the supervisord configuration file with the new queues and the latest | ||
recommended layout: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=|DEFAULT_DATABASE_NAME| \ | ||
MAYAN_DATABASE_PASSWORD=|DEFAULT_DATABASE_PASSWORD| MAYAN_DATABASE_USER=|DEFAULT_DATABASE_USER| \ | ||
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \ | ||
|MAYAN_BIN| platformtemplate supervisord | sudo sh -c "cat > |MAYAN_SUPERVISOR_CONF|" | ||
|
||
or: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| MAYAN_DATABASES=\"{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'|DEFAULT_DATABASE_NAME|','PASSWORD':'|DEFAULT_DATABASE_PASSWORD|','USER':'|DEFAULT_DATABASE_USER|','HOST':'127.0.0.1'}}\" \ | ||
MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \ | ||
|MAYAN_BIN| platformtemplate supervisord | sudo sh -c "cat > |MAYAN_SUPERVISOR_CONF|" | ||
|
||
|
||
#. Edit the supervisord configuration file and update any setting specific to your installation: | ||
|
||
.. code-block:: bash | ||
|
||
sudo vi |MAYAN_SUPERVISOR_CONF| | ||
|
||
|
||
#. Migrate existing database schema and static media files with: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=|DEFAULT_DATABASE_NAME| \ | ||
MAYAN_DATABASE_PASSWORD=|DEFAULT_DATABASE_PASSWORD| MAYAN_DATABASE_USER=|DEFAULT_DATABASE_USER| \ | ||
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \ | ||
|MAYAN_BIN| performupgrade | ||
|
||
or: | ||
|
||
.. code-block:: bash | ||
|
||
sudo -u |DEFAULT_OS_USERNAME| MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'|DEFAULT_DATABASE_NAME|','PASSWORD':'|DEFAULT_DATABASE_PASSWORD|','USER':'|DEFAULT_DATABASE_USER|','HOST':'127.0.0.1'}}" \ | ||
MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \ | ||
|MAYAN_BIN| performupgrade | ||
|
||
|
||
#. Start supervisord: | ||
|
||
.. code-block:: bash | ||
|
||
sudo systemctl start supervisor | ||
|
||
#. Clear the browser cache to avoid loading old web assets. | ||
|
||
The upgrade procedure is now complete. | ||
|
||
|
||
Backward incompatible changes | ||
----------------------------- | ||
|
||
- None | ||
|
||
|
||
Issues closed | ||
------------- | ||
|
||
- :gitlab-issue:`706` Error due to wrong URL in POST request | ||
|
||
.. _PyPI: https://pypi.python.org/pypi/mayan-edms/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.