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

Sms configuration section #55

Conversation

taitus
Copy link
Member

@taitus taitus commented Oct 5, 2019

References

Related Issues: #18 #19 #20

Objectives

  • Add new sms configuration section to setting#index.
  • Move secrets related with 'sms API' to new section 'SMS Configuration'
    • Rails.application.secrets.sms_end_point
    • Rails.application.secrets.sms_username
    • Rails.application.secrets.sms_password
  • Backwards compatibility

Visual Changes

New index section:
Captura de pantalla 2019-10-05 a las 19 00 48

SMS configuration section:
Captura de pantalla 2019-10-05 a las 19 01 04

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 of the Secrets.

⚠️ For existent installations, you can execute next rake task after deploy to copy Secrets values to related Settings: rake settings:copy_sms_configuration_to_settings

Update sms api to load 'sms api' values from Settings always if it's posible.
Render all settings related with "SMS configuration"
Add task to copy sms configuration from secrets to Settings.
@taitus taitus changed the base branch from master to ciudades-abiertas/portability October 5, 2019 17:02
@taitus taitus requested a review from Senen October 5, 2019 17:02
@taitus taitus self-assigned this Oct 5, 2019
@taitus taitus added the Module 6 label Oct 5, 2019
@taitus taitus mentioned this pull request Oct 11, 2019
@taitus taitus merged commit 916a9c0 into ciudades-abiertas/portability Oct 11, 2019
@taitus taitus mentioned this pull request Oct 11, 2019
19 tasks
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.

1 participant