v0.57.0-beta

getlago/lagov0.57.0-betaFeb 22, 2024by jdenquin

AI Summary

This release introduces unique count aggregation capabilities for both Postgres and ClickHouse data stores, along with fixes for subscription and invoice handling.

Key Highlights

  • Implemented unique count aggregation (basic, grouped, prorated)
  • Adjusted boundaries upon subscription upgrade/downgrade
  • Fixed creating yearly in-arrears subscription fees
  • Grouped invoices upon downgrade and upgrade
  • Fixed groupBy undefined issue in frontend

New Features

  • Unique count aggregation (basic, grouped, prorated)
  • Plan changes adjustment logic

Full Release Notes

# API Changes

* feat(unique-count): Implement basic unique count for PostgresStore by @rsempe in https://github.com/getlago/lago-api/pull/1692
* misc: Fix typo sanitized_property_name by @rsempe in https://github.com/getlago/lago-api/pull/1693
* feat(unique-count): Add prorated unique count method by @rsempe in https://github.com/getlago/lago-api/pull/1694
* feat(unique-count): Add unique count to ClickhouseStore by @vincent-pochet in https://github.com/getlago/lago-api/pull/1697
* feat(unique-count): Add grouped unique count to PostgresStore by @rsempe in https://github.com/getlago/lago-api/pull/1696
* feat(unique-count): Add grouped prorated unique count to PostgresStore by @rsempe in https://github.com/getlago/lago-api/pull/1698
* feat(unique-count): Add prorated unique count to ClickhouseStore by @vincent-pochet in https://github.com/getlago/lago-api/pull/1700
* feat(unique-count): Add grouped_unique_count to ClickhouseStore by @rsempe in https://github.com/getlago/lago-api/pull/1701
* fix (charge models): adjust volume charge model logic by @lovrocolic in https://github.com/getlago/lago-api/pull/1699
* feat(unique-count): Add grouped_prorated_unique_count to ClickhouseStore by @rsempe in https://github.com/getlago/lago-api/pull/1702
* feat(unique-count): Prorated unique count queries by @vincent-pochet in https://github.com/getlago/lago-api/pull/1704
* fix (jobs-inside-transaction): add setup for after commit everywhere and fix customer.vies_check webhook by @lovrocolic in https://github.com/getlago/lago-api/pull/1703
* feat (plan-changes): Adjust boundaries upon subscription upgrade by @lovrocolic in https://github.com/getlago/lago-api/pull/1695
* fix(fees): Fix creating yearly in-arrears subscription fee by @ivannovosad in https://github.com/getlago/lago-api/pull/1707
* feat(unique_count): Reafact queries and add prorated breakdown by @vincent-pochet in https://github.com/getlago/lago-api/pull/1708
* fix: Updating plan with new charge by @rsempe in https://github.com/getlago/lago-api/pull/1706
* feat(unique_count): Add active_unique_property to event stores by @vincent-pochet in https://github.com/getlago/lago-api/pull/1710
* fix(subscriptions): fix edit subscription attached to parent plan by @lovrocolic in https://github.com/getlago/lago-api/pull/1711
* fix (invoices): group invoices upon downgrade and upgrade by @lovrocolic in https://github.com/getlago/lago-api/pull/1712
* fix: Fix a small edge case with datetime diff computation by @vincent-pochet in https://github.com/getlago/lago-api/pull/1713

# Front Changes

* bug(plan) make sure groupBy is undefined if not defined by @ansmonjol in https://github.com/getlago/lago-front/pull/1414

**Full Changelog**: https://github.com/getlago/lago/compare/v0.56.0-beta...v0.57.0-beta