Skip to content
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

Feature/clinical options columns #52

Merged
merged 6 commits into from
Sep 12, 2024
Merged

Conversation

juanNH
Copy link
Contributor

@juanNH juanNH commented Sep 5, 2024

#Fix select from file in survival tuples form

  • Refacor backend names.
  • Refactor function to get all fisrt columns and all first rows.

}).catch((err) => {
console.log('Error parsing JSON ->', err)
console.log('Error getting user experiments', err)
Copy link
Member

@Genarito Genarito Sep 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya que estamos, corregir el mensaje de error. Acá no está trayendo los experimentos del usuario

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dejar el comentario que editaste como estaba antes 'Error parsing JSON ->'. Ese estaba bien! Lo que está mal es el de abajo que dice "Error getting user experiments" cuando en realidad choca contra un endpoint que compara los Samples en común. Debería decir algo como "Error getting samples in common"

@@ -60,12 +60,13 @@ interface NewFileFormProps {
isEditing: boolean,
uploadState: Nullable<UploadState>
uploadFile: () => void,
fileChange: (e: any) => void,
fileChange: any, // (e: any) => void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sacar el comentario

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JAJAJA, recuerdo poner ese any, para probar sin problemas. Ahi lo vuelvo como estaba antes, un (e:any)=> void. Porque recibe almenos un metodo que va a recibir el evento, no un cualquier cosa

@@ -71,6 +71,8 @@ interface ClinicalSourceState {
cgdsStudyName: Nullable<string>,
/** alert interface */
alert: CustomAlert,
/** posibles values for survival tuple */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por consistencia, arrancá los comentarios en mayúscula hdp!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vos sabes que nunca me di cuenta ajajaj. Dale ahora lo tomo para toda la documentacion que vaya a hacer. Gracias!

@@ -20,6 +20,8 @@ interface SurvivalTuplesFormProps {
handleSurvivalFormDatasetChanges: (idx: number, name: string, value) => void,
addSurvivalFormTuple: () => void,
removeSurvivalFormTuple: (idx: number) => void
/** posibles values for survival tuple if undefined allows the users to write their own text */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem comentario de más arriba, que arranque con mayúscula el mensaje, así queda igual en toda la plataforma

@@ -57,12 +59,31 @@ export const SurvivalTuplesForm = (props: SurvivalTuplesFormProps) => {

const addSurvivalFormTuple = props.addSurvivalFormTuple

/**
* method to handle select change.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem comentario de arriba

resolve([])
}

fileReader.onerror = (event) => reject(event)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acá simplemente se puede hacer fileReader.onerror = reject

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dale, perfecto! Aprovecho y lo añado a la función que busca todos los headers del archivo.

… into feature/clinical_options_columns

t :wq
:# especially if it merges an updated upstream into a topic branch.
alert: CustomAlert,
/** posibles values for survival tuple */
/** Posibles values for survival tuple */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Possible" en singular y con doble "s"! Hay una extensión en VSCode que se llama Code Spell Checker que me salva la vida en el laburo todos los días con la ortografía en inglés:
imagen

@@ -20,7 +20,7 @@ interface SurvivalTuplesFormProps {
handleSurvivalFormDatasetChanges: (idx: number, name: string, value) => void,
addSurvivalFormTuple: () => void,
removeSurvivalFormTuple: (idx: number) => void
/** posibles values for survival tuple if undefined allows the users to write their own text */
/** Posibles values for survival tuple if undefined allows the users to write their own text */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mismo comentario que arriba sobre la falta

@Genarito Genarito merged commit 7d06fa1 into v5.0.0 Sep 12, 2024
1 check passed
@Genarito Genarito deleted the feature/clinical_options_columns branch September 12, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants