Skip to content

Commit

Permalink
Rename Load and Save section to Dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
luis11011 committed Oct 27, 2021
1 parent 7c86298 commit abc843d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Cypress.Commands.add('testOperation', (operation, enableScreenshots) => {
if (dataframes.length) {

cy.window().then((win) => {
win.showCreate = (operation.section !== 'LOADSAVE' && operation.group !== 'SAVE')
win.showCreate = (operation.section !== 'DATASET' && operation.group !== 'SAVE')
})

for (let i = 0; i < dataframes.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion docs/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const app = function () {
console.warn(`No table screenshot found for ${operation.command}`);
}

if (operation.section !== 'LOADSAVE') {
if (operation.section !== 'DATASET') {
let fileName = createFile(`transformation/${operation.command}`, str);
summary[operation.section] = summary[operation.section] || {};
if (operation.group) {
Expand Down
18 changes: 9 additions & 9 deletions packages/web/utils/operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ let _operations = {

loadFile: {
text: 'Add from file',
path: 'LOADSAVE/DATA_SOURCE',
path: 'DATASET/DATA_SOURCE',
doc: {
description: "Loads a dataset from a local or remote file. For remote files you may configure a remote connection.",
fields: false
}
},
loadDatabaseTable: {
text: 'Add from database',
path: 'LOADSAVE/DATA_SOURCE',
path: 'DATASET/DATA_SOURCE',
doc: {
description: "Loads a dataset from a table stored in a database. A remote connection is required.",
fields: false
Expand All @@ -458,13 +458,13 @@ let _operations = {

createDataframe: {
text: 'Create dataset from object',
path: 'LOADSAVE/DATA_SOURCE',
path: 'DATASET/DATA_SOURCE',
hidden: ($nuxt)=>!window.showCreate,
test: false
},

Download: {
path: 'LOADSAVE/SAVE',
path: 'DATASET/SAVE',
text: 'Download',
disabled: ($nuxt)=>process.env.INSTANCE!=='LOCAL',
hidden: ($nuxt)=>$nuxt.$store.getters.usingPreview,
Expand All @@ -474,21 +474,21 @@ let _operations = {
}
},
DownloadPreview: {
path: 'LOADSAVE/SAVE',
path: 'DATASET/SAVE',
command: 'Download',
text: 'Download current preview',
disabled: ($nuxt)=>process.env.INSTANCE!=='LOCAL',
hidden: ($nuxt)=>!$nuxt.$store.getters.usingPreview
},
DownloadFinal: {
path: 'LOADSAVE/SAVE',
path: 'DATASET/SAVE',
command: 'Download-rerun',
text: 'Download',
disabled: ($nuxt)=>process.env.INSTANCE!=='LOCAL',
hidden: ($nuxt)=>!$nuxt.$store.getters.usingPreview
},
saveFile: {
path: 'LOADSAVE/SAVE',
path: 'DATASET/SAVE',
text: 'Save file',
disabled: ($nuxt)=>!($nuxt.currentDataset && $nuxt.currentDataset.summary),
doc: {
Expand All @@ -504,7 +504,7 @@ let _operations = {
}
},
saveDatabaseTable: {
path: 'LOADSAVE/SAVE',
path: 'DATASET/SAVE',
text: 'Save to database',
disabled: ($nuxt)=>!($nuxt.currentDataset && $nuxt.currentDataset.summary),
doc: {
Expand All @@ -521,7 +521,7 @@ let _operations = {
},
Compile: {
text: 'Compile SQL',
path: 'LOADSAVE/SAVE',
path: 'DATASET/SAVE',
hidden: ($nuxt)=>$nuxt.$store.getters.canCompileSQL,
doc: {
description: 'Compiles the operations on the notebook to SQL. This command only works when using Ibis as engine.',
Expand Down

0 comments on commit abc843d

Please sign in to comment.