-
Notifications
You must be signed in to change notification settings - Fork 55
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
[Feature] Acceleration components' data implementation #1521
[Feature] Acceleration components' data implementation #1521
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1521 +/- ##
==========================================
+ Coverage 56.98% 57.53% +0.55%
==========================================
Files 348 352 +4
Lines 12705 12882 +177
Branches 3275 3317 +42
==========================================
+ Hits 7240 7412 +172
- Misses 5411 5416 +5
Partials 54 54
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
2051068
to
9adc868
Compare
6d965df
to
47b8d85
Compare
6e7acf9
to
c3ee5c1
Compare
} from '../accelerations/helpers/utils'; | ||
} from './utils/acceleration_utils'; | ||
import { coreRefs } from '../../../../../framework/core_refs'; | ||
import { OpenSearchDashboardsResponse } from '../../../../../../../../src/core/server/http/router'; | ||
|
||
export interface AccelerationDetailsFlyoutProps { | ||
acceleration: any; |
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.
will fix this
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.
coming with the follow up fix on this issue: #1534
public/components/datasources/components/__tests__/acceleration_table.test.tsx
Outdated
Show resolved
Hide resolved
public/components/datasources/components/manage/accelerations/acceleration_details_flyout.tsx
Outdated
Show resolved
Hide resolved
public/components/datasources/components/manage/accelerations/acceleration_details_flyout.tsx
Outdated
Show resolved
Hide resolved
const [selectedTab, setSelectedTab] = useState('details'); | ||
const tabsMap: { [key: string]: any } = { | ||
details: AccelerationDetailsTab, | ||
schema: AccelerationSchemaTab, | ||
sql_definition: AccelerationSqlTab, | ||
}; | ||
const [settings, setSettings] = useState<object>(); |
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.
Please define your settings, mappings and indexInfo types/interfaces instead of
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 will open up a follow up to address all the types.
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.
follow up issue has been created: #1534
public/components/datasources/components/manage/accelerations/acceleration_details_flyout.tsx
Outdated
Show resolved
Hide resolved
|
||
useEffect(() => { | ||
getAccDetail(flintIndexName); | ||
}, [flintIndexName]); |
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.
missing dependency 'getAccDetail', and question: do we need to handle cases where flintIndexName can be '' or undefined?
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 think we don't need to handle that case, since the field flintIndexName
field should be the actual 'index name' in OS, so that it should be always present as long as the index existed.
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.
Add a check anyways. However, transferring some of the conversation between me and @mengweieric also into the issue: #1534
public/components/datasources/components/manage/accelerations/acceleration_details_flyout.tsx
Show resolved
Hide resolved
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
…ping Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
…shots Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
4aa078d
to
e5597d7
Compare
you could do a quick resolution
and mark it in your issue as to do |
Signed-off-by: Ryan Liang <[email protected]>
sounds good, also updated the issue: #1534 |
Still see a couple |
* 1st commit of acc details connection Signed-off-by: Ryan Liang <[email protected]> * Update the snapshot Signed-off-by: Ryan Liang <[email protected]> * Fix the interface naming Signed-off-by: Ryan Liang <[email protected]> * Fix the status Signed-off-by: Ryan Liang <[email protected]> * Add the index health Signed-off-by: Ryan Liang <[email protected]> * Add change the field name into action Signed-off-by: Ryan Liang <[email protected]> * Wired up schema tab Signed-off-by: Ryan Liang <[email protected]> * Cache is working 0 with max depth exceeding issue Signed-off-by: Ryan Liang <[email protected]> * update snapshots Signed-off-by: Ryan Liang <[email protected]> * Fix the infinite loop and apply the status check correctly Signed-off-by: Ryan Liang <[email protected]> * Implement the refresh button Signed-off-by: Ryan Liang <[email protected]> * Rebase after apply new interface 1 Signed-off-by: Ryan Liang <[email protected]> * Rebase after apply new interface 2 + finalize the design of refreshing button Signed-off-by: Ryan Liang <[email protected]> * refactor some comments Signed-off-by: Ryan Liang <[email protected]> * Fix table type column Signed-off-by: Ryan Liang <[email protected]> * Fix empty item with replacement of unredered - Signed-off-by: Ryan Liang <[email protected]> * Fix the destination index column Signed-off-by: Ryan Liang <[email protected]> * Fix status Signed-off-by: Ryan Liang <[email protected]> * Fix the skip index name Signed-off-by: Ryan Liang <[email protected]> * Fix the destination index column behavior when it is skip index Signed-off-by: Ryan Liang <[email protected]> * Correct the render behavior for skip index flyout Signed-off-by: Ryan Liang <[email protected]> * Fix the table loading infinite loop Signed-off-by: Ryan Liang <[email protected]> * Modify the behavior of getting this refreh interval and type for skipping Signed-off-by: Ryan Liang <[email protected]> * Fix the data source at the flyout details tab Signed-off-by: Ryan Liang <[email protected]> * Swtich the data connection tabs back to default order and update snapshots Signed-off-by: Ryan Liang <[email protected]> * Add refresh time for refreshing Signed-off-by: Ryan Liang <[email protected]> * Add loading panel 0 Signed-off-by: Ryan Liang <[email protected]> * Fix loading state for table Signed-off-by: Ryan Liang <[email protected]> * Add the refresh type column to acceleration table Signed-off-by: Ryan Liang <[email protected]> * Add acceleration table test Signed-off-by: Ryan Liang <[email protected]> * Add acceleration table test 2 Signed-off-by: Ryan Liang <[email protected]> * Add refresh field to flyout Signed-off-by: Ryan Liang <[email protected]> * Fix some comments Signed-off-by: Ryan Liang <[email protected]> * Fix some comments 2 Signed-off-by: Ryan Liang <[email protected]> * Add null/undefined check for flintIndexName Signed-off-by: Ryan Liang <[email protected]> * remove console logs Signed-off-by: Ryan Liang <[email protected]> * Add eslint-dsiable for export in dsl Signed-off-by: Ryan Liang <[email protected]> --------- Signed-off-by: Ryan Liang <[email protected]> (cherry picked from commit 71dccc3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…oject#1521) * 1st commit of acc details connection Signed-off-by: Ryan Liang <[email protected]> * Update the snapshot Signed-off-by: Ryan Liang <[email protected]> * Fix the interface naming Signed-off-by: Ryan Liang <[email protected]> * Fix the status Signed-off-by: Ryan Liang <[email protected]> * Add the index health Signed-off-by: Ryan Liang <[email protected]> * Add change the field name into action Signed-off-by: Ryan Liang <[email protected]> * Wired up schema tab Signed-off-by: Ryan Liang <[email protected]> * Cache is working 0 with max depth exceeding issue Signed-off-by: Ryan Liang <[email protected]> * update snapshots Signed-off-by: Ryan Liang <[email protected]> * Fix the infinite loop and apply the status check correctly Signed-off-by: Ryan Liang <[email protected]> * Implement the refresh button Signed-off-by: Ryan Liang <[email protected]> * Rebase after apply new interface 1 Signed-off-by: Ryan Liang <[email protected]> * Rebase after apply new interface 2 + finalize the design of refreshing button Signed-off-by: Ryan Liang <[email protected]> * refactor some comments Signed-off-by: Ryan Liang <[email protected]> * Fix table type column Signed-off-by: Ryan Liang <[email protected]> * Fix empty item with replacement of unredered - Signed-off-by: Ryan Liang <[email protected]> * Fix the destination index column Signed-off-by: Ryan Liang <[email protected]> * Fix status Signed-off-by: Ryan Liang <[email protected]> * Fix the skip index name Signed-off-by: Ryan Liang <[email protected]> * Fix the destination index column behavior when it is skip index Signed-off-by: Ryan Liang <[email protected]> * Correct the render behavior for skip index flyout Signed-off-by: Ryan Liang <[email protected]> * Fix the table loading infinite loop Signed-off-by: Ryan Liang <[email protected]> * Modify the behavior of getting this refreh interval and type for skipping Signed-off-by: Ryan Liang <[email protected]> * Fix the data source at the flyout details tab Signed-off-by: Ryan Liang <[email protected]> * Swtich the data connection tabs back to default order and update snapshots Signed-off-by: Ryan Liang <[email protected]> * Add refresh time for refreshing Signed-off-by: Ryan Liang <[email protected]> * Add loading panel 0 Signed-off-by: Ryan Liang <[email protected]> * Fix loading state for table Signed-off-by: Ryan Liang <[email protected]> * Add the refresh type column to acceleration table Signed-off-by: Ryan Liang <[email protected]> * Add acceleration table test Signed-off-by: Ryan Liang <[email protected]> * Add acceleration table test 2 Signed-off-by: Ryan Liang <[email protected]> * Add refresh field to flyout Signed-off-by: Ryan Liang <[email protected]> * Fix some comments Signed-off-by: Ryan Liang <[email protected]> * Fix some comments 2 Signed-off-by: Ryan Liang <[email protected]> * Add null/undefined check for flintIndexName Signed-off-by: Ryan Liang <[email protected]> * remove console logs Signed-off-by: Ryan Liang <[email protected]> * Add eslint-dsiable for export in dsl Signed-off-by: Ryan Liang <[email protected]> --------- Signed-off-by: Ryan Liang <[email protected]>
* 1st commit of acc details connection * Update the snapshot * Fix the interface naming * Fix the status * Add the index health * Add change the field name into action * Wired up schema tab * Cache is working 0 with max depth exceeding issue * update snapshots * Fix the infinite loop and apply the status check correctly * Implement the refresh button * Rebase after apply new interface 1 * Rebase after apply new interface 2 + finalize the design of refreshing button * refactor some comments * Fix table type column * Fix empty item with replacement of unredered - * Fix the destination index column * Fix status * Fix the skip index name * Fix the destination index column behavior when it is skip index * Correct the render behavior for skip index flyout * Fix the table loading infinite loop * Modify the behavior of getting this refreh interval and type for skipping * Fix the data source at the flyout details tab * Swtich the data connection tabs back to default order and update snapshots * Add refresh time for refreshing * Add loading panel 0 * Fix loading state for table * Add the refresh type column to acceleration table * Add acceleration table test * Add acceleration table test 2 * Add refresh field to flyout * Fix some comments * Fix some comments 2 * Add null/undefined check for flintIndexName * remove console logs * Add eslint-dsiable for export in dsl --------- (cherry picked from commit 71dccc3) Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…oject#1521) (opensearch-project#1536) * 1st commit of acc details connection * Update the snapshot * Fix the interface naming * Fix the status * Add the index health * Add change the field name into action * Wired up schema tab * Cache is working 0 with max depth exceeding issue * update snapshots * Fix the infinite loop and apply the status check correctly * Implement the refresh button * Rebase after apply new interface 1 * Rebase after apply new interface 2 + finalize the design of refreshing button * refactor some comments * Fix table type column * Fix empty item with replacement of unredered - * Fix the destination index column * Fix status * Fix the skip index name * Fix the destination index column behavior when it is skip index * Correct the render behavior for skip index flyout * Fix the table loading infinite loop * Modify the behavior of getting this refreh interval and type for skipping * Fix the data source at the flyout details tab * Swtich the data connection tabs back to default order and update snapshots * Add refresh time for refreshing * Add loading panel 0 * Fix loading state for table * Add the refresh type column to acceleration table * Add acceleration table test * Add acceleration table test 2 * Add refresh field to flyout * Fix some comments * Fix some comments 2 * Add null/undefined check for flintIndexName * remove console logs * Add eslint-dsiable for export in dsl --------- (cherry picked from commit 71dccc3) Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> (cherry picked from commit 0a03c16)
Description
This PR contains 2 major parts of acceleration's components work:
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.