[
https://issues.apache.org/jira/browse/BEAM-14130?focusedWorklogId=750633&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-750633
]
ASF GitHub Bot logged work on BEAM-14130:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 31/Mar/22 00:18
Start Date: 31/Mar/22 00:18
Worklog Time Spent: 10m
Work Description: VictorPlusC commented on a change in pull request
#17127:
URL: https://github.com/apache/beam/pull/17127#discussion_r839064969
##########
File path:
sdks/python/apache_beam/runners/interactive/extensions/apache-beam-jupyterlab-sidepanel/src/clusters/Clusters.tsx
##########
@@ -0,0 +1,289 @@
+// Licensed under the Apache License, Version 2.0 (the 'License'); you may not
+// use this file except in compliance with the License. You may obtain a copy
of
+// the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations
under
+// the License.
+
+import * as React from 'react';
+
+import { ISessionContext } from '@jupyterlab/apputils';
+
+import { Button } from '@rmwc/button';
+import {
+ DataTable,
+ DataTableContent,
+ DataTableRow,
+ DataTableHeadCell
+} from '@rmwc/data-table';
+
+import {
+ Dialog,
+ DialogTitle,
+ DialogContent,
+ DialogActions,
+ DialogButton
+} from '@rmwc/dialog';
+
+import { Fab } from '@rmwc/fab';
+
+import { Select } from '@rmwc/select';
+
+import {
+ TopAppBar,
+ TopAppBarFixedAdjust,
+ TopAppBarRow,
+ TopAppBarSection,
+ TopAppBarTitle
+} from '@rmwc/top-app-bar';
+
+import { KernelModel } from '../kernel/KernelModel';
+
+import '@rmwc/button/styles';
+import '@rmwc/data-table/styles';
+import '@rmwc/dialog/styles';
+import '@rmwc/fab/styles';
+import '@rmwc/select/styles';
+import '@rmwc/top-app-bar/styles';
+
+interface IClustersProps {
+ sessionContext: ISessionContext;
+}
+
+interface IClustersState {
+ kernelDisplayName: string;
+ clusters: object;
+ defaultClusterId: string;
+ selectedId: string;
+ selectedName: string;
+ showDialog: boolean;
+ displayTable: boolean;
+}
+
+/**
+ * This component is an interactive data-table that inspects Dataproc clusters
+ * managed by Apache Beam.
+ *
+ * The following user functionality is provided in this component:
+ * 1. View all Dataproc clusters managed by Interactive Beam
+ * 2. Delete a selected cluster. This will "reset" the cluster used by the
+ * corresponding pipelines and the cluster will be recreated when the
+ * pipeline is executed again.
+ * 3. Select a default cluster. This is the cluster that will be used by
+ * Interactive Beam when no master_url or Google Cloud project is
+ * specified in the pipeline options.
+ */
+export class Clusters extends React.Component<IClustersProps, IClustersState> {
+ constructor(props: IClustersProps) {
+ super(props);
+ this._inspectKernelCode =
+ 'from apache_beam.runners.interactive ' +
+ 'import interactive_environment as ie\n' +
Review comment:
Sounds good, I've removed this bit now. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 750633)
Time Spent: 40h 10m (was: 40h)
> Implement Jupyterlab extension for managing Dataproc clusters
> -------------------------------------------------------------
>
> Key: BEAM-14130
> URL: https://issues.apache.org/jira/browse/BEAM-14130
> Project: Beam
> Issue Type: New Feature
> Components: runner-py-interactive
> Reporter: Victor Chen
> Assignee: Victor Chen
> Priority: P2
> Time Spent: 40h 10m
> Remaining Estimate: 0h
>
> - Adds an additional option under the Interactive Beam Jupyterlab extension
> to enable users to manage Interactive Beam clusters
--
This message was sent by Atlassian Jira
(v8.20.1#820001)