v.0.1.0
=======

Improvements:
-------------

    #) [LUNA-5475] Added the ability to create and manage stream groups, see `stream groups <../_static/api.html#tag/groups>`_ resources.

    #) [LUNA-5476] Resource */linker* was added. It allows to attach or detach streams to arbitary groups,

       see `linker <../_static/api.html#operation/linker>`_.

    #) [LUNA-5476] Ability to attach stream when creating/replacing was added, see `create stream <../_static/api.html#operation/createStream>`_

       and `put stream <../_static/api.html#operation/putStream>`_.

    #) [LUNA-5484] The *account_id* field as a filter was added for the following resources:

       - `getting streams <../_static/api.html#operation/getStreams>`_.

       - `getting count of streams <../_static/api.html#operation/countStreams>`_.

       - `getting streams logs <../_static/api.html#operation/getStreamsLogs>`_.

       - `getting single stream <../_static/api.html#operation/getStream>`_.

       - `update single stream <../_static/api.html#operation/patchStream>`_.

       - `delete single stream <../_static/api.html#operation/removeStream>`_.

    #) [LUNA-5487] Stream filtering when specifying head angle threshold on the "/streams" resource was fixed. Now detection thresholds are a number in the range [0, 180].

       See `streams <../_static/api.html#operation/createStream>`_ resource.

    #) [LUNA-5525] The *preferred_program_stream_frame_width* field was added to the stream data, see `create stream <../_static/api.html#operation/createStream>`_.

    #) [LUNA-5538] The filters were extended by *group_names* and *group_ids* for following requests:

       - `get streams processing queue <../_static/api.html#operation/getStreamsQueue>`_

       - `get streams from queue <../_static/api.html#operation/getStreamsFromQueue>`_

    #) [LUNA-5569] The *reference* field length was increased up to 512 symbols, see `create stream <../_static/api.html#operation/createStream>`_.

    #) [LUNA-5581] The mechanic of start downgrade and autorestart processes was updated, see

       `master instance <../master_instance.html>`_.

    #) [LUNA-5584] Added *min_body_size_threshold* parameter to filtering in stream policy. See `create stream <../_static/api.html#operation/createStream>`_ and `put stream <../_static/api.html#operation/putStream>`_.

    #) [LUNA-5646] Link to the documentation website with the error description added to all errors in service responses.

    #) [LUNA-5734] Added *endless* parameter to data of TCP and UDP streams. See `create stream <../_static/api.html#operation/createStream>`_ and `put stream <../_static/api.html#operation/putStream>`_.

Bugs fixed:
-----------

    #) [LUNA-5567] The bug which allowed to set null values to stream policies was fixed. See `streams <../_static/api.html#operation/createStream>`_ resource.

    #) [LUNA-5654] The *limit* parameter processing was fixed for streams which linked to groups for requests

       check the streams processing queue, see `get streams queue <../_static/api.html#operation/getStreamsQueue>`_ and `get streams from queue <../_static/api.html#operation/getStreamsFromQueue>`_.

    #) [LUNA-5739] A stream order was fixed in response to request `GET:/logs`. The order is `from new to old` now,

       see `get logs  <../_static/api.html#operation/getStreamsLogs>`_.

Migration:
----------

See a `migration <../migration.html>`_ manual.

[LUNA-5475] You need to execute migration scripts to update your Streams database structure.

.. warning::

    It is highly recommended to create a backup of your database before applying any changes.

Execute the command:

.. code-block:: bash

    alembic -x config=luna_streams/configs/config.conf upgrade head

[LUNA-5476] See a `migration <../migration.html>`_ manual.

[LUNA-5525] See a `migration <../migration.html>`_ manual.

[LUNA-5569] See a `migration <../migration.html>`_ manual.

[LUNA-5581] See a `migration <../migration.html>`_ manual.

[LUNA-5734] Migration of database is needed. All existing TCP and UDP streams will have an *endless* parameter set to True.
