Commit Graph

17640 Commits

Author SHA1 Message Date
taitus
cb2958e1b0 Add load_and_authorize_resource to answers controller 2022-09-14 14:45:34 +02:00
taitus
405b37f605 Load answer through question in answers controller
We are simplifying the load answer and we can remove the ambiguous
hidden field from answer form.
2022-09-14 14:45:33 +02:00
taitus
01005b50cb Load question from load_and_authorize_resource in answers controller 2022-09-14 14:45:33 +02:00
taitus
8b4cd13675 Unify with the rest of application destroy method in questions controller
We also add a missing translation.
2022-09-14 11:37:21 +02:00
taitus
ad9362399e After destroy question redirect to his poll show page
After removing a question from a poll it makes more sense to redirect to
your own poll show page in order to manage their questions.

Currently it is redirecting to the questions index page where all the
questions from all the polls are displayed and takes you completely out
of the context of the poll you are in.

In the future we will remove this index question page.
2022-09-14 11:37:20 +02:00
taitus
cc4b22ee37 Use resource from load_and_authorize_resource in admin polls controller 2022-09-09 11:01:55 +02:00
taitus
38b6cf36a2 Remove unused add_question action from admin polls controller
Since commit adf18ee756  this action no longer makes sense.
2022-09-07 14:25:15 +02:00
taitus
5011d4745b Remove related code for unused actions from admin polls controller
Actions :search_booths and :search_officers in admin polls controller
are moved to other controllers since commit 20e31133a for
:search_booths and commit 19ec7f93b for :search_officers.

This then allows us to remove the code that references these actions in
the controller and in the administrator abilities.
2022-09-07 13:41:26 +02:00
Javi Martín
b9d63bc2ab Merge pull request #4971 from consul/dependabot/bundler/master/ahoy_matey-4.1.0
Bump ahoy_matey from 3.2.0 to 4.1.0
2022-08-27 00:35:47 +02:00
dependabot[bot]
0502c55b77 Bump ahoy_matey from 3.2.0 to 4.1.0
Bumps [ahoy_matey](https://github.com/ankane/ahoy) from 3.2.0 to 4.1.0.
- [Release notes](https://github.com/ankane/ahoy/releases)
- [Changelog](https://github.com/ankane/ahoy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ankane/ahoy/compare/v3.2.0...v4.1.0)

---
updated-dependencies:
- dependency-name: ahoy_matey
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-27 00:19:04 +02:00
Javi Martín
0ab11f73f7 Merge pull request #4968 from consul/dependabot/bundler/master/uuidtools-2.2.0
Bump uuidtools from 2.1.5 to 2.2.0
2022-08-27 00:16:52 +02:00
dependabot[bot]
827d32ae9e Bump uuidtools from 2.1.5 to 2.2.0
Bumps [uuidtools](https://github.com/sporkmonger/uuidtools) from 2.1.5 to 2.2.0.
- [Release notes](https://github.com/sporkmonger/uuidtools/releases)
- [Changelog](https://github.com/sporkmonger/uuidtools/blob/main/CHANGELOG)
- [Commits](https://github.com/sporkmonger/uuidtools/commits)

---
updated-dependencies:
- dependency-name: uuidtools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-27 00:01:35 +02:00
Javi Martín
5c986097c6 Merge pull request #4966 from consul/dependabot/bundler/master/devise-4.8.1
Bump devise from 4.8.0 to 4.8.1
2022-08-26 23:54:34 +02:00
dependabot[bot]
1a37b7b905 Bump devise from 4.8.0 to 4.8.1
Bumps [devise](https://github.com/heartcombo/devise) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/heartcombo/devise/releases)
- [Changelog](https://github.com/heartcombo/devise/blob/main/CHANGELOG.md)
- [Commits](https://github.com/heartcombo/devise/compare/v4.8.0...v4.8.1)

---
updated-dependencies:
- dependency-name: devise
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 23:39:03 +02:00
Javi Martín
899b0db904 Merge pull request #4972 from consul/dependabot/bundler/master/pronto-rubocop-0.11.2
Bump pronto-rubocop from 0.11.1 to 0.11.2
2022-08-26 23:38:24 +02:00
dependabot[bot]
9bd9a94f39 Bump pronto-rubocop from 0.11.1 to 0.11.2
Bumps [pronto-rubocop](https://github.com/mmozuras/pronto-rubocop) from 0.11.1 to 0.11.2.
- [Release notes](https://github.com/mmozuras/pronto-rubocop/releases)
- [Commits](https://github.com/mmozuras/pronto-rubocop/compare/v0.11.1...v0.11.2)

---
updated-dependencies:
- dependency-name: pronto-rubocop
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 23:19:10 +02:00
Javi Martín
40d1395f1b Merge pull request #4973 from consul/dependabot/bundler/master/savon-2.13.0
Bump savon from 2.12.1 to 2.13.0
2022-08-26 23:18:15 +02:00
dependabot[bot]
385e1136b3 Bump savon from 2.12.1 to 2.13.0
Bumps [savon](https://github.com/savonrb/savon) from 2.12.1 to 2.13.0.
- [Release notes](https://github.com/savonrb/savon/releases)
- [Changelog](https://github.com/savonrb/savon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/savonrb/savon/compare/v2.12.1...v2.13.0)

---
updated-dependencies:
- dependency-name: savon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 22:48:17 +02:00
Javi Martín
1663eb9892 Merge pull request #4975 from consul/dependabot/bundler/master/cancancan-3.4.0
Bump cancancan from 3.3.0 to 3.4.0
2022-08-26 22:46:08 +02:00
dependabot[bot]
3f7b3ae319 Bump cancancan from 3.3.0 to 3.4.0
Bumps [cancancan](https://github.com/CanCanCommunity/cancancan) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/CanCanCommunity/cancancan/releases)
- [Changelog](https://github.com/CanCanCommunity/cancancan/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/CanCanCommunity/cancancan/compare/3.3.0...3.4.0)

---
updated-dependencies:
- dependency-name: cancancan
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 22:31:39 +02:00
Javi Martín
7a85953ae0 Merge pull request #4929 from consul/dependabot/bundler/master/omniauth-2.1.0
Bump omniauth from 2.0.4 to 2.1.0
2022-08-26 20:10:53 +02:00
Javi Martín
3790aaa4e4 Merge pull request #4954 from consul/dependabot/bundler/master/omniauth-rails_csrf_protection-1.0.1
Bump omniauth-rails_csrf_protection from 1.0.0 to 1.0.1
2022-08-26 20:10:07 +02:00
Javi Martín
a49ddf2628 Merge pull request #4957 from consul/dependabot/bundler/master/graphiql-rails-1.8.0
Bump graphiql-rails from 1.7.0 to 1.8.0
2022-08-26 20:02:57 +02:00
dependabot[bot]
1cb44fc17c Bump omniauth from 2.0.4 to 2.1.0
Bumps [omniauth](https://github.com/omniauth/omniauth) from 2.0.4 to 2.1.0.
- [Release notes](https://github.com/omniauth/omniauth/releases)
- [Commits](https://github.com/omniauth/omniauth/compare/v2.0.4...v2.1.0)

---
updated-dependencies:
- dependency-name: omniauth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 19:54:46 +02:00
dependabot[bot]
4675cabe9a Bump omniauth-rails_csrf_protection from 1.0.0 to 1.0.1
Bumps [omniauth-rails_csrf_protection](https://github.com/cookpad/omniauth-rails_csrf_protection) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/cookpad/omniauth-rails_csrf_protection/releases)
- [Commits](https://github.com/cookpad/omniauth-rails_csrf_protection/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: omniauth-rails_csrf_protection
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 19:52:31 +02:00
dependabot[bot]
7734b29257 Bump graphiql-rails from 1.7.0 to 1.8.0
Bumps [graphiql-rails](https://github.com/rmosolgo/graphiql-rails) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/rmosolgo/graphiql-rails/releases)
- [Changelog](https://github.com/rmosolgo/graphiql-rails/blob/master/changelog.md)
- [Commits](https://github.com/rmosolgo/graphiql-rails/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: graphiql-rails
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 19:16:46 +02:00
Javi Martín
95b188b275 Merge pull request #4952 from consul/dependabot/bundler/master/globalize-6.2.1
Bump globalize from 6.0.1 to 6.2.1
2022-08-26 18:54:50 +02:00
Javi Martín
26e989dd6b Merge pull request #4949 from consul/dependabot/bundler/master/web-console-4.2.0
Bump web-console from 4.0.4 to 4.2.0
2022-08-26 18:50:52 +02:00
Javi Martín
57926b3388 Merge pull request #4951 from consul/dependabot/bundler/master/delayed_job_active_record-4.1.7
Bump delayed_job_active_record from 4.1.6 to 4.1.7
2022-08-26 18:44:04 +02:00
dependabot[bot]
3ea8b59058 Bump globalize from 6.0.1 to 6.2.1
Bumps [globalize](https://github.com/globalize/globalize) from 6.0.1 to 6.2.1.
- [Release notes](https://github.com/globalize/globalize/releases)
- [Changelog](https://github.com/globalize/globalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/globalize/globalize/commits/v6.2.1)

---
updated-dependencies:
- dependency-name: globalize
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 18:37:32 +02:00
dependabot[bot]
b039eaf004 Bump web-console from 4.0.4 to 4.2.0
Bumps [web-console](https://github.com/rails/web-console) from 4.0.4 to 4.2.0.
- [Release notes](https://github.com/rails/web-console/releases)
- [Changelog](https://github.com/rails/web-console/blob/master/CHANGELOG.markdown)
- [Commits](https://github.com/rails/web-console/compare/v4.0.4...v4.2.0)

---
updated-dependencies:
- dependency-name: web-console
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 18:29:15 +02:00
dependabot[bot]
fde6b007f9 Bump delayed_job_active_record from 4.1.6 to 4.1.7
Bumps [delayed_job_active_record](https://github.com/collectiveidea/delayed_job_active_record) from 4.1.6 to 4.1.7.
- [Release notes](https://github.com/collectiveidea/delayed_job_active_record/releases)
- [Commits](https://github.com/collectiveidea/delayed_job_active_record/compare/v4.1.6...v4.1.7)

---
updated-dependencies:
- dependency-name: delayed_job_active_record
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 18:27:00 +02:00
Javi Martín
a45749f918 Merge pull request #4950 from consul/dependabot/bundler/master/bullet-7.0.3
Bump bullet from 6.1.4 to 7.0.3
2022-08-26 18:26:36 +02:00
dependabot[bot]
ae29293444 Bump bullet from 6.1.4 to 7.0.3
Bumps [bullet](https://github.com/flyerhzm/bullet) from 6.1.4 to 7.0.3.
- [Release notes](https://github.com/flyerhzm/bullet/releases)
- [Changelog](https://github.com/flyerhzm/bullet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/6.1.4...7.0.3)

---
updated-dependencies:
- dependency-name: bullet
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 18:09:51 +02:00
Javi Martín
9d430fa20f Merge pull request #4953 from consul/dependabot/bundler/master/recipient_interceptor-0.3.1
Bump recipient_interceptor from 0.3.0 to 0.3.1
2022-08-26 18:03:48 +02:00
Javi Martín
7c3b491e33 Merge pull request #4943 from consul/dependabot/bundler/master/faker-2.22.0
Bump faker from 2.18.0 to 2.22.0
2022-08-26 18:01:15 +02:00
dependabot[bot]
59a76a8caf Bump faker from 2.18.0 to 2.22.0
Bumps [faker](https://github.com/faker-ruby/faker) from 2.18.0 to 2.22.0.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faker-ruby/faker/compare/v2.18.0...v2.22.0)

---
updated-dependencies:
- dependency-name: faker
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 16:09:30 +02:00
dependabot[bot]
d60860e02a Bump recipient_interceptor from 0.3.0 to 0.3.1
Bumps [recipient_interceptor](https://github.com/croaky/recipient_interceptor) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/croaky/recipient_interceptor/releases)
- [Commits](https://github.com/croaky/recipient_interceptor/compare/v0.3.0...v0.3.1)

---
updated-dependencies:
- dependency-name: recipient_interceptor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 16:02:36 +02:00
Javi Martín
793d7e3425 Merge pull request #4945 from consul/dependabot/bundler/master/paranoia-2.6.0
Bump paranoia from 2.4.3 to 2.6.0
2022-08-26 16:01:35 +02:00
Javi Martín
8a64009d7f Bump paranoia from 2.4.3 to 2.6.0
Bumps [paranoia](https://github.com/rubysherpas/paranoia) from 2.4.3 to 2.6.0.
- [Release notes](https://github.com/rubysherpas/paranoia/releases)
- [Changelog](https://github.com/rubysherpas/paranoia/blob/core/CHANGELOG.md)
- [Commits](https://github.com/rubysherpas/paranoia/compare/2.4.3...v2.6.0)

---
updated-dependencies:
- dependency-name: paranoia
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 15:17:34 +02:00
Javi Martín
ae6e0a4ddb Fix Gemfile.lock
We accidentally introduced a dependency incompatibility in commit
342a0fd97. For some reason, Bundler didn't detect it immediately on
either my machine or our CI.
2022-08-26 15:17:34 +02:00
Javi Martín
c5b20e03ce Merge pull request #4958 from consul/dependabot/bundler/master/rspec-rails-5.1.2
Bump rspec-rails from 5.0.1 to 5.1.2
2022-08-26 15:04:36 +02:00
Javi Martín
afd20493cf Merge pull request #4941 from consul/reversible_migration_cop
Fix Rails/ReversibleMigration rule offenses
2022-08-26 14:58:45 +02:00
Javi Martín
b756a2173f Merge pull request #4956 from consul/dependabot/bundler/master/i18n-tasks-1.0.11
Bump i18n-tasks from 0.9.34 to 0.9.37
2022-08-26 14:53:33 +02:00
dependabot[bot]
bf3fdf151e Bump rspec-rails from 5.0.1 to 5.1.2
Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 5.0.1 to 5.1.2.
- [Release notes](https://github.com/rspec/rspec-rails/releases)
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md)
- [Commits](https://github.com/rspec/rspec-rails/compare/v5.0.1...v5.1.2)

---
updated-dependencies:
- dependency-name: rspec-rails
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 14:43:26 +02:00
dependabot[bot]
342a0fd97e Bump i18n-tasks from 0.9.34 to 0.9.37
Bumps [i18n-tasks](https://github.com/glebm/i18n-tasks) from 0.9.34 to 0.9.37.
- [Release notes](https://github.com/glebm/i18n-tasks/releases)
- [Changelog](https://github.com/glebm/i18n-tasks/blob/main/CHANGES.md)
- [Commits](https://github.com/glebm/i18n-tasks/compare/v0.9.34...v0.9.37)

---
updated-dependencies:
- dependency-name: i18n-tasks
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 14:26:15 +02:00
Sebastia
7f29582faa Merge pull request #4963 from consul/remove-unused-translations
Remove unused translations
2022-08-26 13:50:03 +02:00
Javi Martín
567c2ed34f Merge pull request #4960 from consul/dependabot/bundler/master/webdrivers-4.7.0
Bump webdrivers from 4.6.0 to 4.7.0
2022-08-26 13:32:48 +02:00
Javi Martín
013fca1e31 Merge pull request #4959 from consul/dependabot/bundler/master/jquery-rails-4.5.0
Bump jquery-rails from 4.4.0 to 4.5.0
2022-08-26 13:32:31 +02:00
taitus
8b6d7bfa44 Remove unused translations 2022-08-26 13:29:17 +02:00