-
Notifications
You must be signed in to change notification settings - Fork 1
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
Webapp interface #89
Webapp interface #89
Conversation
…the call is not working
…have to fix other problems)
webapp/src/components/Menu.js
Outdated
<Button text = "Historial" name="openHistory" onClick={() => openHistory()}/> | ||
</div> | ||
|
||
<h2>Esto irá en el nav(?)</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hay que decidir ya cómo poner esto, aunque probablemente me encargue yo mañana
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vacío?
webapp/src/components/game/Game3.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Va a haber que sacar mucho código común con FirstGame para que no nos de problemas el sonar
Quality Gate failedFailed conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Que sea lo que dios quiera.
Tenéis comentarios para modificar cosas. Hay mucho código comentado. El Sonar cloud ta echando humo. PERO, como hay q entregar algo habrá q hacer un poco la vista gorda...
console.log(`Game Service listening at http://localhost:${port}`); | ||
}); | ||
|
||
server.on('close', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No tienes ni mongo en este servicio... Esto sobra
// Route for getting questions | ||
app.get('/gameUnlimitedQuestions', async (req, res) => { | ||
try { | ||
// TODO: Implement logic to fetch questions from MongoDB and send response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Líneas que sobran
@@ -10,7 +10,8 @@ const authServiceUrl = process.env.AUTH_SERVICE_URL || 'http://localhost:8002'; | |||
const userServiceUrl = process.env.USER_SERVICE_URL || 'http://localhost:8001'; | |||
const userStatsServiceUrl = process.env.USER_STATS_SERVICE_URL || 'http://localhost:8003'; | |||
const storeQuestionsServiceUrl = process.env.STORE_QUESTION_SERVICE_URL || 'http://localhost:8004' | |||
const questionsGeneratorServiceUrl = process.env.QUESTIONS_GENERATOR_SERVICE_URL || 'http://localhost:8007' | |||
// const questionsGeneratorServiceUrl = process.env.QUESTIONS_GENERATOR_SERVICE_URL || 'http://localhost:8007' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sobra
// const questionsGeneratorServiceUrl = process.env.QUESTIONS_GENERATOR_SERVICE_URL || 'http://localhost:8007' |
@@ -78,15 +79,74 @@ app.get('/history/questions', async (req, res) => { | |||
} | |||
}) | |||
|
|||
app.get(`/questions`, async (req, res) => { | |||
// app.get(`/questions`, async (req, res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sobra, lo avisa sonar cloud...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comentarios a eliminar?
console.log(document.querySelector('h1')) | ||
|
||
const gamesBT = document.getElementsByClassName('allAnswers'); | ||
//expect(gamesBT).toHaveLength(4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Buen test, se nota que se ha aplicado exitosamente el Ostrich algorithm
|
||
var isApiCalledRef = false; | ||
var gameId; | ||
//var isApiCalledRef = false;//ASK - is this necessary? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idk 🥴
// Recorrer el array desde el último elemento hasta el primero | ||
for (let i = shuffledArray.length - 1; i > 0; i--) { | ||
// Genera un índice aleatorio entre 0 y el índice actual | ||
//const randomIndex = Math.floor(Math.random() * (i + 1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sobra
//const randomIndex = Math.floor(Math.random() * (i + 1)); | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Buen fichero, me cuesta un poco comprender la lógica detrás de tan diversas operaciones pero parece estar correcto, no debería dar fallos.
No description provided.