Feature: Worksheet API
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- api
Línea de trabajo
Empieza leyendo metadata.js y el código fuente circundante de Spreadsheet.load, send y receive. Compara el modelo actual con el prototipo propuesto y, después, define la colección de hojas de cálculo y el comportamiento de carga/creación/eliminación. Se considera terminado cuando se representan varias hojas de cálculo, la hoja de cálculo actual sigue siendo compatible con versiones anteriores y la lista de hojas de cálculo se mantiene actualizada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Looking for Contributors Please look through these notes and then the source and if you decide to give this a shot, mention that you're working on this in the comments below and I'll give you push access.
A spreadsheet is the entire document, and a worksheet is a tab in the document. Currently this module models 1 spreadsheet and 1 worksheet, it should actually model N worksheets, just as spreadsheets do. The proposed feature would result in the API below. Please +1 below so we can gauge interest. I've specified a rough outline of the changes that need to be made, though they're subject to change.
A few initial notes:
- Adding and deleting spreadsheets is out of scope, see the google-drive module
- The
metadata.jswill be comeworksheet.jssince metadata is actually a worksheet API call - The
Metadataclass would be become aWorksheetclass - On
Spread.loadall of the spreadsheets worksheets should be instantiated inspreadsheet.worksheetsand if (now optional)worksheetNamewas set, then it would be set tospreadsheet.worksheet(the current worksheet). - Important To make this change backwards compatible
spreadsheet.send()/receive()actually callspreadsheet.worksheet.send()/receive() - Finally, there's new APIs to add and remove worksheets
spreadsheet.load(title, callback(err, worksheet))(If it's already inworksheetsno request is needed, otherwise it will refresh the worksheet list. On successworksheetbecomes the new currentspreadsheet.worksheet)spreadsheet.create(title, [numColumns, numRows], callback(err, worksheet))(Operates as an "upsert" – adds if necessary. On successworksheetbecomes the new currentspreadsheet.worksheet)spreadsheet.delete(title, callback(err))- As these calls are made
spreadsheet.worksheetsis being kept up to date
See prototype code:
Spreadsheet.load({
username: creds.username,
password: creds.password,
spreadsheetName: 'node-edit-spreadsheet',
worksheetName: 'Sheet1' //worksheet becomes optional
}, function run(err, spreadsheet) {
if(err) throw err;
spreadsheet.worksheets === [ /* worksheet instances */, /* */ ];
spreadsheet.worksheet === { /* Sheet1 instance */ };
//now
spreadsheet.send();
spreadsheet.receive();
//actually does
spreadsheet.worksheet.send();
spreadsheet.worksheet.receive();
//and there's now 'load', 'create' and 'delete' methods
spreadsheet.load("Sheet 3", function(err, worksheet) {
//...
});
spreadsheet.create("Sheet 2", function(err, worksheet) {
//...
});
spreadsheet.delete("Sheet 1", function(err) {
//...
});
});
- Lenguaje dominante
- JavaScript
- Estrellas
- 301
- Forks
- 98
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de jpillora/node-edit-google-spreadsheet
-
Did Google Change the Scopes?Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
-
Append RowAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
jpillora/node-edit-google-spreadsheet#105 · 1 comentario ·
-
Unexpected TokenAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
jpillora/node-edit-google-spreadsheet#104 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
jpillora/node-edit-google-spreadsheet#103 · 6 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
Todos los issues de jpillora/node-edit-google-spreadsheet
Issues similares
-
[Feature]: Add Crawl Optimization setting to disable WordPress random content redirect (WP 7.2)Abiertoenhancement featurerequest
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Yoast/wordpress-seo#23888 ·
Los mantenedores suelen responder en 4 días
-
bug builder-vite hmr sev:S3
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
storybookjs/storybook#37965 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
area/docs good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
aws-samples/sample-collaborative-ai-dlc#996 ·
Los mantenedores suelen responder en 1 día
-
backlog
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sagemathinc/sagebrush#3434 ·
Los mantenedores suelen responder en 1 día
-
New tool: BioFigurePosiblemente ocupada @github-actions la tomó hoy. Abiertosubmission triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
kausalflow/tools#386 · 1 comentario ·
Los mantenedores suelen responder en 1 día