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

Raw project query #382

Merged
merged 11 commits into from
Dec 28, 2024
Merged

Raw project query #382

merged 11 commits into from
Dec 28, 2024

Conversation

N2D4
Copy link
Contributor

@N2D4 N2D4 commented Dec 27, 2024


Important

Add raw SQL project query, composite index for Event table, and refactor code for improved performance and consistency.

  • Database:
    • Add composite index idx_event_userid_projectid_eventstartedat to Event table in migration.sql for improved query performance.
  • Queries:
    • Introduce getProjectQuery() in projects.tsx for fetching project data using raw SQL.
    • Refactor getProject() in projects.tsx to use getProjectQuery().
  • Error Handling:
    • Enhance error message in getUserQuery() in crud.tsx.
    • Add throwErr usage in verify-data-integrity.ts for pagination handling.
  • String Comparison:
    • Replace localeCompare with stringCompare in multiple files for consistent string comparison.
  • Miscellaneous:
    • Add stringCompare function to strings.tsx.
    • Update ESLint rules to enforce stringCompare usage.
    • Fix typo in users.test.ts.

This description was created by Ellipsis for 1cf1b6f. It will automatically update as commits are pushed.

Copy link

vercel bot commented Dec 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stack-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2024 7:49pm
stack-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2024 7:49pm
stack-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2024 7:49pm

@N2D4 N2D4 marked this pull request as ready for review December 28, 2024 19:46
@N2D4 N2D4 merged commit cf95bb7 into dev Dec 28, 2024
11 of 14 checks passed
@N2D4 N2D4 deleted the raw-project-query branch December 28, 2024 19:47
jshimko added a commit to jshimko/stack that referenced this pull request Dec 28, 2024
* dev: (138 commits)
  Raw project query (stack-auth#382)
  Require pagination cursor to be UUID
  Fix unit tests
  Fix users query
  Log error when selected team member has no team
  chore: update package versions
  Raw SQL query for fetching users (stack-auth#381)
  Better 429 request logging
  Fix STACK-SERVER-NH
  Only fetch keys that are required for the access type
  Improved OTel spans
  Better traceSpan signature
  Even more OTel spans
  Add display name to span attributes
  More OTel spans
  Update backend TypeScript target
  chore: update package versions
  removed GET team transaction
  fixed smtp config bug
  Insert final newline on file save
  ...

# Conflicts:
#	.github/workflows/docker-build.yaml
#	apps/backend/package.json
#	apps/backend/prisma/seed.ts
#	apps/backend/sentry.client.config.ts
#	apps/backend/src/polyfills.tsx
#	apps/dashboard/sentry.client.config.ts
#	apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/projects/page-client.tsx
#	apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/auth-methods/providers.tsx
#	apps/dashboard/src/components/data-table/user-table.tsx
#	apps/dashboard/src/components/version-alerter.tsx
#	apps/dashboard/src/polyfills.tsx
#	examples/cjs-test/package.json
#	examples/demo/src/app/page-client.tsx
#	examples/middleware/package.json
#	examples/partial-prerendering/package.json
#	package.json
#	packages/stack/package.json
#	packages/stack/src/generated/quetzal-translations.ts
#	packages/stack/src/lib/stack-app.ts
#	pnpm-lock.yaml
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.

1 participant