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

Admin emails list download #2466

Merged
merged 7 commits into from
Feb 21, 2018
Merged

Admin emails list download #2466

merged 7 commits into from
Feb 21, 2018

Conversation

MariaCheca
Copy link
Contributor

@MariaCheca MariaCheca commented Feb 15, 2018

Where

What

Replaced old admin functionality to download all users emails in a text file with this new one that downloads in a CSV file the emails list of different user segments.

Screenshots

localhost_3000_admin_emails_download_locale en laptop with hidpi screen 1

Test

As usual.

Warnings

  • Removed rubyzip gem, as after these changes is no longer necessary.
  • Removed old functionality to download all users emails and created in its place this new one. This was referenced in the "Warnings" section of Admin newsletter emails #2462

MariaCheca and others added 7 commits February 20, 2018 22:33
Removed original method to return emails file from Newsletters controller and NewsletterZip class, included `rubyzip` gem that's no longer necessary.
We have a custom implementation to avoid doble submissions which causes
some custom problems 😌

This commit should fix the following three specs
spec/features/comments/legislation_annotations_spec.rb:367
spec/features/comments/legislation_questions_spec.rb:333
spec/features/custom/probe_option_comments_spec.rb:298

One of the custom problems comes from ajax:success[1] not being
triggered, instead only ajax:complete seems to be triggered

We should remove this custom implementation and use the standard
solution provided in rails[2]

[1]
https://github.com/AyuntamientoMadrid/consul/blob/master/app/assets/java
scripts/prevent_double_submission.js.coffee#L28

[2]
https://stackoverflow.com/questions/9570912/how-to-disable-a-form-submit
-button-a-l%C3%A0-ruby-on-rails-way/9572893#9572893
@bertocq
Copy link
Collaborator

bertocq commented Feb 21, 2018

Travis builds has only flakies ✅ to merge!

@bertocq bertocq merged commit eb4a446 into master Feb 21, 2018
@bertocq bertocq deleted the 2120-admin_emails_list branch February 21, 2018 10:44
clairezed pushed a commit to CDJ11/CDJ that referenced this pull request Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants