Skip to content

[feature]The front-end database supports only looking at the tables created by yourself #720

@yuankang134

Description

@yuankang134

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

1、demand background
(需求背景)

Users want the database page to provide a filter function to filter out the tables created by the user for quick viewing.
(用户希望数据库页面提供筛选功能,筛选出用户自己创建的表,方便快速查看。)

2、Statement of needs
(需求说明)

It is used to add a new button at the top of the database page: "Only view the tables created by yourself". When the user selects this button and opens the database again, he can only view the tables created by himself in the library.
(用在数据库页面上方新增一个按钮:“只看自己创建的表”,当用户选中该按钮时,再次打开数据库,便只能查看到库中自己创建的表。)
image (22)
image (23)
3、Demand realization
(需求实现)

The /datasource/tables interface will return the createBy field of each table, and the front-end can filter the tables created by the current user based on this field, and then display them on the page.
(/datasource/tables接口会返回每个表的createBy字段,前端可根据该字段筛选当前用户创建的表,进而在页面展示。)
image (24)

Description

No response

Use case

No response

solutions

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions