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

No recuperar soluciones para creador #1461

Merged
merged 4 commits into from
Sep 25, 2023
Merged

No recuperar soluciones para creador #1461

merged 4 commits into from
Sep 25, 2023

Conversation

dlopezalvas
Copy link
Contributor

@dlopezalvas dlopezalvas commented Sep 25, 2023

Resolves #1439

No pude levantarlo con el backend de verdad (después le gasto un tiempito a ver qué pasa que no me levanta), pero con el trucazo de copiarme el PB_USER al storage no pareciera estar tomando la solution.

También intenté hacer tests pero no logré mockear la url de forma que no rompa todo (xd), para no extenderlo no lo seguí pero también puedo gastarle un tiempillo si lo consideran necesario.

Cuando este aprobado hago el release para react:)

@@ -99,6 +105,8 @@ export default Service.extend({
},

async _send(method, resource, body, critical = true) {
if(resource.includes('solution') && this.isCreatorURL()) return //Should not send or get solution when using the creator
Copy link
Contributor

Choose a reason for hiding this comment

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

Medio raro un if en el send, me lo hubiera esperado en el momento de enviar la solución, arriba en executionFinished

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lo puse ahí para no repetir el if en tres lugares, tendría que estar en lastSolution y runProgram también, pero se puede dejar en esos lugares si no.

@dlopezalvas dlopezalvas marked this pull request as ready for review September 25, 2023 14:07
@dlopezalvas dlopezalvas requested a review from a team as a code owner September 25, 2023 14:07
@asanzo asanzo merged commit 2b02ba3 into develop Sep 25, 2023
8 checks passed
@asanzo asanzo deleted the creator-url branch September 25, 2023 19:28
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.

Ember: no debería recuperar soluciones para el creador
2 participants