-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: replace vdp-sdk/organization with instill-sdk #1564
feat: replace vdp-sdk/organization with instill-sdk #1564
Conversation
📦 Next.js Bundle Analysis for instillai-consoleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
a6f0444
to
739c2a0
Compare
📦 Next.js Bundle Analysis for instillai-consoleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
@@ -0,0 +1,7 @@ | |||
export type UnionUndefinedToNull<T> = T extends undefined ? null : T; | |||
|
|||
export type UndefinedToNull<T> = { |
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.
What does this type do?
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.
It will convert all the undefined to null, leave it for future usage
|
||
const queryKey = getUseOrganizationsQueryKey(); | ||
|
||
return useQuery({ |
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.
Does it return the orgs based on the access token?
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.
yes, under the hood BE will use the accessToken to parse the correct user_id
} | ||
|
||
export function getUseOrganizationsQueryKey() { | ||
return ["organization"]; |
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.
Does it make sense to use plural?
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.
Oh no... I need to change it
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.
Mostly looks like the org endpoints got an updated. Otherwise pure code style stuff.
📦 Next.js Bundle Analysis for instillai-consoleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
🤖 I have created a release *beep* *boop* --- <details><summary>0.62.0-beta</summary> ## [0.62.0-beta](v0.61.0-beta...v0.62.0-beta) (2024-11-05) ### Features * **catalog:** migrate API calls to sdk CatalogClient ([#1572](#1572)) ([a305c98](a305c98)) * **integration:** add google-drive integration ([#1569](#1569)) ([09eee30](09eee30)) * make the sdk e2e test mark every queryParam as required ([#1577](#1577)) ([99c16a2](99c16a2)) * replace vdp-sdk/model with instill-sdk ([#1566](#1566)) ([014f3ae](014f3ae)) * retire name parameter in the pipeline related endpoint ([#1575](#1575)) ([533e757](533e757)) ### Bug Fixes * fix and adapt new dashboard endpoint ([#1594](#1594)) ([e043500](e043500)) ### Miscellaneous * **component:** rename restapi component to http component ([#1579](#1579)) ([be56f33](be56f33)) </details> <details><summary>@instill-ai/design-system: 0.83.0</summary> ## [0.83.0](https://github.com/instill-ai/console/compare/@instill-ai/design-system-v0.82.1...@instill-ai/design-system-v0.83.0) (2024-11-05) ### Features * **design-system:** feat add slider ([#1571](#1571)) ([8e3e655](8e3e655)) </details> <details><summary>@instill-ai/toolkit: 0.110.0</summary> ## [0.110.0](https://github.com/instill-ai/console/compare/@instill-ai/toolkit-v0.109.0...@instill-ai/toolkit-v0.110.0) (2024-11-05) ### Features * **catalog:** add notification while file is being deleted ([#1584](#1584)) ([43d1d2e](43d1d2e)) * **catalog:** add Requester UID to example code in Ask and Retrieve pages ([#1574](#1574)) ([4f7b837](4f7b837)) * **catalog:** migrate API calls to sdk CatalogClient ([#1572](#1572)) ([a305c98](a305c98)) * **integration:** add google-drive integration ([#1569](#1569)) ([09eee30](09eee30)) * make the sdk e2e test mark every queryParam as required ([#1577](#1577)) ([99c16a2](99c16a2)) * remove vdp-sdk and rename it to sdk-helper ([#1568](#1568)) ([cfcd5ae](cfcd5ae)) * replace vdp-sdk/model with instill-sdk ([#1566](#1566)) ([014f3ae](014f3ae)) * replace vdp-sdk/organization with instill-sdk ([#1564](#1564)) ([2742cc7](2742cc7)) * retire name parameter in the pipeline related endpoint ([#1575](#1575)) ([533e757](533e757)) * retire name parameter of token related endpoints ([#1582](#1582)) ([0de03b3](0de03b3)) * retire name parameter on credit related endpoint ([#1580](#1580)) ([d1e29b9](d1e29b9)) * retire name parameter on integration related endpoint ([#1581](#1581)) ([4b9c21a](4b9c21a)) * revamp catalog sdk and its react-query ([#1578](#1578)) ([a8901bd](a8901bd)) * support document format for pipeline input and output ([#1586](#1586)) ([8f5c581](8f5c581)) ### Bug Fixes * **artifact:** fix Artifact File details markdown format ([#1570](#1570)) ([d67e6c0](d67e6c0)) * **catalog:** disable clone button if namespace is full ([#1592](#1592)) ([e8e33b3](e8e33b3)) * **catalog:** fix remove floating tooltip from card ([#1573](#1573)) ([0824467](0824467)) * **catalog:** start file upload progress tracking immediately after uploading files ([#1587](#1587)) ([0f57e88](0f57e88)) * fix and adapt new dashboard endpoint ([#1594](#1594)) ([e043500](e043500)) * fix cant clone pipeline from pipeline list page ([#1567](#1567)) ([d9945a9](d9945a9)) * fix list pipeline's query key is not present, and catalog fileUid issue ([#1588](#1588)) ([8cae285](8cae285)) * fix pipeline is new flag not present issue ([#1583](#1583)) ([fb4ebc1](fb4ebc1)) * fix pipeline preview is wrong when reference the component in the same iterator ([#1589](#1589)) ([48cde51](48cde51)) ### Miscellaneous * deprecate the vdp-sdk/metric in toolkit ([#1559](#1559)) ([8ca0ad9](8ca0ad9)) * retire vdp-sdk/operation ([#1565](#1565)) ([0cc858a](0cc858a)) </details> <details><summary>instill-sdk: 0.11.0</summary> ## [0.11.0](instill-sdk-v0.10.0...instill-sdk-v0.11.0) (2024-11-05) ### Features * **catalog:** migrate API calls to sdk CatalogClient ([#1572](#1572)) ([a305c98](a305c98)) * make the sdk e2e test mark every queryParam as required ([#1577](#1577)) ([99c16a2](99c16a2)) * remove vdp-sdk and rename it to sdk-helper ([#1568](#1568)) ([cfcd5ae](cfcd5ae)) * replace vdp-sdk/model with instill-sdk ([#1566](#1566)) ([014f3ae](014f3ae)) * replace vdp-sdk/organization with instill-sdk ([#1564](#1564)) ([2742cc7](2742cc7)) * retire name parameter in the pipeline related endpoint ([#1575](#1575)) ([533e757](533e757)) * retire name parameter of token related endpoints ([#1582](#1582)) ([0de03b3](0de03b3)) * retire name parameter on credit related endpoint ([#1580](#1580)) ([d1e29b9](d1e29b9)) * retire name parameter on integration related endpoint ([#1581](#1581)) ([4b9c21a](4b9c21a)) * revamp catalog sdk and its react-query ([#1578](#1578)) ([a8901bd](a8901bd)) ### Bug Fixes * **artifact:** fix Artifact File details markdown format ([#1570](#1570)) ([d67e6c0](d67e6c0)) * fix and adapt new dashboard endpoint ([#1594](#1594)) ([e043500](e043500)) * fix cant clone pipeline from pipeline list page ([#1567](#1567)) ([d9945a9](d9945a9)) * fix list pipeline's query key is not present, and catalog fileUid issue ([#1588](#1588)) ([8cae285](8cae285)) * fix pipeline preview is wrong when reference the component in the same iterator ([#1589](#1589)) ([48cde51](48cde51)) * fix sdk integration-test caused by the new revamp of instill-ai protobuf ([#1576](#1576)) ([3691050](3691050)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Because
This commit