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
base: master
Are you sure you want to change the base?
feature: warehouse #23714
Conversation
jordienr
commented
May 3, 2024
- CRUD warehouse collections
- CRUD warehouse access tokens
- Navigate events in a collection
… into feat/event-collections
…tion.tsx, WarehouseCollectionDetail.tsx, and LogsLayout.tsx
…at/event-collections
onSuccess: (data: Awaited<ReturnType<typeof createCollection>>) => void | ||
} | ||
|
||
export function useCreateCollection({ projectRef, onSuccess }: CreateCollectionArgs) { |
There was a problem hiding this comment.
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({ |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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>( |
There was a problem hiding this comment.
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>( |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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>