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

Fix typos and remove unused code #3630

Merged
merged 9 commits into from
Aug 28, 2019
Merged

Fix typos and remove unused code #3630

merged 9 commits into from
Aug 28, 2019

Conversation

javierm
Copy link
Member

@javierm javierm commented Jun 23, 2019

References

Objectives

  • Use translations instead of plain English texts
  • Remove unused code
  • Fix label in form to add own answer
  • Fix typos

@javierm javierm self-assigned this Jun 23, 2019
@javierm javierm force-pushed the fix_typos branch 2 times, most recently from 13cfdac to 19a0656 Compare July 6, 2019 20:07
@javierm javierm force-pushed the fix_typos branch 2 times, most recently from b2969cc to 4e3dfbb Compare August 7, 2019 22:19
The interpolation was being evaluated as a comment.
This method was not used since commit d024505.
The statement executed the method twice if the `present?` condition was
true. If the condition was false, it executed it once anyway.

It's probably a typo and originally we probably meant we wanted to
execute the method if the method existed.
This file was probably generated automatically and we forgot to remove
it. We never use it; the edit action includes its own form.
The label text was always in English, and it wasn't associated with any
input field.

The `SecureRandom` part is a quick hack so we don't get duplicate IDs.
Using "your_answer_#{question.id}" might work as well, but right now I'm
not sure if the form is sometimes rendered twice for the same question.
I've also renamed the key for the settings title so the `<h1>` gets the
`title` key, as done in other sections in the admin.
The typo was detected thanks to erb-lint SpaceInHtmlTag rule.
The name of this file should be `settings_helper.rb` (which already
exists), and the method `setting_for_widget` was never used anywhere.
@javierm
Copy link
Member Author

javierm commented Aug 28, 2019

Travis failures are not related to this pull request, but due to network timeouts probably when connecting to map and translations services.

@javierm javierm merged commit 158f59c into master Aug 28, 2019
@javierm javierm deleted the fix_typos branch August 28, 2019 18:25
@javierm javierm added this to Release 1.1.0 in Roadmap Sep 10, 2019
@javierm javierm added the Bug label Sep 11, 2019
smarques pushed a commit to venetochevogliamo/consul that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

Untranslated string Settings in index.html.erb
2 participants