Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Test localgovdrupal/localgov_elections drupal-module
on:
push:
branches:
- '1.x'
- '2.x'
pull_request:
branches:
- '1.x'
- '2.x'
workflow_dispatch:

jobs:
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ the LocalGov Drupal distribution.
- 'All-out' and not 'all-out' (e.g. halves or thirds) elections
- Table, graph and map based views of the results
- Extensible boundary source provider for electoral areas and geo data
- Social media posting of results (currently Twitter / X)

## How to use

Expand Down Expand Up @@ -38,9 +37,8 @@ You may also wish to use the submodules provided as part of the Localgov Electio
3. LocalGov Elections Reporting ONS Divisions 2024 - Boundary source provider for Office of National Statistics 2024 County Divisions
4. LocalGov Elections Reporting ONS Parishes 2024 - Boundary source provider for Office of National Statistics 2024 Parishes
5. Localgov Elections Parliamentary Constituency Provider - Boundary source provider for Office of National Statistics 2024 constituency boundaries
6. LocalGov Elections Reporting Social Post Integration - Post results to social media (Twitter/X)
7. LocalGov Elections Reporting Demo - Demo content to help with testing/evaluation
8. LocalGov Elections Reporting - UK Parties - Adds the majority of UK political parties to the party taxonomy.
6. LocalGov Elections Reporting Demo - Demo content to help with testing/evaluation
7. LocalGov Elections Reporting - UK Parties - Adds the majority of UK political parties to the party taxonomy.

Further details for these modules are in their own module READMEs and the [Documentation](docs/index.md).

Expand Down
11 changes: 2 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,14 @@
"cweagans/composer-patches": "^1.6",
"drupal/charts": "^5.0",
"drupal/views_field_view": "^1.0@beta",
"drupal/views_simple_math_field": "^3.0",
"drupal/social_post": "^3.0",
"drupal/social_post_twitter": "^3.0"
"drupal/views_simple_math_field": "^3.0"
},
"extra": {
"enable-patching": true,
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2"
},
"patches": {
"drupal/social_post_twitter": {
"Fix API integration (see https://www.drupal.org/project/social_post_twitter/issues/3392216)": "https://www.drupal.org/files/issues/2023-10-13/twitter_fixes.patch",
"Fix WOD (see https://www.drupal.org/project/social_post_twitter/issues/3436436#comment-15522882)": "https://www.drupal.org/files/issues/2024-03-27/sdk-init-fix.patch"
}
}
"patches": {}
}
}
15 changes: 3 additions & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ For each electoral area you need, do the following:

### Add candidate and electoral area details

1. On viewing the election node you will be presented with a list of electoral area results. Use the `[edit]` link to access each electoral area details. ![image](images/ward-results.png)
1. On viewing the election node you will be presented with a list of electoral area results. Use the `[edit]` link to access each electoral area details. ![image](images/ward-results.png)

2. You need to add the following details for each electoral area in the preparation stage
1. Details tab - Eligible voters
Expand All @@ -90,21 +90,12 @@ If you are preparing for an election which is not 'all out' and only elects a pr

## Running an election

Once the results from the count start to come in you can enter them from viewing the election node.
Once the results from the count start to come in you can enter them from viewing the election node.

### Entering electoral area results

1. In the list of electoral areas on the election node view click `[edit]` for the electoral area concerned.
2. For each candidate listed, click the Edit button and enter the number of votes they received.
3. Click the 'Votes finalised' slider to confirm this result is declared.
4. In the Overall results tab enter the number of spoils and whether it was a Hold or Gain for the winning party.
5. Click Save or Save and Tweet (if you have enabled the submodule and wish to post the result to social media)

### Tweet the result

The module will need configured before use. Please see the submodule [documentation](../modules/localgov_election_reporting_social_post/README.md) for instructions.

1. Having followed the process for [Entering electoral area results](#entering-electoral-area-results) you click Save and Tweet.
2. You are then presented with a screen to select the account (as setup in submodule [documentation](../modules/localgov_election_reporting_social_post/README.md)) and the message to tweet. This supports tokens. ![image](images/tweet.png)
3. Click Preview
4. You can them Edit or Tweet.
5. Click Save.
2 changes: 1 addition & 1 deletion localgov_elections.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: LocalGov Elections Reporting
description: Election reporting module.
type: module
package: LocalGov Drupal
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11

dependencies:
- autocomplete_deluxe:autocomplete_deluxe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: 'Localgov Elections Reporting - Parliamentary Constituency Provider'
type: module
description: 'Provides a UK constituency boundary provider. Data source: https://geoportal.statistics.gov.uk/datasets/ons::westminster-parliamentary-constituencies-future-boundaries-uk-bfe-3/about'
package: LocalGov Drupal
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
dependencies:
- localgov_elections:localgov_elections
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: LocalGov Elections Reporting - ONS Divisions 2024
description: ONS Divisions 2024 Plugin
type: module
package: LocalGov Drupal
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11

dependencies:
- localgov_elections:localgov_elections
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: LocalGov Elections Reporting - ONS Parishes 2024
description: ONS Parishes 2024 Plugin
type: module
package: LocalGov Drupal
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11

dependencies:
- localgov_elections:localgov_elections
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: LocalGov Elections Reporting - ONS Wards 2024
description: ONS Wards 2024 Plugin
type: module
package: LocalGov Drupal
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11

dependencies:
- localgov_elections:localgov_elections
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: LocalGov Elections Reporting - ONS Wards 2023
description: ONS Wards 2023 Plugin
type: module
package: LocalGov Drupal
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
lifecycle: deprecated
lifecycle_link: https://github.com/localgovdrupal/localgov_elections/issues/155

Expand Down
22 changes: 0 additions & 22 deletions modules/localgov_elections_social_post/README.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading