How do we convert the `handsontable` sample table representation to a PEP-compatible sample table representation?
@sanghoonio ci sta già lavorando.
Dal 27/8/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Overview
Probably the most bug-prone step in the sample-table of the PEPhub UI is the conversion of the data-representation used by handsontable to the data-representation used in our database. Specifically, we need to convert an array-of-arrays, into an array-of-objects. You can view the current function deployed now.
Essentially the function must convert this:
[
['col1', 'col2', 'col3'],
['s1_col1', 's1_col2', 's1_col3'],
['s2_col1', 's2_col2', 's2_col3'],
]
Into this:
[
{ col1: 's1_col1', col2: 's1_col2', col3: 's1_col3' },
{ col1: 's2_col1', col2: 's2_col2', col3: 's2_col3' },
]
Things that make it tricky
There are problems with this conversion; moreover questions that need to be answered:
- What happens if a user has duplicate column names? This will lead to data-loss as attributes are overwritten
- What if a user has an empty column? This leads to objects with
nullas an attribute (which feels wrong) - What if the user skips a row? Should it be blank or smart enough to know that they don't want that as a sample?
The conversion seems to be lossy by nature. In the interest of trying to balance out not doing magic behind the scenes but also promptly warning the user about potential errors, it becomes quite difficult to write the function, and I am looking for assistance.
- Lingua principale
- TypeScript
- Stelle
- 22
- Fork
- 2
- Merge medio
- 6g 20h
- PR unite (30g)
- 2
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pepkit/pephub
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
-
Better authenticationAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Ordering PEP csv by colunnAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Tutte le issue di pepkit/pephub
Issue simili
-
Translate the appApertagood first issue help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
Mikiyas-Meles-Assefa/opensourcebook#154 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
rowbinary: typeStringToReader keeps Variant members in text order, so Variant(Int64, Float64) reads 7 as 3.5e-323Forse già presa @rwits08 l’ha presa oggi. Apertabug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ClickHouse/clickhouse-js#1293 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
sidebandstudio/clawtrate#1863 ·
I maintainer di solito rispondono entro 1 giorno
-
agent/quality testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
cncf/techdocs#463 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`Forse già presa @carlosrobert0 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 2 giorni