Commit Graph

9434 Commits

Author SHA1 Message Date
Juan Salvador Pérez García
bafdd697b8 Dashboard controllers have been refactored
Proposal dashboard related controllers have been refactored inside its
own namespace.
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
303584a06e Show will be reused in preview
Show view will be reused when a preview is required
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
cae67c2f4d Undone change in debates spec
A patch previously added trying to get rid of a flaky spec has been
removed.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
565f1102fa Removed unused locales 2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
3eaf8dbe9f Fixed redundant scope condition
Redundant scope condition found in Proposal.created_by scope. It has
been removed.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
3ee9f9b059 Removed redundant partial
proposal dashboard actions views use shared/errors partial instead of
its current errors partial
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
28e17abe72 Syntax for specs adjusted for consistency reasons
is_expected.to has been replaced by should
is_expected.not_to has been replaced by should_not
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
0659bc2fab Replace it by scenario
In acceptance tests use scenario instead of it.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
47a055ea48 Use time.current instead of Time.now
Use time.current instead of Time.now in order to avoid flakies.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
e90f5f1ba4 can? helper called with parenthesis
can? helper called with parenthesis
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
67de187bae t helper invoked with parenthesis
t helper is invoked with parenthesis
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
706fdae6d5 %i arrays of symbols
%i arrays of symbols have been replaced by standard arrays of symbols in
order to keep the consistency.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
8bb3d5b3ab frozen_string_literal removed
frozen_string_literal magic comment has been removed until a decission
is taken regarding to its convenience.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
690cdd9b48 Removed blank line
Blank line has been removed
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
fa86d27381 Blank files removal 2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
5236fba47e Fixed locales
Fixed locale related issues
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
f9a085a400 Implements graph for dashboard
Implements graph secion for dashboard.

Dashboard related actions have been agrupated inside a menu in the admin
section.

Minor bugfixes.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
c1a9f1d138 Addressed comments from sprint meeting 22/06/2018
New group created in administration menu including dashboard resources/
proposed tasks and pending tasks for the administrator.

Some unused files have been removed.
2018-07-17 17:52:48 +02:00
Juan Salvador Pérez García
3aff0e96b2 Fix proposal supports query
Proposal supports query was returning the supports received for each
group. Now it returns the supports received for the given group.
2018-07-17 17:52:48 +02:00
Juan Salvador Pérez García
7018c0fe45 Stats was not returning supports for the current day 2018-07-17 17:52:48 +02:00
Juan Salvador Pérez García
e1ac6bfa01 Fixed issue shown resources in the dashboard 2018-07-17 17:52:48 +02:00
Juan Salvador Pérez García
8239b789fa Fixed accidentally added } 2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
89f3da25b9 Implements #138 and #139
Implements graph with supports for the given  period.
2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
03e8d36fd1 Chaned max wait time for capybara 2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
633cf688b2 Increased wait time for capybara 2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
b75997a7a6 Added missing translations 2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
aff03de901 Implements #160
Integrates resources withing the proposals dashboard
2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
53ce073b11 Changes in specs
Increased the default_max_wait_time parameter trying to get rid of a
weird issue
2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
a00f1f7eaf Fixed issue in concern that was causing some tests to fail 2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
33b3431c70 Implements #150
Adds an entry inside moderation section that allows moderators to check
pending tasks and mark them as solved.
2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
83f78b1940 Fixes #135
Adds a table with proposed actions in the dashboard. The user can mark
an action as executed.
2018-07-17 17:51:13 +02:00
Juan Salvador Pérez García
9f27d73240 Fixed failing specs
Fixed failing specs due to turbolinks not being able to load the page
befor Capybara.default_max_wait_time seconds.

Added gem that creates screenshots of failing specs.
2018-07-17 17:50:47 +02:00
Juan Salvador Pérez García
358aa14ed3 Fixed failing specs 2018-07-17 17:50:47 +02:00
Juan Salvador Pérez García
691954bbb8 Fixed syntax error after rebasing to master 2018-07-17 17:50:47 +02:00
Juan Salvador Pérez García
305a0059bd Addresses @iacoco comments 2018-07-17 17:50:47 +02:00
Juan Salvador Pérez García
96d5a9b5ff Fixed failing spec 2018-07-17 17:50:47 +02:00
Juan Salvador Pérez García
426e244727 Fixed failing test 2018-07-17 17:50:47 +02:00
Juan Salvador Pérez García
29cf7d9f46 Addressed preview comments 2018-07-17 17:50:47 +02:00
Juan Salvador Pérez García
a05e5c003f Fixed failing tests 2018-07-17 17:50:46 +02:00
Juan Salvador Pérez García
b7c3cc3e08 Fixed i18n specs 2018-07-17 17:50:05 +02:00
Juan Salvador Pérez García
d8d458f1db Fixed test environment inside docker 2018-07-17 17:50:05 +02:00
Juan Salvador Pérez García
fc57bad1cd Fixes #155 2018-07-17 17:50:05 +02:00
Juan Salvador Pérez García
fc9f14568f Fixes #154
Remove image and send notification moved to proposal dashboard
2018-07-17 17:50:05 +02:00
Juan Salvador Pérez García
e4e0cb65de Implements #142
Dashboard actions can be proposed actions or resources
2018-07-17 17:50:05 +02:00
Juan Salvador Pérez García
ff03db3c14 Fixes #153
Preview proposal after its creation
2018-07-17 17:49:42 +02:00
Juan Salvador Pérez García
1464bddfa8 Fixes #134
Adds an administration interface for the proposal dashboard actions.
2018-07-17 17:48:46 +02:00
Juan Salvador Pérez García
d9f85bd756 Added draft label to public view of draft proposals. 2018-07-17 17:47:40 +02:00
Juan Salvador Pérez García
304ae23c81 Fixes #137
Edit button moved to dashboard.
Added button that publishes the proposal.
2018-07-17 17:47:40 +02:00
Juan Salvador Pérez García
212c088d35 Implements #144
Creates the basic layout for the dashboard
2018-07-17 17:47:40 +02:00
Juan Salvador Pérez García
1db5a00eae Prepare capistrano/db migrations to support more setups (#2)
The following parameters have been added to deploy-secrets.yml:

* **use_rvm**: yes/no
* **ruby_version**: Ruby version for rvm. Defaults to 2.3.2
* **repository**: Git repository. Defaults to the oficial repository
* **branch**: Branch to deploy. Defaults to master
* **rails_env**: Defaults to the stage.

Fixed migrations that required admin rights. Now first check if the postgress extensions are available. If so finish without doing nothin.

Added support for passenger.
2018-07-17 17:46:54 +02:00