Skip to content

Commit 853a3fa

Browse files
committed
Merge branch 'main' into feat/repository-analytics
2 parents 8d3febc + ac322ca commit 853a3fa

131 files changed

Lines changed: 5004 additions & 1920 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.

.claude/skills/scaffold-snowflake-connector/SKILL.md

Lines changed: 691 additions & 0 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,13 @@ services/libs/tinybird/.diff_tmp
196196
# custom cursor rules
197197
.cursor/rules/*.local.mdc
198198

199-
# claude code rules
200-
CLAUDE.md
201-
.claude
199+
# claude code
200+
.claude/cache/
201+
.claude/tmp/
202+
.claude/logs/
203+
.claude/sessions/
204+
.claude/todos/
205+
.claude/settings.local.json
202206

203207
# git integration test repositories & output
204208
services/apps/git_integration/src/test/repos/

backend/.env.dist.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,5 @@ CROWD_GITHUB_IS_SNOWFLAKE_ENABLED=false
165165
CROWD_TINYBIRD_BASE_URL=http://localhost:7181/
166166

167167
# Auth0
168-
CROWD_AUTH0_ISSUER_BASE_URL=
168+
CROWD_AUTH0_ISSUER_BASE_URLS=
169169
CROWD_AUTH0_AUDIENCE=

backend/config/custom-environment-variables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"auth0": {
155155
"clientId": "CROWD_AUTH0_CLIENT_ID",
156156
"jwks": "CROWD_AUTH0_JWKS",
157-
"issuerBaseURL": "CROWD_AUTH0_ISSUER_BASE_URL",
157+
"issuerBaseURLs": "CROWD_AUTH0_ISSUER_BASE_URLS",
158158
"audience": "CROWD_AUTH0_AUDIENCE"
159159
},
160160
"sso": {

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"pg": "^8.7.3",
129129
"pg-promise": "^11.4.3",
130130
"sanitize-html": "^2.7.1",
131-
"sequelize": "6.21.2",
131+
"sequelize": "6.37.8",
132132
"sequelize-cli-typescript": "^3.2.0-c",
133133
"slack-block-builder": "^2.7.2",
134134
"socket.io": "^4.5.4",

backend/src/api/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as http from 'http'
77
import os from 'os'
88
import { QueryTypes } from 'sequelize'
99

10+
import { BadRequestError } from '@crowd/common'
1011
import { getDbConnection } from '@crowd/data-access-layer/src/database'
1112
import { getServiceLogger } from '@crowd/logging'
1213
import { getOpensearchClient } from '@crowd/opensearch'
@@ -147,6 +148,14 @@ setImmediate(async () => {
147148

148149
app.use(bodyParser.urlencoded({ limit: '5mb', extended: true }))
149150

151+
app.use((err: any, req: any, res: any, next: any) => {
152+
if (err.type === 'entity.parse.failed') {
153+
next(new BadRequestError('Invalid JSON body'))
154+
return
155+
}
156+
next(err)
157+
})
158+
150159
app.use((req, res, next) => {
151160
// @ts-ignore
152161
req.userData = {

backend/src/api/member/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default (app) => {
99
app.put(`/member/:id`, safeWrap(require('./memberUpdate').default))
1010
app.delete(`/member`, safeWrap(require('./memberDestroy').default))
1111
app.post(`/member/autocomplete`, safeWrap(require('./memberAutocomplete').default))
12-
app.get(`/member/active`, safeWrap(require('./memberActiveList').default))
1312
app.get(`/member/bot-suggestions`, safeWrap(require('./memberBotSuggestionsList').default))
1413

1514
app.get(`/member/:id`, safeWrap(require('./memberFind').default))

backend/src/api/member/memberActiveList.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

backend/src/api/organization/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default (app) => {
66
app.put(`/organization/:id`, safeWrap(require('./organizationUpdate').default))
77
app.delete(`/organization`, safeWrap(require('./organizationDestroy').default))
88
app.post(`/organization/autocomplete`, safeWrap(require('./organizationAutocomplete').default))
9-
app.get(`/organization/active`, safeWrap(require('./organizationActiveList').default))
109
app.get(`/organization/:id`, safeWrap(require('./organizationFind').default))
1110

1211
app.put(`/organization/:organizationId/merge`, safeWrap(require('./organizationMerge').default))

backend/src/api/organization/organizationActiveList.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)