Repository navigation
No mostrar como parada un lugar sin foto 360 - #13
Merged
Merged
Conversation
ObtenerPoisAsync y ObtenerPoiPorIdAsync devuelven escena_principal_id = null cuando la escena principal no tiene ImagenUrl. Solo cambia la respuesta; en la base la escena sigue asignada al POI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EB4pRoGeNrZBwz45Y4jvo5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Algunos lugares tienen asignada una escena principal que todavía no tiene foto 360. La app los mostraba como parada con botón de 360, pero al tocarlo no abría nada.
Ahora, cuando la app pide la lista de lugares o el detalle de uno, la API revisa si la escena principal tiene foto. Si no la tiene, responde escena_principal_id = null y el lugar deja de verse como parada.
Toqué un solo archivo, ContenidoService.cs: agregué la escena principal a las dos consultas y una función pequeña, OcultarEscenaSinImagen, que hace la revisión.
No cambia nada en la base de datos: la escena sigue asignada, solo se oculta en la respuesta. Cuando alguien suba la foto, la parada vuelve a aparecer sola. No hace falta migración, y el panel sigue viendo la escena real.
Compila sin errores.
Relacionado con #10