-
Notifications
You must be signed in to change notification settings - Fork 916
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
[Multiple DataSource] Integrate multiple datasource with dev tool console #3754
[Multiple DataSource] Integrate multiple datasource with dev tool console #3754
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #3754 +/- ##
==========================================
- Coverage 66.43% 66.42% -0.02%
==========================================
Files 3209 3209
Lines 61677 61685 +8
Branches 9521 9525 +4
==========================================
- Hits 40978 40977 -1
- Misses 18419 18424 +5
- Partials 2280 2284 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
cc: @KrooshalUX for UI/UX feedback |
src/plugins/console/server/routes/api/console/proxy/tests/query_string.test.ts
Outdated
Show resolved
Hide resolved
src/plugins/console/server/routes/api/console/proxy/tests/query_string.test.ts
Outdated
Show resolved
Hide resolved
LGTM from UX perspective - small nit, but it looks like the use of "tabs" means that the horizontal rule is getting truncated in order to accommodate the picker. Not blocking now, but if its an easy fix to remove the Tab, change "console" into a header, and place in a horizontal rule, that would be a nice touch. |
The tricky part is, tab is generated not by |
f059d32
to
076c04c
Compare
const mountedTool = useRef<MountedDevToolDescriptor | null>(null); | ||
const [dataSources, setDataSources] = useState<DataSourceOption[]>([]); | ||
const [selectedOptions, setSelected] = useState<DataSourceOption[]>([]); |
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.
nit: setSelectedOptions
?
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.
good catch, let me fix this
@@ -62,7 +62,7 @@ export class ConsoleUIPlugin implements Plugin<void, void, AppSetupUIPluginDepen | |||
defaultMessage: 'Console', | |||
}), | |||
enableRouting: false, | |||
mount: async ({ element }) => { | |||
mount: async ({ element, dataSourceId }) => { | |||
const [core] = await getStartServices(); | |||
|
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.
Should we follow the format as other plugins here?
mount: async (params: AppMountParameters) => {
const { element, dataSourceId } = params;
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.
I'd rather keep it, reducing 1 more line of code~
Gotcha, that is helpful context. I have some ideas that I can take to the feature owners for further exploration. |
…sole Signed-off-by: Su <[email protected]>
Signed-off-by: Su <[email protected]>
Signed-off-by: Su <[email protected]>
076c04c
to
2fbbaa0
Compare
address the comment, CI should be good, since the change is only function naming, merging |
…sole (#3754) * [Multiple DataSource] Integrate multiple datasource with dev tool console * update to support autocomplete when datasource is selected Signed-off-by: Su <[email protected]> (cherry picked from commit a6af77d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…sole (#3754) (#3802) * [Multiple DataSource] Integrate multiple datasource with dev tool console * update to support autocomplete when datasource is selected Signed-off-by: Su <[email protected]> (cherry picked from commit a6af77d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…sole (opensearch-project#3754) * [Multiple DataSource] Integrate multiple datasource with dev tool console * update to support autocomplete when datasource is selected Signed-off-by: Su <[email protected]> Signed-off-by: David Sinclair <[email protected]>
Description
[Multiple DataSource] Integrate multiple datasource with dev tool console
Update:
After #3775 fixes autocomplete issue, I updated this PR to adopt the change, autocomplete also works for datasources now
Video
Screen.Recording.2023-03-31.at.10.34.05.AM.mov
Issues Resolved
#2699
part of #3577
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr