Javi Martín
acfaada82b
Update upload artifact action to version 4
...
We were getting a warning with version 3:
Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/upload-artifact@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ .
2024-03-02 00:51:22 +01:00
Javi Martín
1fe03937f9
Merge pull request #5419 from consuldemocracy/update_setup_node_action_to_version_4
...
Update setup-node action to version 4
2024-03-02 00:44:33 +01:00
Javi Martín
23e54892d5
Update setup-node action to version 4
...
We were getting a warning with version 3:
Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/setup-node@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ .
2024-03-02 00:29:43 +01:00
Javi Martín
fbe46c95df
Merge pull request #5415 from consuldemocracy/update_checkout_action_to_version_4
...
Update checkout action to version 4
2024-03-02 00:13:04 +01:00
Javi Martín
3fa16bc882
Update checkout action to version 4
...
We were getting some warnings with version 3:
Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/checkout@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
2024-03-01 23:46:30 +01:00
Javi Martín
dc5267320b
Merge pull request #5411 from consuldemocracy/update_upload_artifact_action
...
Update upload artifact action to version 3
2024-03-01 23:44:55 +01:00
Javi Martín
e07650e09b
Update upload artifact action to version 3
...
We were getting a warning with version 2:
The following actions uses node12 which is deprecated and will be forced
to run on node16: actions/upload-artifact@v2. For more info:
https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
2024-03-01 23:11:39 +01:00
Javi Martín
e9af16f266
Merge pull request #5407 from consuldemocracy/update_checkout_action
...
Update checkout action to version 3
2024-03-01 23:08:21 +01:00
Javi Martín
b60d2f45b8
Update checkout action to version 3
...
We were getting a warning with version 2:
The following actions uses node12 which is deprecated and will be forced
to run on node16: actions/checkout@v2. For more info:
https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
2024-03-01 21:58:42 +01:00
Javi Martín
5658b6f502
Merge pull request #5378 from consuldemocracy/dependabot/bundler/capybara-3.40.0
...
Bump capybara from 3.39.2 to 3.40.0
2024-03-01 21:55:46 +01:00
dependabot[bot]
139da18b19
Bump capybara from 3.39.2 to 3.40.0
...
Bumps [capybara](https://github.com/teamcapybara/capybara ) from 3.39.2 to 3.40.0.
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md )
- [Commits](https://github.com/teamcapybara/capybara/compare/3.39.2...3.40.0 )
---
updated-dependencies:
- dependency-name: capybara
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-01 19:53:06 +00:00
Javi Martín
ed24a16f61
Merge pull request #5405 from consuldemocracy/dependabot/bundler/rubocop-rspec-2.27.0
...
Bump rubocop-rspec from 2.24.1 to 2.27.0
2024-03-01 20:51:06 +01:00
dependabot[bot]
86b72ad7be
Bump rubocop-rspec from 2.24.1 to 2.27.0
...
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec ) from 2.24.1 to 2.27.0.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases )
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.24.1...v2.27.0 )
---
updated-dependencies:
- dependency-name: rubocop-rspec
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-01 19:22:10 +00:00
Javi Martín
8c0c952361
Merge pull request #5385 from consuldemocracy/dependabot/bundler/rubocop-factory_bot-2.25.1
...
Bump rubocop-factory_bot from 2.24.0 to 2.25.1
2024-03-01 20:20:01 +01:00
dependabot[bot]
7fc40ef3d3
Bump rubocop-factory_bot from 2.24.0 to 2.25.1
...
Bumps [rubocop-factory_bot](https://github.com/rubocop/rubocop-factory_bot ) from 2.24.0 to 2.25.1.
- [Release notes](https://github.com/rubocop/rubocop-factory_bot/releases )
- [Changelog](https://github.com/rubocop/rubocop-factory_bot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-factory_bot/compare/v2.24.0...v2.25.1 )
---
updated-dependencies:
- dependency-name: rubocop-factory_bot
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-01 18:09:55 +00:00
Javi Martín
4c4699cb31
Merge pull request #5383 from consuldemocracy/dependabot/bundler/rubocop-capybara-2.20.0
...
Bump rubocop-capybara from 2.19.0 to 2.20.0
2024-03-01 19:07:59 +01:00
dependabot[bot]
5772e1b14e
Bump rubocop-capybara from 2.19.0 to 2.20.0
...
Note that this version changed the default enforced styles for
ClickLinkOrButtonStyle and NegationMatcher, so we're now specifying
them.
Bumps [rubocop-capybara](https://github.com/rubocop/rubocop-capybara ) from 2.19.0 to 2.20.0.
- [Release notes](https://github.com/rubocop/rubocop-capybara/releases )
- [Changelog](https://github.com/rubocop/rubocop-capybara/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-capybara/compare/v2.19.0...v2.20.0 )
---
updated-dependencies:
- dependency-name: rubocop-capybara
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-01 18:38:13 +01:00
Javi Martín
65ad1824fa
Merge pull request #5401 from consuldemocracy/dependabot/bundler/rails-6.1.7.7
...
Bump rails from 6.1.7.6 to 6.1.7.7
2024-02-28 17:17:20 +01:00
Javi Martín
9ecab3bac6
Bump Rails to version 6.1.7.7
2024-02-28 16:04:38 +01:00
Javi Martín
07e4b8f14c
Merge pull request #5365 from consuldemocracy/dependabot/bundler/puma-5.6.8
...
Bump puma from 5.6.7 to 5.6.8
2024-02-23 19:54:29 +01:00
dependabot[bot]
ac346573d5
Bump puma from 5.6.7 to 5.6.8
...
Bumps [puma](https://github.com/puma/puma ) from 5.6.7 to 5.6.8.
- [Release notes](https://github.com/puma/puma/releases )
- [Changelog](https://github.com/puma/puma/blob/master/History.md )
- [Commits](https://github.com/puma/puma/compare/v5.6.7...v5.6.8 )
---
updated-dependencies:
- dependency-name: puma
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-23 18:06:58 +00:00
Javi Martín
435a4be7ca
Merge pull request #5323 from consuldemocracy/release_2.1.0
...
Release version 2.1.0
2024-02-20 19:07:22 +01:00
Javi Martín
49e76a1427
Release version 2.1.0
2024-02-20 18:28:56 +01:00
Javi Martín
976384ad9a
Fix typo in CHANGELOG
2024-02-20 18:28:48 +01:00
Javi Martín
90f753af98
Remove tasks to upgrade to version 2.0.0
...
These tasks have already been executed.
2024-02-13 18:11:24 +01:00
Javi Martín
e027f77464
Merge pull request #5387 from consuldemocracy/dependabot/bundler/nokogiri-1.16.2
...
Bump nokogiri from 1.15.4 to 1.16.2
2024-02-13 18:08:24 +01:00
dependabot[bot]
adca5d20f3
Bump nokogiri from 1.15.4 to 1.16.2
...
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri ) from 1.15.4 to 1.16.2.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases )
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.15.4...v1.16.2 )
---
updated-dependencies:
- dependency-name: nokogiri
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-13 16:16:30 +00:00
Senén Rodero
15518a6316
Merge pull request #5372 from consuldemocracy/puma_socket_activation
...
Puma socket activation
2024-02-13 17:01:56 +01:00
Senén Rodero
b0882a9146
Merge pull request #5328 from consuldemocracy/i18n_crowdin
...
Update translations from Crowdin
2024-02-12 23:01:30 +01:00
Senén Rodero Rodríguez
4c997ec0ca
Enable Scottish Gaelic by default
2024-02-12 22:01:04 +01:00
Consul Bot
7490c24a10
Update translation from Crowdin
2024-02-12 22:01:04 +01:00
Senén Rodero Rodríguez
1d9d467c86
Enable puma socket activation
...
This gives us graceful restarts
2024-02-01 20:52:05 +01:00
Senén Rodero Rodríguez
bb20e8e2bd
Disable ExecJS when running Puma and Delayed Job
...
By default, when starting a Rails application, ExecJS checks whether there's
a runtime available in the system. Since on production we now use FNM to
manage node versions, this meant that we had to run Puma using the
`fnm exec bundle exec puma` command.
However, this causes issues when integrating Puma with Systemd. For instance,
when using `fnm exec`, the PID for the main process is no longer the Puma
process but the FNM process, meaning that stopping and restarting Puma will
no longer behave as expected and might last 90 seconds (Systemd's timeout to
stop a service). Furthermore, using a Puma Systemd socket in order to
implement hot or phased restarts won't work either, and so we'll get 502
errors while restarting the service.
So we're using the `EXECJS_RUNTIME=Disabled` environment variable in the
Systemd service, which means we can remove the `fnm exec` prefix in the
ExecStart command (which starts Puma) and now the PID for the main process
is the Puma process, stopping/restarting the service no longer times out,
and we'll be able to implement Puma socket activation and hot restarts.
However, removing `bundle` from the list of commands which use `fnm exec`
(the `fnm_map_bins`) meant that we got a `RuntimeUnavailable` exception when
running `bundle exec bin/delayed_job`. We tried to add `delayed_job` to the
`fnm_map_bins` variable but couldn't make it work.
Since we only need the ExecJs runtime when precompiling the assets but we
don't need it in order to start Puma or Delayed Job, we're adding
`{ EXECJS_RUNTIME: "Disabled" }` to Capistrano's default environment and
we're only using the default Runtime when `fnm exec` is used, which we've
done by setting the environment variable in the prefix of the fnm command.
This way, when running `EXECJS_RUNTIME='' fnm exec bundle exec rake assets:precompile`,
the right ExecJS Runtime will be loaded, but it won't be loaded (since it
isn't needed) when starting Puma or Delayed Job.
2024-02-01 20:46:19 +01:00
Senén Rodero
650820b6a2
Merge pull request #5116 from consuldemocracy/marker_clustering
...
Add map markers clustering feature
2024-01-30 17:04:48 +01:00
Senén Rodero
0a50cb43ef
Merge pull request #5325 from consuldemocracy/settings_refactor
...
Refactor settings related code
2024-01-30 17:04:24 +01:00
Senén Rodero Rodríguez
3e9f2b8319
Load markers cluster layer by chunks
...
In order to avoid locking the browser for a long time.
when there are a lot of markers in the map:
https://github.com/Leaflet/Leaflet.markercluster#handling-lots-of-markers
2024-01-29 17:56:54 +01:00
Pierre Mesure
e5a6a5bf1d
Adding clustering
2024-01-29 17:56:54 +01:00
Senén Rodero Rodríguez
ef14636b6c
Sort variables alphabetically
2024-01-29 17:56:54 +01:00
Senén Rodero Rodríguez
0186484fac
Use leaflet npm version instead of the gem
2024-01-29 17:56:54 +01:00
Senén Rodero Rodríguez
0643606dcd
Add new setting to enable/disable map marker clustering
2024-01-29 17:56:54 +01:00
Senén Rodero Rodríguez
095ec8f267
Use consistent map default coordinates in dev_seeds
...
While we were creating development seeds with map
locations in Madrid the default map coordinates were
placed in Greenwich. Now when we run the
`dev_seed` task we'll have the default map coordinates
and the sample data placed in Madrid.
2024-01-29 17:56:54 +01:00
Senén Rodero Rodríguez
326a8a769b
Use consistent coordinates in tests
...
When we create a budget heading through factories it's placed at Puerta del Sol,
Madrid. It seems reasonable that the `map_location` factory places the points near
there.
Before these changes sometimes the map center was placed in Madrid while map
locations were placed in Greenwich, therefore markers were not visible in the
map current pane.
2024-01-25 18:30:28 +01:00
Senén Rodero Rodríguez
47bd201ada
Remove duplicated test
...
The previous commit already covers the same.
2024-01-25 18:30:28 +01:00
Senén Rodero Rodríguez
ea0cedec72
[EXP] Make AJAX settings work when javascript is disabled
...
Otherwise we get a AuthenticityToken exception.
I was nor able to write a test to verify this change.
2024-01-25 18:29:39 +01:00
Senén Rodero Rodríguez
6c4f917e2a
[EXP] Show all admin settings tabs when javascript is disabled
...
Otherwise administrators cannot access the settings from other tabs.
2024-01-25 18:29:39 +01:00
Senén Rodero Rodríguez
047cb2b76c
Extract SDG configuration tab partial to a component
2024-01-25 18:29:39 +01:00
Senén Rodero Rodríguez
f32d7edcf3
Extract proposals dashboard tab partial to a component
2024-01-25 18:29:38 +01:00
Senén Rodero Rodríguez
75180de8e6
Extract images and documents tab partial to a component
2024-01-25 18:29:38 +01:00
Senén Rodero Rodríguez
f56dc654f3
Extract map configuration tab partial to a component
2024-01-25 18:29:38 +01:00
Senén Rodero Rodríguez
6876f080a2
Extract features tab partial to a component
2024-01-25 18:29:38 +01:00