• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

raystack / frontier / 9148157228
38%

Build:
DEFAULT BRANCH: main
Ran 19 May 2024 01:55PM UTC
Jobs 1
Files 239
Run time 30min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 May 2024 01:52PM UTC coverage: 9.379% (-0.04%) from 9.42%
9148157228

push

github

web-flow
feat: accept stripe webhooks events to sync state faster (#622)

* feat: billing provider webhook handler

- this reduces delay of syncing states between frontier and the
billing provider

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>

* feat: accept stripe webhooks events to sync state faster

- A new RPC BillingWebhookCallback(/v1beta1/billing/webhooks/callback/{provider})
allows accepting stripe webhook events being sent to frontier
- This reduces the delay between the state sync between stripe
and frontier for customer changes, checkout success, etc.
- Stripe endpoint secret needs to be set in frontier config
under `billing.stripe_webhook_secrets`. It accepts an array
of keys and all keys will be tried to validate the event. If
the validation fails, event will be discarded.

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>

---------

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>

1 of 570 new or added lines in 18 files covered. (0.18%)

3 existing lines in 2 files now uncovered.

9560 of 101934 relevant lines covered (9.38%)

2.69 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% core/event/listener.go
1
0.0
0.0% internal/api/v1beta1/v1beta1.go
3
0.0
0.0% cmd/serve.go
5
0.0
0.0% internal/store/postgres/billing_customer_repository.go
5
0.0
0.0% pkg/server/interceptors/enrich.go
7
17.65
-12.35% billing/customer/customer.go
8
0.0
0.0% internal/store/postgres/billing_checkout_repository.go
12
0.0
0.0% billing/customer/service.go
13
0.0
0.0% billing/checkout/service.go
14
0.0
internal/api/v1beta1/billing_webhook.go
15
0.0
0.0% pkg/server/server.go
16
0.0
0.0% billing/subscription/service.go
23
0.0
pkg/server/interceptors/byte_mimetype.go
26
0.0
0.0% proto/v1beta1/frontier_grpc.pb.go
95
0.0
0.0% proto/v1beta1/frontier.pb.gw.go
99
0.0
0.0% proto/v1beta1/frontier.pb.validate.go
102
5.88
-0.03% proto/v1beta1/frontier.pb.go
124
0.0
core/event/service.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% proto/v1beta1/frontier_grpc.pb.go
2
0.0
0.0% proto/v1beta1/frontier.pb.gw.go
Jobs
ID Job ID Ran Files Coverage
1 9148157228.1 19 May 2024 01:55PM UTC 239
9.38
GitHub Action Run
Source Files on build 9148157228
  • Tree
  • List 239
  • Changed 16
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8452cf03 on github
  • Prev Build on main (#9108032192)
  • Next Build on main (#9148561630)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc