Skip to content
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(editor): support use tags to filter data source #725

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

tanbowensg
Copy link
Collaborator

Feature

Support categorizing DataSources using Tags.

2023-09-04.5.59.35.mov

Storage

The data is stored in the metadata of the Application Schema, look like:

截屏2023-09-04 下午6 11 19

To add a new Tag, you can directly modify the Schema and add a new key in the componentsTagMap with an [] as the value.

return result.concat(tagMap[curr]);
}, []);

return uniq(dataSourceIds)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe change it to something like this to be more simple and clear:

return dataSources.filter(ds=> dataSourceIds.includes(ds.id));

@tanbowensg tanbowensg merged commit 3e97731 into develop Sep 7, 2023
@tanbowensg tanbowensg deleted the feat/datasource-tag branch September 7, 2023 01:57
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