Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion apps/docs/content/guides/database/pgadmin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ hideToc: true

<StepHikeCompact.Details title="Connect">

Add the connection info. Go to your [`Database Settings`](https://supabase.com/dashboard/project/_/settings/database). Make sure `Use connection pooling` is enabled. Switch the connection mode to `Session` and copy your connection parameters. Fill in your Database password that you made when creating your project (It can be reset in Database Settings above if you don't have it).
Add the connection info. Click the "Connect" button at the top of the page to open the connect Modal. Scroll down to "session pooler", click "view parameters" to toggle the parameters menu open and copy your connection parameters. Fill in your Database password that you made when creating your project (It can be reset in Database Settings above if you don't have it).

</StepHikeCompact.Details>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import {
import { useProjectStorageConfigQuery } from 'data/config/project-storage-config-query'
import { useBucketCreateMutation } from 'data/storage/bucket-create-mutation'
import { useIcebergWrapperCreateMutation } from 'data/storage/iceberg-wrapper-create-mutation'
import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'
import { BASE_PATH, IS_PLATFORM } from 'lib/constants'
import {
Alert_Shadcn_,
Expand Down Expand Up @@ -74,6 +76,8 @@ export type CreateBucketForm = z.infer<typeof FormSchema>

const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {
const { ref } = useParams()
const org = useSelectedOrganization()
const { mutate: sendEvent } = useSendEventMutation()
const router = useRouter()

const { mutateAsync: createBucket, isLoading: isCreating } = useBucketCreateMutation()
Expand Down Expand Up @@ -134,6 +138,11 @@ const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {
file_size_limit: fileSizeLimit,
allowed_mime_types: allowedMimeTypes,
})
sendEvent({
action: 'storage_bucket_created',
properties: { bucketType: values.type },
groups: { project: ref ?? 'Unknown', organization: org?.slug ?? 'Unknown' },
})

if (values.type === 'ANALYTICS' && icebergWrapperExtensionState === 'installed') {
await createIcebergWrapper({ bucketName: values.name })
Expand Down
22 changes: 22 additions & 0 deletions packages/common/telemetry-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,27 @@ export interface ForeignDataWrapperCreatedEvent {
}
}

/**
* Triggered when a new storage bucket is created in a project.
*
* @group Events
* @source studio
* @page /dashboard/project/{ref}/storage/buckets
*/
export interface StorageBucketCreatedEvent {
action: 'storage_bucket_created'
properties: {
/**
* The type of the bucket created. E.g. standard or analytics iceberg.
*/
bucketType?: string
}
groups: {
project: string
organization: string
}
}

/**
* @hidden
*/
Expand Down Expand Up @@ -1443,3 +1464,4 @@ export type TelemetryEvent =
| AiAssistantInSupportFormClickedEvent
| OrganizationMfaEnforcementUpdated
| ForeignDataWrapperCreatedEvent
| StorageBucketCreatedEvent
Loading