-
Notifications
You must be signed in to change notification settings - Fork 5
WIP: Implement Geographic Data Models and Migrations #545
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
Draft
rsmithlal
wants to merge
68
commits into
main
Choose a base branch
from
12-implement-geographic-data-models-and-migrations
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
WIP: Implement Geographic Data Models and Migrations #545
rsmithlal
wants to merge
68
commits into
main
from
12-implement-geographic-data-models-and-migrations
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Continent, Country, State Seed: continents, countries, canandian provinces
33 tasks
Initial region, settlement, and region settlement data. Add primary community for every newly-created community-based data type (geographic locations, platforms, people for now).
Running into errors that I don't have the bandwidth to solve right now
…rd before it is created
disabled a lot of the not-yet-implemented scaffolded specs for geography models
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.5 to 1.64.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop@v1.63.5...v1.64.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Add support for postgis
Split rubocop out into its own task
This reverts commit 293ec83.
Bumps [faker](https://github.com/faker-ruby/faker) from 3.3.1 to 3.4.1. - [Release notes](https://github.com/faker-ruby/faker/releases) - [Changelog](https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md) - [Commits](faker-ruby/faker@v3.3.1...v3.4.1) --- updated-dependencies: - dependency-name: faker dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [pundit-resources](https://github.com/better-together-org/pundit-resources) from `16b9030` to `b6218c6`. - [Commits](better-together-org/pundit-resources@16b9030...b6218c6) --- updated-dependencies: - dependency-name: pundit-resources dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.64.0 to 1.64.1. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop@v1.64.0...v1.64.1) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…map for lazy loaded controllers
reduce duplication setting url configs
Includes fix for trix active storage attachment direct uploads to S3
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.152.0 to 1.152.1. - [Release notes](https://github.com/aws/aws-sdk-ruby/releases) - [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-ruby/commits) --- updated-dependencies: - dependency-name: aws-sdk-s3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [rails](https://github.com/rails/rails) from 7.0.8.3 to 7.1.3.4. - [Release notes](https://github.com/rails/rails/releases) - [Commits](rails/rails@v7.0.8.3...v7.1.3.4) --- updated-dependencies: - dependency-name: rails dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.152.1 to 1.152.3. - [Release notes](https://github.com/aws/aws-sdk-ruby/releases) - [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-ruby/commits) --- updated-dependencies: - dependency-name: aws-sdk-s3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 2.31.0 to 3.0.1. - [Release notes](https://github.com/rubocop/rubocop-rspec/releases) - [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop-rspec@v2.31.0...v3.0.1) --- updated-dependencies: - dependency-name: rubocop-rspec dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Store master.key in password manager. Used to edit the encrypted credentials. Store only SECRET_KEY_BASE in encrypted credentials for now
- Initial dev setup guide - Initial production deployment guide - Initial platform setup wizard guide All guides are very much WIP.
Signed-off-by: Robert Smith <[email protected]>
Signed-off-by: Robert Smith <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #12
We need to implement a series of geographic data models within the
BetterTogether
namespace, nested under aGeography
module. These models will represent various geographic entities such as countries, states, regions, cities, districts, neighborhoods, streets, and addresses. Each model will have specific attributes and associations. The migrations will set up the necessary database tables with appropriate columns and relationships.Tasks:
Create Models:
BetterTogether::Geography::Country
BetterTogether::Geography::State
BetterTogether::Geography::Region
BetterTogether::Geography::Settlement
BetterTogether::Geography::District
BetterTogether::Geography::Neighborhood
BetterTogether::Geography::Street
BetterTogether::Geography::Address
Define Model Attributes and Associations:
bt_identifier
,bt_protected
, andbt_slug
attributes to each model.belongs_to
,has_many
).bt_references
for associations.Generate Migrations:
create_bt_table
migration forcountries
.create_bt_table
migration forstates
with reference tocountries
.create_bt_table
migration forregions
with reference tocountries
.create_bt_table
migration forsettlements
with references tostates
andregions
.create_bt_table
migration fordistricts
with references tosettlements
andregions
.create_bt_table
migration forneighborhoods
with references tocities
anddistricts
.create_bt_table
migration forstreets
with references toneighborhoods
andcities
.create_bt_table
migration foraddresses
with references tocities
,states
, andcountries
, and ast_point
for coordinates.Implement Models:
BetterTogether::Geography::Country
model.BetterTogether::Geography::State
model.BetterTogether::Geography::Region
model.BetterTogether::Geography::Settlement
model.BetterTogether::Geography::District
model.BetterTogether::Geography::Neighborhood
model.BetterTogether::Geography::Street
model.BetterTogether::Geography::Address
model.Testing:
Documentation:
Please make sure to create a branch for this implementation and open a pull request once the tasks are completed. Let’s ensure all tests pass before merging the changes into the main branch.
This checklist covers the major tasks required to implement the geographic data models and their migrations, ensuring that each step is tracked and documented properly.