Skip to content

Table info#2720

Merged
klesh merged 4 commits into
apache:mainfrom
merico-ai:table-info
Aug 11, 2022
Merged

Table info#2720
klesh merged 4 commits into
apache:mainfrom
merico-ai:table-info

Conversation

@mappjzc
Copy link
Copy Markdown
Contributor

@mappjzc mappjzc commented Aug 9, 2022

Summary

Add some struct for table info.
Add RegisterTablesInfo for regist the table info.
Add GetTotalInfo,TraversalTable,Traversal for get the table info.
Add RegisterTablesInfo for gitlab.
Add GetTableInfo api to get the table info for gitlab.

Does this close any open issues?

#1875

Screenshots

image
image

Other Information

Any other information that is important to this PR.

Add some struct for table info.
Add RegisterTablesInfo for regist the table info.
Add GetTotalInfo,TraversalTable,Traversal for get the table info.

Nddtfjiang <zhicheng.jiang@merico.dev>
Add RegisterTablesInfo for gitlab.
Add GetTableInfo api to get the table info for gitlab.

Nddtfjiang <zhicheng.jiang@merico.dev>
@mappjzc mappjzc force-pushed the table-info branch 3 times, most recently from 3b5ddb8 to d417e4c Compare August 10, 2022 12:41
remove the table data saved.

Nddtfjiang <zhicheng.jiang@merico.dev>
Comment thread plugins/core/plugin_info.go Outdated
type TableInfo struct {
name string
describe string
table schema.Tabler
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do NOT depends on gorm directly

Comment thread plugins/core/plugin_info.go Outdated
"gorm.io/gorm/schema"
)

type TableInfo struct {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lets call it Model instead of Table

Comment thread plugins/gitlab/api/connection.go Outdated
// @Tags plugins/gitlab
// @Success 200
// @Router /plugins/gitlab/table [GET]
func GetTableInfo(input *core.ApiResourceInput) (*core.ApiResourceOutput, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What we need is to provide an API on Framework level to describe meta information for all plugin including Subtasks/Models.
Not on Plugin API level, please remove it.

remote api to show tables info at gitlab.
add GetTablesInfo for all plugin

Nddtfjiang <zhicheng.jiang@merico.dev>
Copy link
Copy Markdown
Contributor

@klesh klesh left a comment

Choose a reason for hiding this comment

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

LGTM

@klesh klesh merged commit 1088df4 into apache:main Aug 11, 2022
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.

2 participants