Implementación resolución automática de URL calendario restricciones#79
Open
jeancahu wants to merge 1 commit intocovid/restricciónfrom
Hidden character warning
The head ref may contain hidden characters: "covid/servside-restricci\u00f3n-url-active-resolv"
Open
Implementación resolución automática de URL calendario restricciones#79jeancahu wants to merge 1 commit intocovid/restricciónfrom
jeancahu wants to merge 1 commit intocovid/restricciónfrom
Conversation
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.
Hardcoded/soft conf en página admin:
Haciendo uso de la función desarrollada con REGEX en Bash/Python se implementa en la vista de información sobre el Covid19 la resolución automática de la URL del calendario desde la fuente prestada por el MOPT.
En el caso anterior teníamos lo siguiente:


El calendario se observa en el sitio pero la imagen es local estática, por lo cual requiere una intervención continua por parte de codificadores.
Con auto-resolv:
La página muestra siempre el calendario actual posteado en la web institucional, la información está disponible tan pronto como se actualiza por parte del ente. Es decir, al postear allá ya se visualizará en el sitio de buses también sin ningún cambio en el código o el sitio de admin.
La URL que se resuelve es incrustada directamente desde el server de estáticos del MOPT por lo que descargar la imagen para introducirla en el repo puede evitarse.
La URL cambiará cada vez que el WordPress del MOPT introduzca otra imagen, pero este código insertará la nueva URL en el template HTML.