Skip to content

Releases: oban-bg/oban_met

v1.0.1

17 Jan 11:34
Compare
Choose a tag to compare

Bug Fixes

  • [Value] Implement JSON.Encoder for value types

    The encoder is necessary to work with official JSON encoded values as well as legacy Jason.

v1.0.0

17 Jan 11:33
Compare
Choose a tag to compare

This is the official v1.0 release and the package is now open source!

Enhancements

  • [Reporter] Count queries work with all official Oban engines and databases (Postgres, SQLite, and MySQL).

  • [Migration] Add ability to explicitly create estimate function through a dedicated migration.

    For databases that don't allow the application connect to create new functions, this adds an Oban.Met.Migration module and an option to disable auto-migrating in the reporter.

Bug Fixes

  • [Reporter] Skip queries with empty states or queues to prevent query errors.

    Querying with an empty list may cause the following error:

    (Postgrex.Error) ERROR 42809 (wrong_object_type) op ANY/ALL (array)
    

    This fixes the error by skipping queries for empty lists. This could happen if all of the states were above the estimate threshold, or no active queues were found.