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: warehouse #23714

Open
wants to merge 72 commits into
base: master
Choose a base branch
from
Open

feature: warehouse #23714

wants to merge 72 commits into from

Conversation

jordienr
Copy link
Member

@jordienr jordienr commented May 3, 2024

  • CRUD warehouse collections
  • CRUD warehouse access tokens
  • Navigate events in a collection

jordienr and others added 30 commits February 22, 2024 10:14
…tion.tsx, WarehouseCollectionDetail.tsx, and LogsLayout.tsx
onSuccess: (data: Awaited<ReturnType<typeof createCollection>>) => void
}

export function useCreateCollection({ projectRef, onSuccess }: CreateCollectionArgs) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be updated to be consistent with how we're doing RQ mutations

collectionToken: string
onSuccess: () => void
}
export function useDeleteCollection({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be updated to be consistent with how we're doing RQ mutations

name?: string
// description?: string
}
export function useUpdateCollection({ projectRef, collectionToken }: UpdateCollectionArgs) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be updated to be consistent with how we're doing RQ mutations

throw new Error('projectRef is required')
}

const response = await get<WarehouseEndpointsResponse>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use get from data/fetchers

throw new Error('projectRef is required')
}

const response = await get<WarehouseTenantResponse>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use get from data/fetchers


PageLayout.getLayout = (page) => <LogsLayout>{page}</LogsLayout>

export default observer(PageLayout)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for observer - observer is only for if we're using mobx (which we're deprecating)


PageLayout.getLayout = (page) => <LogsLayout>{page}</LogsLayout>

export default observer(PageLayout)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for observer

….tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
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.

None yet

3 participants