Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(declarative): declarative configuration #68

Merged
merged 11 commits into from
Dec 24, 2024

Conversation

vm-001
Copy link
Member

@vm-001 vm-001 commented Dec 5, 2024

Summary

  • Introduced declarative configuration.
  • Addedadmin sync and admin dump commands

Usage

$ webhookx admin sync webhookx.sample.yml
$ # equivalent to
$ webhookx admin sync webhookx.sample.yml --timeout 10 --addr http://localhost:8080 --workspace default
$ webhookx admin dump
$ # equivalent to
$ webhookx admin dump --timeout 10 --addr http://localhost:8080 --workspace default

@vm-001 vm-001 force-pushed the feat/declarative-configuration branch from bd49724 to bdf85dc Compare December 5, 2024 09:34
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 76.12457% with 138 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/declarative/declarative.go 66.66% 22 Missing and 11 partials ⚠️
cmd/admin_dump.go 56.36% 18 Missing and 6 partials ⚠️
cmd/admin_sync.go 70.96% 14 Missing and 4 partials ⚠️
db/entities/plugin.go 46.42% 10 Missing and 5 partials ⚠️
test/helper/factory/factory.go 89.60% 11 Missing and 2 partials ⚠️
pkg/declarative/types.go 60.86% 6 Missing and 3 partials ⚠️
admin/api/declarative.go 84.61% 6 Missing and 2 partials ⚠️
db/dao/dao.go 93.18% 2 Missing and 1 partial ⚠️
db/entities/source.go 57.14% 2 Missing and 1 partial ⚠️
pkg/plugin/init.go 76.92% 2 Missing and 1 partial ⚠️
... and 4 more
Flag Coverage Δ
integration 69.90% <76.12%> (+0.67%) ⬆️
unit 13.39% <13.87%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cmd/admin.go 100.00% <100.00%> (ø)
cmd/version.go 100.00% <100.00%> (+37.50%) ⬆️
db/dao/attempt_detail_dao.go 90.62% <100.00%> (ø)
db/entities/endpoint.go 76.47% <ø> (ø)
db/query/querys.go 95.00% <100.00%> (+1.06%) ⬆️
worker/worker.go 77.47% <100.00%> (ø)
admin/api/api.go 94.17% <90.00%> (+0.62%) ⬆️
cmd/root.go 76.47% <90.00%> (+47.89%) ⬆️
pkg/types/time.go 66.66% <0.00%> (-3.93%) ⬇️
db/dao/dao.go 82.31% <93.18%> (+1.61%) ⬆️
... and 10 more

@vm-001 vm-001 force-pushed the feat/declarative-configuration branch 4 times, most recently from 5106620 to 77daecf Compare December 12, 2024 10:17
@vm-001 vm-001 force-pushed the feat/declarative-configuration branch from 1dcc7a3 to f99e592 Compare December 24, 2024 08:30
@vm-001 vm-001 force-pushed the feat/declarative-configuration branch from 7a106dc to b346829 Compare December 24, 2024 08:50
@webhookx-x webhookx-x merged commit 1476967 into main Dec 24, 2024
6 checks passed
@webhookx-x webhookx-x deleted the feat/declarative-configuration branch December 24, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants