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

Feature: Add External Source (and External Event) Attribute Validation #116

Open
wants to merge 31 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
69f2ec2
Add routes for CreateExternalSource, CreateExternalSourceType, and Cr…
Nov 8, 2024
b9839d3
require source type to specify associated event types
Nov 13, 2024
f77f9e0
check event types in external source
Nov 13, 2024
78c94a8
ensure external event attributes actually checked
Nov 14, 2024
ca07a17
add external source validation to gateway
Nov 15, 2024
6995e66
add validation tests
Nov 15, 2024
578fbac
improve return
Nov 15, 2024
05efd84
additional error handling
Nov 18, 2024
897e88c
remove allowed event type functionality from source type creation and…
Nov 18, 2024
eb1ac18
final edits for error handling
Nov 18, 2024
3fbecf9
remove console.logs
Nov 18, 2024
48cb21c
Update error responses from external source/event end-points
Nov 19, 2024
accf345
Update logging messages & use JSON for all responses
Nov 20, 2024
6b68977
Improve error handling w. AJV.errors
Nov 20, 2024
0821432
Formatting fix
Nov 20, 2024
de0f009
Rework external source & event end-points to use multipart/form-data
Nov 21, 2024
30967c3
Rework uploadExternalSource to use form data rather than file
Nov 21, 2024
3ccd817
Rework Hasura responses
Nov 21, 2024
c283394
Formatting fixes
Nov 22, 2024
c62023e
attempt merge i
Nov 22, 2024
cf1dfe9
attempt merge ii
Nov 22, 2024
06b0415
update gateway tests
Nov 22, 2024
e32f95a
Partial refactor of new schema compilation code
Nov 22, 2024
27422a4
Add description for request objects
Nov 25, 2024
574a0cd
update for e2e tests
Nov 25, 2024
6edace6
minor fix post rebase
Nov 25, 2024
092671e
external_events => events
Nov 25, 2024
c8cb137
formatting
Nov 25, 2024
1a0ee20
formatting
Nov 26, 2024
9f90170
Formatting
Dec 3, 2024
d25e67a
Formatting, cleanup
Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
683 changes: 369 additions & 314 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
"nodemon": "^3.1.4",
"prettier": "^3.0.0",
"typescript": "^5.1.6",
"vitest": "^1.2.2"
"vitest": "^1.4.0"
}
}
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import initHasuraRoutes from './packages/hasura/hasura-events.js';
import initHealthRoutes from './packages/health/health.js';
import initPlanRoutes from './packages/plan/plan.js';
import initSwaggerRoutes from './packages/swagger/swagger.js';
import initExternalSourceRoutes from './packages/external-source/external-source.js';
import cookieParser from 'cookie-parser';
import { AuthAdapter } from './types/auth.js';
import { NoAuthAdapter } from './packages/auth/adapters/NoAuthAdapter.js';
Expand Down Expand Up @@ -48,6 +49,7 @@ async function main(): Promise<void> {
initHealthRoutes(app);
initHasuraRoutes(app);
initPlanRoutes(app);
initExternalSourceRoutes(app);
initSwaggerRoutes(app);

app.listen(PORT, () => {
Expand Down
Loading
Loading