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

fix: Add scope to Place & Story Model to filter out null coords (v2) #942

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

rudokemper
Copy link
Member

This PR adds a scope to the Place and Story Models to filter out any places that have null coordinates (primarily for the front end of TS Main and Explore).

Although we are currently requiring lat/long fields when creating a new Place in the CMS, the Importer currently permits the user to upload Places without lat/longs, hence introducing a bug where Places without lat/long are passed on to React.

We are now adding the stories associated with the communities when they are fetched, not when they are filtered.

In the future we need to rework the Importer as a whole, but that's a whole 'nother epic.

@rudokemper rudokemper changed the title [WIP] fix: Add scope to Place & Story Model to filter out null coords (v2) fix: Add scope to Place & Story Model to filter out null coords (v2) Sep 23, 2023
@lauramosher
Copy link
Contributor

You'll need to ♻️ rebase to resolve the conflicts

@rudokemper rudokemper force-pushed the rk/filter-places-null-coords-2 branch from f0ab4af to 98864be Compare October 13, 2023 15:34
@rudokemper
Copy link
Member Author

Ugh, gotta change my line ending settings for the repo -_-

@rudokemper rudokemper merged commit 0ddf326 into master Oct 13, 2023
@rudokemper rudokemper deleted the rk/filter-places-null-coords-2 branch October 13, 2023 15:35
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