Skip to content

feat: Import data via CSV #2360

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

Open
wants to merge 7 commits into
base: alpha
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'alpha' into import-data2
  • Loading branch information
mtrezza authored Jan 28, 2023
commit 06b8a0c0eb7fc82c18bd489eccbf5c1b316e1925
14 changes: 12 additions & 2 deletions src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class Browser extends DashboardView {
showDropClassDialog: false,
showExportDialog: false,
showImportDialog: false,
showExportSchemaDialog: false,
showAttachRowsDialog: false,
showEditRowDialog: false,
showPointerKeyDialog: false,
Expand Down Expand Up @@ -1132,6 +1133,7 @@ class Browser extends DashboardView {
this.state.showDropClassDialog ||
this.state.showExportDialog ||
this.state.showImportDialog ||
this.state.showExportSchema ||
this.state.rowsToDelete ||
this.state.showAttachRowsDialog ||
this.state.showAttachSelectedRowsDialog ||
Expand Down Expand Up @@ -1859,14 +1861,22 @@ class Browser extends DashboardView {
onCancel={() => this.setState({ showImportDialog: false })}
onConfirm={(file) => this.confirmImport(file)} />
);
}else if (this.state.showAttachRowsDialog) {
} else if (this.state.showExportSchemaDialog) {
extras = (
<ExportSchemaDialog
className={className}
schema={this.props.schema.data.get('classes')}
onCancel={() => this.setState({ showExportSchemaDialog: false })}
onConfirm={(...args) => this.exportSchema(...args)} />
);
} else if (this.state.showAttachRowsDialog) {
extras = (
<AttachRowsDialog
relation={this.state.relation}
onCancel={this.cancelAttachRows}
onConfirm={this.confirmAttachRows}
/>
)
);
} else if (this.state.showAttachSelectedRowsDialog) {
extras = (
<AttachSelectedRowsDialog
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.