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

Ciudades abiertas/map configuration section #45

Conversation

taitus
Copy link
Member

@taitus taitus commented Sep 6, 2019

References

Related Issues: #18 #19 #20

Objectives

  • Move secrets related with 'Map' to Configuration Map section:
    • Rails.application.secrets.map_tiles_provider
    • Rails.application.secrets.map_tiles_provider_attribution
  • Backwards compatibility

Visual Changes

Captura de pantalla 2019-07-29 a las 12 17 43

Notes

The backward compatibility consists of trying to recover always the value of Settings, but in case it is empty we try to recover the value from secrets.

- Create settings related with secrets.
- Add related locales titles and descriptions.
Use Retrocompatibility lib to load values from Settings always if it's
posible.
When Settings are blank, application will continue to use Secrets.
@taitus taitus requested a review from Senen September 6, 2019 15:19
@taitus taitus self-assigned this Sep 6, 2019
@taitus taitus added the Module 6 label Sep 6, 2019
@taitus taitus force-pushed the ciudades-abiertas/map-configuration-section branch from 581e2d5 to c7d0226 Compare September 9, 2019 09:01
Copy link
Member

@Senen Senen left a comment

Choose a reason for hiding this comment

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

Maybe we should add a spec to ensure map configuration options are retrieved from Settings database. 🤔

When update map values force redirect to same page, so as not to lose
the page we are updating.
@taitus taitus force-pushed the ciudades-abiertas/map-configuration-section branch from c7d0226 to 65fd1bb Compare September 23, 2019 14:05
@taitus taitus requested a review from Senen September 23, 2019 14:06
@taitus taitus merged commit 5df2007 into ciudades-abiertas/portability Sep 23, 2019
@taitus taitus mentioned this pull request Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants