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

#3432, AtlasOfLivingAutralia/ecodata#1047, AtlasOfLivingAutralia/ecod… #3452

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

temi
Copy link
Contributor

@temi temi commented Feb 20, 2025

…ata#1049

  • electorate is excluded state is added to exclude list
  • selecting primary electorate override automatically enables primary state override

…ata#1049

- electorate is excluded state is added to exclude list
- selecting primary electorate override automatically enables primary state override
@temi temi requested a review from chrisala February 20, 2025 03:36
Copy link
Collaborator

@chrisala chrisala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's easy enough to do, the list of selectable electorates/states in the exclude fields should be populated from the list of calculated states/electorates? It would make it a easier to find the one you want to exclude.


statesOfNewOtherExcludedElectorates && statesOfNewOtherExcludedElectorates.forEach(function(state) {
if (availableStates.indexOf(state) > -1) {
self.geographicInfo.otherExcludedStates.push(state);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only exclude the State associated with the excluded Electorate if there are no other (non excluded) Electorates in that same State - otherwise we are excluding a valid state.

- removed link between exclude electorate and exclude state
@chrisala chrisala merged commit 4afa131 into dev Feb 20, 2025
1 check passed
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.

2 participants