You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -89,6 +90,13 @@ var CollectIssuesMeta = plugin.SubTaskMeta{
89
90
- Use `helper.NewStatefulApiCollector` for incremental collection with time-based bookmarking
90
91
- See [backend/plugins/gitlab/tasks/issue_collector.go](backend/plugins/gitlab/tasks/issue_collector.go)
91
92
93
+
### Custom Plugin: q_dev (AWS Q Developer)
94
+
[backend/plugins/q_dev/](backend/plugins/q_dev/) is a fork-specific plugin that collects Amazon Q Developer
95
+
usage metrics from **AWS S3** (not a REST API). Scoping is S3 prefix-based (`QDevS3Slice`/`QDevS3FileMeta`
96
+
with year/month partitioning) rather than domain-layer scopes. Models: `QDevConnection`, `QDevUserData`,
97
+
`QDevUserReport`, `QDevChatLog`, `QDevCompletionLog`. It implements `PluginInit` and
98
+
`DataSourcePluginBlueprintV200`. A LocalStack S3 mock can be used for local/E2E runs.
99
+
92
100
### Migration Scripts
93
101
- Located in `models/migrationscripts/`
94
102
- Register all scripts in `register.go`'s `All()` function
@@ -117,11 +125,14 @@ make e2e-test-go-plugins # Run E2E tests for Go plugins only
117
125
118
126
### Running Locally
119
127
```bash
120
-
docker-compose -f docker-compose-dev.yml up mysql grafana # Start deps
128
+
# MySQL stack (docker-compose-dev.yml does NOT exist - use the DB-specific files)
129
+
docker-compose -f docker-compose-dev-mysql.yml up mysql grafana # MySQL + Grafana
130
+
docker-compose -f docker-compose-dev-postgresql.yml up postgres grafana # or PostgreSQL + Grafana
121
131
make dev # Run server on :8080
122
132
cd config-ui && yarn && yarn start # UI on :4000
123
133
```
124
134
135
+
125
136
## Testing
126
137
127
138
### Unit Tests
@@ -130,6 +141,10 @@ Place `*_test.go` files alongside source. Use mocks from `backend/mocks/`. Mocks
130
141
### E2E Tests for Plugins
131
142
Use CSV fixtures in `e2e/` directory. See [backend/test/helper/](backend/test/helper/) for the Go test client that can spin up an in-memory DevLake instance.
132
143
144
+
### Playwright E2E (full flow)
145
+
The top-level [e2e/](e2e/) directory holds Playwright browser tests against a running stack. Open the
146
+
report with `cd e2e && npx playwright show-report`.
0 commit comments