Skip to content

[#747][#751][#752] feat(UI): add catalogs, schemas, tables pages in web#933

Merged
xunliu merged 2 commits intoapache:mainfrom
ch3yne:issue-747-751-752
Dec 4, 2023
Merged

[#747][#751][#752] feat(UI): add catalogs, schemas, tables pages in web#933
xunliu merged 2 commits intoapache:mainfrom
ch3yne:issue-747-751-752

Conversation

@ch3yne
Copy link
Contributor

@ch3yne ch3yne commented Dec 4, 2023

What changes were proposed in this pull request?

Added pages for catalogs, schemas, and tables.

Because the framework itself does not support dynamic values in client-side rendering mode, so it is done in the same component in the form of parameters.

Catalogs:
Snipaste_2023-12-04_19-06-14
Snipaste_2023-12-04_19-06-27

Schemas:
Snipaste_2023-12-04_19-06-49
Snipaste_2023-12-04_19-07-02

Tables:
Snipaste_2023-12-04_19-07-15
Snipaste_2023-12-04_19-07-28

Why are the changes needed?

Fix: #747
Fix: #751
Fix: #752

Does this PR introduce any user-facing change?

No

How was this patch tested?

No

@ch3yne ch3yne requested review from jerryshao and xunliu December 4, 2023 10:17
@ch3yne ch3yne self-assigned this Dec 4, 2023
@github-actions
Copy link

github-actions bot commented Dec 4, 2023

Code Coverage Report

Overall Project 65.78% 🟢

There is no coverage information present for the Files changed

)
)

// eslint-disable-next-line react-hooks/exhaustive-deps
Copy link
Member

Choose a reason for hiding this comment

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

Does this comment need to be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this comment need to be removed?

No, this comment is used for eslint.

Comment on lines +20 to +22
const serialized = args[1]
if (cache.inserted[serialized.name] === undefined) {
inserted.push({ name: serialized.name, isGlobal: !selector })
inserted.push({ name: serialized.name, global: !args[0] })
Copy link
Member

Choose a reason for hiding this comment

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

All use of temporary variables? like this

const selector = args[0]
const serialized = args[1]

Copy link
Contributor Author

@ch3yne ch3yne Dec 4, 2023

Choose a reason for hiding this comment

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

All use of temporary variables? like this

const selector = args[0]
const serialized = args[1]

The purpose of this JS file is to resolve the styles issue with Next.js being a default server-side rendering (SSR) engine.

args represents the unknown parameter list passed to the cache.insert method. It is only used for checking and will not be modified. Therefore, there is no need to declare the variable or constant again.

import { getSchemasApi, getSchemaDetailsApi } from '@/lib/api/schemas'
import { getTablesApi, getTableDetailsApi } from '@/lib/api/tables'

export const fetchMetalakes = createAsyncThunk('appMetalakes/fetchMetalakes', async (params, { getState }) => {
Copy link
Member

Choose a reason for hiding this comment

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

Which means is this appMetalakes value name? app? api?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which means is this appMetalakes value name? app? api?

appMetalakes is used in react-redux, its for managing states for differentiation, it be like namespace.

Copy link
Member

@xunliu xunliu left a comment

Choose a reason for hiding this comment

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

LGTM

@xunliu xunliu merged commit 10852e3 into apache:main Dec 4, 2023
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.

[Subtask] Develop the Table page [Subtask] Develop the Catalog page [Subtask] Develop the Schema page

2 participants