Django-pgpubsub

Latest version: v1.2.0

Safety actively analyzes 623439 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2

What's Changed
* Remove unused opus10 devops by PaulGilmartin in https://github.com/PaulGilmartin/django-pgpubsub/pull/74
* Test action by PaulGilmartin in https://github.com/PaulGilmartin/django-pgpubsub/pull/75
* Stores non serialized json in the notification payload field with simple migration by romank0 in https://github.com/PaulGilmartin/django-pgpubsub/pull/66
* Allow to add context to payload by romank0 in https://github.com/PaulGilmartin/django-pgpubsub/pull/73


**Full Changelog**: https://github.com/PaulGilmartin/django-pgpubsub/compare/1.1.4...1.2

This release contains two major changes (again thanks to romank0 ):

* [Options to add context into notification payload](https://django-pgpubsub.readthedocs.io/en/latest/payload_context.html): see https://django-pgpubsub.readthedocs.io/en/latest/payload_context.html
* An update which addresses a discrepancy in the handling of JSON payloads in the pg_notify feature. Previously, although JSON objects were sent, they were stored as serialized strings in the database. This resulted in limitations when querying the stored data. With this update, JSON payloads are now properly parsed and stored as JSONB objects in the database, allowing for more efficient querying and manipulation of the data. Note that this update requires a migration to the triggers in order accomplish this.
To maintain compatibility with pgpubsub, the library is adjusted to correctly handle accepting notifications with payloads serialized in both the old and new ways. In a follow up release, we will remove this backwards compatibility.


**Upgrading to this version will require a migration of your triggers.**

1.1.4

Some bug fixes thanks to romank0 . See https://github.com/Opus10/django-pgpubsub/pull/70/files/ebffbbf7f49c8e9b1878fafdb8beb406537f8ecc..8d71f1499eb2d3933c04d032ab032454487a886f for more.

1.1.3

Added some new logging options (thanks romank0 ) and some new docker development scaffolding.

1.1.2

We are now on [readthedocs](https://django-pgpubsub.readthedocs.io/en/latest/)!
Thanks to madtools for this one.

1.1.1

Fixes include:

- [Set default_auto_field on pgpubsub and pgpubsub.tests app config](https://github.com/Opus10/django-pgpubsub/commit/40623efe43ad5e2545b875f3bc686e3d458c8acc)
- [Add default ordering to the Notification model so that they come in c…](https://github.com/Opus10/django-pgpubsub/commit/ecd95eb1405d544453abe77e36f5719094c12d85)
- [Allow using the same channel on multiple listeners](https://github.com/Opus10/django-pgpubsub/commit/9078236d1d8ca5abb33fdb50da6d1d2aff7af2ef)

Note that upgrading to this version will mean we need to apply a migration (adding the ordering to the Notification model).

1.1.0

Points of note for those upgrading from an earlier version of this library:

- Instead of using `print` to log messages to the console, the Python logging module is now used instead: https://github.com/Opus10/django-pgpubsub/pull/51
- A migration is required to pick up changes to both the `Notification` model and to the test models in the `tests` app.
- DISABLE_SERVER_SIDE_CURSORS should be False. See https://github.com/Opus10/django-pgpubsub/issues/38.


**New-Features**

- In built [logging](https://github.com/Opus10/django-pgpubsub/pull/51) using the Python logging module.
- [Ability to process notifications with backward incompatible changes in django models](https://github.com/Opus10/django-pgpubsub/issues/38): see the "Model migrations" section of the READ ME for more.
- [Reduced memory consumption when consuming notifications](https://github.com/Opus10/django-pgpubsub/issues/38).

**Bug Fixes**

- [Bring back Django 2.2. support](https://github.com/Opus10/django-pgpubsub/pull/28)
- [Fix deserialization of trigger channels](https://github.com/Opus10/django-pgpubsub/pull/34) with some follow up fixes.
- [Recovery handles errors consistently with the usual listener process](https://github.com/Opus10/django-pgpubsub/pull/42)


Special thanks to romank0 for the amazing work done towards this release!

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.