Skip to content

Commit

Permalink
misc: v0.56.0-beta (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Feb 13, 2024
1 parent a42cad5 commit cd0a47c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api
Submodule api updated 86 files
+1 −1 Gemfile
+7 −7 Gemfile.lock
+6 −0 app/controllers/admin/invoices_controller.rb
+19 −0 app/controllers/api/v1/invoices_controller.rb
+1 −1 app/controllers/api/v1/plans_controller.rb
+6 −0 app/controllers/api/v1/subscriptions_controller.rb
+17 −0 app/controllers/dev_tools/invoices_controller.rb
+3 −6 app/graphql/types/organization_type.rb
+19 −0 app/graphql/types/safe_organization_type.rb
+2 −1 app/graphql/types/user_type.rb
+1 −0 app/models/concerns/currencies.rb
+5 −1 app/models/event.rb
+15 −3 app/models/invoice.rb
+17 −0 app/serializers/v1/payment_providers/invoice_payment_serializer.rb
+1 −1 app/serializers/v1/subscription_serializer.rb
+16 −7 app/services/billable_metrics/aggregations/base_service.rb
+0 −6 app/services/billable_metrics/aggregations/count_service.rb
+0 −4 app/services/billable_metrics/aggregations/latest_service.rb
+0 −6 app/services/billable_metrics/aggregations/max_service.rb
+7 −12 app/services/billable_metrics/aggregations/sum_service.rb
+60 −16 app/services/billable_metrics/aggregations/unique_count_service.rb
+0 −4 app/services/billable_metrics/aggregations/weighted_sum_service.rb
+10 −19 app/services/billable_metrics/prorated_aggregations/base_service.rb
+15 −8 app/services/billable_metrics/prorated_aggregations/sum_service.rb
+140 −6 app/services/billable_metrics/prorated_aggregations/unique_count_service.rb
+49 −0 app/services/charges/filter_charge_model_properties_service.rb
+2 −2 app/services/charges/validators/standard_service.rb
+41 −0 app/services/commitments/override_service.rb
+1 −1 app/services/events/create_service.rb
+12 −0 app/services/events/stores/base_store.rb
+1 −1 app/services/events/stores/clickhouse_store.rb
+1 −1 app/services/fees/one_off_service.rb
+1 −6 app/services/invoices/customer_usage_service.rb
+7 −0 app/services/invoices/generate_pdf_service.rb
+71 −6 app/services/invoices/payments/adyen_service.rb
+38 −0 app/services/invoices/payments/generate_payment_url_service.rb
+26 −0 app/services/invoices/payments/payment_providers/factory.rb
+74 −1 app/services/invoices/payments/stripe_service.rb
+3 −3 app/services/payment_provider_customers/adyen_service.rb
+1 −1 app/services/payment_provider_customers/gocardless_service.rb
+2 −2 app/services/payment_provider_customers/stripe_service.rb
+19 −1 app/services/payment_providers/adyen_service.rb
+6 −1 app/services/plans/create_service.rb
+8 −0 app/services/plans/override_service.rb
+21 −9 app/services/plans/update_service.rb
+71 −42 app/services/quantified_events/create_or_update_service.rb
+4 −4 app/services/utils/pdf_generator.rb
+4 −1 app/views/templates/invoices/v4.slim
+16 −11 app/views/templates/invoices/v4/_subscription_details.slim
+1 −1 app/views/templates/invoices/v4/_subscriptions_summary.slim
+7 −0 config/routes.rb
+1 −1 db/clickhouse_migrate/20231026124912_create_events_raw_queue.rb
+1 −1 db/clickhouse_migrate/20231030163703_create_events_raw_mv.rb
+5 −5 db/clickhouse_schema.rb
+9 −0 db/migrate/20240205160647_remove_organization_sequential_id_index_from_invoices.rb
+1 −2 db/schema.rb
+5 −3 lib/lago/adyen/error_handlable.rb
+16 −1 schema.graphql
+84 −1 schema.json
+40 −0 spec/fixtures/adyen/webhook_authorisation_payment_response.json
+69 −0 spec/graphql/resolvers/memberships_resolver_spec.rb
+38 −0 spec/models/invoice_spec.rb
+50 −0 spec/queries/subscriptions_query_spec.rb
+30 −0 spec/requests/api/v1/invoices_spec.rb
+39 −15 spec/requests/api/v1/plans_spec.rb
+33 −0 spec/requests/api/v1/subscriptions_spec.rb
+1 −1 spec/requests/graphql_spec.rb
+278 −0 spec/scenarios/billable_metrics/sum_spec.rb
+200 −0 spec/scenarios/billable_metrics/unique_count_spec.rb
+100 −2 spec/scenarios/invoices/invoice_numbering_spec.rb
+24 −0 spec/serializers/v1/payment_providers/invoice_payment_serializer_spec.rb
+63 −19 spec/serializers/v1/subscription_serializer_spec.rb
+305 −4 spec/services/billable_metrics/aggregations/unique_count_service_spec.rb
+303 −4 spec/services/billable_metrics/prorated_aggregations/unique_count_service_spec.rb
+85 −0 spec/services/charges/filter_charge_model_properties_service_spec.rb
+13 −0 spec/services/charges/validators/standard_service_spec.rb
+49 −0 spec/services/commitments/override_service_spec.rb
+39 −0 spec/services/fees/one_off_service_spec.rb
+70 −0 spec/services/invoices/payments/adyen_service_spec.rb
+91 −0 spec/services/invoices/payments/generate_payment_url_service_spec.rb
+35 −0 spec/services/invoices/payments/payment_providers/factory_spec.rb
+63 −0 spec/services/invoices/payments/stripe_service_spec.rb
+19 −0 spec/services/payment_providers/adyen_service_spec.rb
+29 −0 spec/services/plans/override_service_spec.rb
+44 −0 spec/services/plans/update_service_spec.rb
+180 −7 spec/services/quantified_events/create_or_update_service_spec.rb
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:

api:
container_name: lago-api
image: getlago/api:v0.55.0-beta
image: getlago/api:v0.56.0-beta
restart: unless-stopped
depends_on:
- db
Expand Down Expand Up @@ -87,7 +87,7 @@ services:

front:
container_name: lago-front
image: getlago/front:v0.55.0-beta
image: getlago/front:v0.56.0-beta
restart: unless-stopped
# Use this command if you want to use SSL with Let's Encrypt
# command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
Expand Down Expand Up @@ -126,7 +126,7 @@ services:

api-worker:
container_name: lago-worker
image: getlago/api:v0.55.0-beta
image: getlago/api:v0.56.0-beta
restart: unless-stopped
depends_on:
api:
Expand Down Expand Up @@ -170,7 +170,7 @@ services:
# It is recommendend if you have a high usage of events to not impact the other Sidekiq Jobs.
#api-events-worker:
# container_name: lago-events-worker
# image: getlago/api:v0.55.0-beta
# image: getlago/api:v0.56.0-beta
# restart: unless-stopped
# depends_on:
# api:
Expand Down Expand Up @@ -208,7 +208,7 @@ services:

api-clock:
container_name: lago-clock
image: getlago/api:v0.55.0-beta
image: getlago/api:v0.56.0-beta
restart: unless-stopped
depends_on:
api:
Expand Down
2 changes: 1 addition & 1 deletion front

0 comments on commit cd0a47c

Please sign in to comment.