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

Consul portability #51

Open
wants to merge 119 commits into
base: master
Choose a base branch
from
Open

Consul portability #51

wants to merge 119 commits into from

Conversation

taitus
Copy link
Member

@taitus taitus commented Sep 23, 2019

References

Related Issues: #18

Objectives

Group all PR related with related issue #18

Notes

Advanced Configuration

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

SMTP Configuration

⚠️ Only for existing installations:
Case 1:
For existing installations that have the email smtp configuration correctly updated in the symbolic link(for example shared/config/environments/production.rb) it will be necessary to execute the following rake task for the sending of emails to continue working correctly.
This rake task copies the SMTP configuration of your server to the new Settings that the application needs in order to load the email configuration correctly.
Please execute next command rake settings:update_smtp_settings
Remember that until you execute the rake task the sending of emails will be disabled.
You can validate that the rake task has been executed correctly by accessing the administration panel in the Settings > SMTP configuration section and seeing that all the fields are correctly filled in.

Case 2:
If your existing installation use default ActionMailer::Base.delivery_method and default ActionMailer::Base.smtp_settings and you manage internally the sending of emails
with redirections or another stuff, you must not execute the rake task.
When this feature is disabled the sending of emails keep behaving in the same way.

SMS Configuration

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

@taitus taitus self-assigned this Sep 23, 2019
@taitus taitus force-pushed the ciudades-abiertas/portability branch from 5aae01b to 458a22c Compare September 26, 2019 13:30
@taitus taitus changed the base branch from master to verification September 26, 2019 16:12
@taitus taitus changed the base branch from verification to master September 26, 2019 16:12
taitus and others added 25 commits October 22, 2019 17:12
- Remove old tabs structure on settings#index
- Add new partial '_settings_sections_list' to render all sections
- Add locales for each section (:title and :description)
Every section will be rendered thought action settings#show.
- Add routes
- Add action :show
- Fix feature settings specs .
- Add new feature settings specs for new show action.
- Remove unnecessary specs
Rename Keys:
 - 'feature.facebook_login' to 'social.facebook.login'
 - 'feature.twitter_login' to 'social.twitter.login'
 - 'feature.google_login' to to 'social.google.login'
…ings

Update devise.rb initializer to load keys and secrets from Settings always if it's
posible.
 * Added colspan="2" to have the same structure of the “update button”
 * Wrap featured_settings_form with the small-6 and column to have the same structure of the "update button"
 * Added small-6 and column on the span to have the same structure of the button “enabled/disabled”
 * Added style padding to the enabled and disabled class to center in the middle the text.
- 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.
When update map values force redirect to same page, so as not to lose
the page we are updating.
agileontheweb and others added 27 commits October 22, 2019 17:18
- Add English translate
- I've taken away the wizard because I don't think it's any use
Fix jump effect "no button in the header" from step 1 to step 2
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 force-pushed the ciudades-abiertas/portability branch from 1d44c0e to bc418a8 Compare October 22, 2019 15:20
@taitus taitus force-pushed the master branch 2 times, most recently from 25ba35f to df9b00f Compare February 15, 2023 17:00
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.

3 participants