Skip to content

Commit

Permalink
misc: Bump version to v0.48.0-beta (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Sep 21, 2023
1 parent 8e9c483 commit 835f939
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api
Submodule api updated 93 files
+5 −5 Gemfile.lock
+1 −0 app/controllers/api/v1/plans_controller.rb
+40 −18 app/controllers/api/v1/subscriptions_controller.rb
+1 −0 app/graphql/mutations/plans/create.rb
+1 −0 app/graphql/mutations/plans/update.rb
+22 −0 app/graphql/resolvers/subscription_resolver.rb
+2 −2 app/graphql/types/add_ons/object.rb
+2 −2 app/graphql/types/coupons/object.rb
+2 −2 app/graphql/types/customers/object.rb
+5 −4 app/graphql/types/plans/object.rb
+1 −0 app/graphql/types/query_type.rb
+12 −0 app/graphql/types/subscriptions/charge_overrides_input.rb
+1 −0 app/graphql/types/subscriptions/create_subscription_input.rb
+14 −0 app/graphql/types/subscriptions/plan_overrides_input.rb
+5 −2 app/jobs/clock/subscriptions_to_be_terminated_job.rb
+6 −2 app/models/charge.rb
+16 −4 app/models/plan.rb
+4 −0 app/models/subscription.rb
+1 −1 app/serializers/v1/billable_metric_serializer.rb
+1 −0 app/serializers/v1/coupon_serializer.rb
+2 −0 app/serializers/v1/plan_serializer.rb
+1 −1 app/services/billable_metrics/aggregations/base_service.rb
+6 −0 app/services/billable_metrics/aggregations/sum_service.rb
+2 −0 app/services/billable_metrics/aggregations/unique_count_service.rb
+45 −12 app/services/billable_metrics/aggregations/weighted_sum_service.rb
+1 −0 app/services/billable_metrics/update_service.rb
+50 −0 app/services/charges/override_service.rb
+4 −2 app/services/customers/update_service.rb
+10 −2 app/services/events/create_service.rb
+3 −1 app/services/events/validate_creation_service.rb
+1 −0 app/services/fees/charge_service.rb
+9 −1 app/services/fees/subscription_service.rb
+53 −14 app/services/invoices/calculate_fees_service.rb
+1 −0 app/services/invoices/customer_usage_service.rb
+6 −1 app/services/payment_provider_customers/stripe_service.rb
+2 −4 app/services/payment_providers/stripe_service.rb
+2 −0 app/services/plans/create_service.rb
+49 −0 app/services/plans/override_service.rb
+1 −0 app/services/plans/update_service.rb
+4 −0 app/services/subscriptions/billing_service.rb
+5 −1 app/services/subscriptions/create_service.rb
+16 −0 app/views/helpers/interval_helper.rb
+1 −1 app/views/templates/credit_note.slim
+173 −161 app/views/templates/invoices/_subscription_details.slim
+2 −2 app/views/templates/invoices/_subscriptions_summary.slim
+7 −0 app/views/templates/invoices/fees/_true_up_fee.slim
+3 −9 app/views/templates/invoices/v1.slim
+3 −9 app/views/templates/invoices/v2.slim
+9 −1 clock.rb
+5 −0 config/locales/de/invoice.yml
+5 −0 config/locales/en/invoice.yml
+5 −0 config/locales/fr/invoice.yml
+5 −0 config/locales/it/invoice.yml
+5 −0 config/locales/nb/invoice.yml
+1 −1 config/routes.rb
+7 −0 db/migrate/20230907064335_add_invoice_display_name_to_plans.rb
+12 −0 db/migrate/20230915073205_update_code_index_on_plans.rb
+10 −0 db/migrate/20230918090426_add_index_to_events.rb
+9 −0 db/migrate/20230920083133_add_gin_index_to_events.rb
+5 −3 db/schema.rb
+36 −6 schema.graphql
+273 −20 schema.json
+1 −1 spec/clock_spec.rb
+1 −0 spec/factories/plans.rb
+3 −0 spec/graphql/mutations/plans/create_spec.rb
+3 −0 spec/graphql/mutations/plans/update_spec.rb
+23 −12 spec/graphql/mutations/subscriptions/create_spec.rb
+2 −2 spec/graphql/resolvers/add_on_resolver_spec.rb
+2 −2 spec/graphql/resolvers/coupon_resolver_spec.rb
+2 −2 spec/graphql/resolvers/plan_resolver_spec.rb
+2 −2 spec/graphql/resolvers/plans_resolver_spec.rb
+78 −0 spec/graphql/resolvers/subscription_resolver_spec.rb
+30 −0 spec/graphql/types/plans/object_spec.rb
+36 −9 spec/jobs/clock/subscriptions_to_be_terminated_job_spec.rb
+13 −0 spec/models/charge_spec.rb
+20 −0 spec/models/plan_spec.rb
+46 −0 spec/models/subscription_spec.rb
+2 −0 spec/requests/api/v1/plans_spec.rb
+60 −16 spec/requests/api/v1/subscriptions_spec.rb
+107 −0 spec/scenarios/billable_metrics/weighted_sum_spec.rb
+264 −0 spec/scenarios/subscriptions/terminate_ended_spec.rb
+1 −0 spec/serializers/v1/coupon_serializer_spec.rb
+23 −19 spec/serializers/v1/plan_serializer_spec.rb
+87 −19 spec/services/billable_metrics/aggregations/weighted_sum_service_spec.rb
+100 −0 spec/services/charges/override_service_spec.rb
+25 −0 spec/services/customers/update_service_spec.rb
+11 −4 spec/services/fees/charge_service_spec.rb
+43 −0 spec/services/payment_provider_customers/stripe_service_spec.rb
+5 −8 spec/services/payment_providers/stripe_service_spec.rb
+4 −0 spec/services/plans/create_service_spec.rb
+125 −0 spec/services/plans/override_service_spec.rb
+3 −0 spec/services/plans/update_service_spec.rb
+23 −0 spec/services/subscriptions/billing_service_spec.rb
8 changes: 4 additions & 4 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.47.0-beta
image: getlago/api:v0.48.0-beta
restart: unless-stopped
depends_on:
- db
Expand Down Expand Up @@ -79,7 +79,7 @@ services:

front:
container_name: lago-front
image: getlago/front:v0.47.0-beta
image: getlago/front:v0.48.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 @@ -117,7 +117,7 @@ services:

api-worker:
container_name: lago-worker
image: getlago/api:v0.47.0-beta
image: getlago/api:v0.48.0-beta
restart: unless-stopped
depends_on:
- api
Expand Down Expand Up @@ -155,7 +155,7 @@ services:

api-clock:
container_name: lago-clock
image: getlago/api:v0.47.0-beta
image: getlago/api:v0.48.0-beta
restart: unless-stopped
depends_on:
- api
Expand Down
2 changes: 1 addition & 1 deletion front
Submodule front updated 61 files
+6 −8 .github/workflows/cypress.yml
+1 −1 .github/workflows/manual-release.yml
+1 −1 .github/workflows/release.yml
+0 −9 ci/docker-compose.ci.yml
+23 −0 cypress/e2e/10-resources/t30-create-bm.cy.ts
+25 −25 cypress/e2e/10-resources/t40-create-plan.cy.ts
+26 −20 cypress/e2e/10-resources/t50-edit-plan.cy.ts
+18 −9 ditto/base.json
+8 −0 ditto/config.yml
+9 −0 ditto/index.js
+6 −0 docker-compose.ci.yml
+1 −0 jest.config.js
+1 −0 nginx/nginx.conf
+1 −1 package.json
+15 −17 src/components/addOns/AddOnItem.tsx
+3 −3 src/components/coupons/CouponItem.tsx
+3 −3 src/components/customers/CustomerItem.tsx
+113 −115 src/components/customers/subscriptions/AddSubscriptionDrawer.tsx
+109 −13 src/components/customers/subscriptions/EditCustomerSubscriptionDrawer.tsx
+93 −0 src/components/customers/subscriptions/SubscriptionDatesOffsetHelperComponent.tsx
+14 −5 src/components/customers/subscriptions/SubscriptionItem.tsx
+5 −0 src/components/customers/subscriptions/SubscriptionLine.tsx
+2 −2 src/components/customers/subscriptions/TerminateCustomerSubscriptionDialog.tsx
+163 −0 src/components/customers/subscriptions/__tests__/SubscriptionDatesOffsetHelperComponent.test.tsx
+1 −7 src/components/designSystem/Button.tsx
+8 −1 src/components/designSystem/ButtonLink.tsx
+72 −0 src/components/designSystem/__tests__/Button.test.tsx
+110 −0 src/components/designSystem/__tests__/ButtonLink.test.tsx
+2 −1 src/components/form/ButtonSelector/ButtonSelector.tsx
+42 −20 src/components/form/DatePicker/DatePicker.tsx
+0 −110 src/components/form/TimePicker/TimePicker.tsx
+0 −46 src/components/form/TimePicker/TimePickerField.tsx
+0 −2 src/components/form/TimePicker/index.ts
+100 −0 src/components/invoices/EditInvoiceDisplayName.tsx
+8 −1 src/components/invoices/InvoiceCreditNotesTable.tsx
+34 −11 src/components/invoices/InvoiceDetailsTable.tsx
+1 −1 src/components/invoices/InvoiceDetailsTableFeeItem.tsx
+13 −4 src/components/plans/ChargeAccordion.tsx
+4 −4 src/components/plans/ChargesSection.tsx
+89 −47 src/components/plans/FixedFeeSection.tsx
+5 −5 src/components/plans/PlanItem.tsx
+2 −2 src/components/plans/PlanSettingsSection.tsx
+10 −7 src/core/apolloClient/reactiveVars/overwritePlanVar.ts
+5 −0 src/core/constants/form.ts
+23 −0 src/core/timezone/__tests__/config.test.ts
+73 −0 src/formValidation/__tests__/feesSchema.test.ts
+126 −0 src/formValidation/__tests__/metadataSchema.test.ts
+1 −1 src/formValidation/feesSchema.ts
+2 −2 src/formValidation/metadataSchema.ts
+199 −58 src/generated/graphql.tsx
+18 −5 src/hooks/customer/useAddSubscription.tsx
+143 −44 src/hooks/plans/usePlanForm.tsx
+4 −1 src/hooks/useCreateCreditNote.ts
+20 −2 src/hooks/useCreateEditBillableMetric.ts
+0 −3 src/hooks/useOrganizationInfos.ts
+100 −65 src/pages/CreateBillableMetric.tsx
+13 −101 src/pages/CreatePlan.tsx
+10 −3 src/pages/CreditNoteDetails.tsx
+3 −3 src/pages/CustomerDetails.tsx
+0 −22 src/pages/__devOnly/DesignSystem.tsx
+19 −24 yarn.lock

0 comments on commit 835f939

Please sign in to comment.