Skip to content

Commit f39aa2c

Browse files
authored
Merge pull request #80 from trydirect/feature-performance-improvements
Feature performance improvements
2 parents fb58d39 + 8046d52 commit f39aa2c

114 files changed

Lines changed: 6491 additions & 800 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ REDIS_URL=redis://127.0.0.1/
1212
VAULT_ADDRESS=http://127.0.0.1:8200
1313
VAULT_TOKEN=your_vault_token_here
1414
VAULT_AGENT_PATH_PREFIX=agent
15+
16+
STACKER_CASBIN_RELOAD_ENABLED=true
17+
STACKER_CASBIN_RELOAD_INTERVAL_SECS=60
18+
19+
STACKER_AGENT_POLL_TIMEOUT_SECS=30
20+
STACKER_AGENT_POLL_INTERVAL_SECS=2

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515

1616
cicd-docker:
1717
name: Cargo and npm build
18-
#runs-on: ubuntu-latest
19-
runs-on: self-hosted
18+
runs-on: ubuntu-latest
19+
#runs-on: self-hosted
2020
env:
2121
SQLX_OFFLINE: true
2222
steps:

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Rust
2+
permissions:
3+
contents: read
24

35
on:
46
push:

.sqlx/query-546d2bb7ff653c0ae1f6dcc5e68b12a670230de592557d27159acd2fc09400c6.json

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-aa21279e6479dd588317bbb4c522094f0cf8736710de08963fff1178f2b62974.json

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-f167d43c97ad2a1b75c7c598fd9adf0bb815a11266e33880196cf6fb974b95f4.json

Lines changed: 102 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## 2026-01-06
6+
7+
### Added
8+
- Real HTTP-mocked tests for `UserServiceClient` covering user profile retrieval, product lookups, and template ownership checks.
9+
- Integration-style webhook tests that verify the payloads emitted by `MarketplaceWebhookSender` for approved, updated, and rejected templates.
10+
- Deployment validation tests ensuring plan gating and marketplace ownership logic behave correctly for free, paid, and plan-restricted templates.
11+
12+
## 2026-01-16
13+
14+
### Added
15+
- Configurable agent command polling defaults via config and environment variables.
16+
- Configurable Casbin reload enablement and interval.
17+
18+
### Changed
19+
- OAuth token validation uses a shared HTTP client and short-lived cache for reduced latency.
20+
- Agent command polling endpoint accepts optional `timeout` and `interval` parameters.
21+
- Casbin reload is guarded to avoid blocking request handling and re-applies route matching after reload.
22+
23+
### Fixed
24+
- Status panel command updates query uses explicit bindings to avoid SQLx type inference errors.
25+

Cargo.lock

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)