• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codeforamerica / ohana-api
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: mb-update-factory-bot
DEFAULT BRANCH: master
Repo Added 30 May 2013 02:33PM UTC
Files 122
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH 336-import-fixes
branch: 336-import-fixes
CHANGE BRANCH
x
Reset
  • 336-import-fixes
  • 10-user-agent
  • 104-search-for-many-languages
  • 164-fix-devise-bug
  • 185-org-autocomplete
  • 187-admin-languages
  • 188-highlight-error-fields
  • 200-remove-required-attribute
  • 238-update-readme
  • 25-api-keys
  • 304-csv-export
  • 308-add-new-program-button
  • 313-copy-service
  • 326-zip-csv-files
  • 332-improve-import-errors
  • 361-csv-memory
  • 41-enable-ssl
  • 69-create-app-link
  • add-additional-fields
  • add-admin-field-to-location
  • add-codeclimate-config
  • add-contacts-to-org
  • add-contacts-to-service
  • add-devise-paranoid
  • add-docker-support
  • add-gitattributes
  • add-interpretation-services
  • add-number_type-to-phones
  • add-phones-to-org
  • add-phones-to-service
  • add-profiling-gems
  • add-programs
  • add-schedules
  • add-sms-to-phone-number-type
  • added_fields
  • admin-interface
  • admin-subdomain
  • automatically-set-super-admin
  • bootstrap-tweaks
  • cache-gems-for-travis
  • category-assignment-via-CSV
  • csv-import
  • data-merge
  • disable-email-sending-during-db-seed
  • disable-state-validation-for-non-us
  • elasticsearch
  • expose-weekday-as-integer
  • fix-csv-import-script
  • fix-dashboard-spec
  • fix-devise-issues
  • fix-docker
  • fix-flickering-search-spec
  • fix-heroku-db-setup
  • fix-label-for-categories
  • fix-ranking-issue
  • fix-readme
  • fix-rubocop-offenses
  • fix-scss-offenses
  • full-text-search-for-org-name
  • holiday-schedules
  • holiday-schedules-admin
  • hound-config
  • inactive-services
  • installation-docs
  • latlon
  • master
  • mb-protected-attributes
  • mb-update-factory-bot
  • mb-update-gems
  • nearby
  • only-validate-presence-of-state-for-us-and-ca
  • optimize-admin-decorator
  • order-categories
  • pg-search
  • postgres
  • prevent-puma-connection-leakage
  • readme-updates
  • refactor-search
  • refactor-validators
  • remove-grape
  • remove-redis
  • remove-short-description-validations-137
  • remove-unused-code
  • remove-unused-http-headers
  • rename-fields
  • replace-location-emails-with-email
  • replace-location-urls-with-website
  • replace-mandrill-with-sendgrid
  • replace-pg-search
  • search-keyword-service-area
  • search-multiple-categories
  • select2-for-service-areas
  • service-area-filter
  • show-version-number-in-admin-interface
  • snyk-fix-80ad56c6
  • taxonomy-import
  • test
  • tweak-install-postgresql-words
  • update-README
  • update-bootstrap-sass
  • update-caching
  • update-dev-gems
  • update-devise
  • update-gems
  • update-gems-with-bummr
  • update-nearby-serializer
  • update-nokogiri
  • update-pundit
  • update-rails
  • update-readme
  • update-required-fields
  • update-root-endpoint
  • update-rubocop
  • update-ruby
  • update-ruby-and-bummr
  • update-sample-csvs
  • update-services
  • update-spec-setup
  • update-status-controller
  • update-uglifier
  • updates-seed-user-comments
  • updates-test-data
  • updates-test-data-infobox
  • upgrade-bootstrap
  • upgrade-rspec
  • upgrade-swagger
  • use-select2-tags-for-service-keywords
  • v0.3.1.0
  • v1.0
  • v1.1.0
  • v1.2.0
  • v2.0.0
  • v3.0.0
  • v3.1.0
  • wad-without-credentials

pending completion
994

push

travis-ci

monfresh
Fix various issues with import script.

- Improve logic that determines whether or not a location needs to be geocoded. In addition, the location importer now checks to see if an address already exists for the location. If so, it updates that same address instead of assigning address attributes, which, unbeknown to me, actually destroyed the existing address and created a new one. The side effect of destroying the address is that it triggered the `reset_location_coordinates` callback, which in turn triggered the geocoding since the location no longer had coordinates.

- Invalid entries no longer prevent the entire CSV file from being saved to the database. Now, valid entries get saved, and error messages are displayed for invalid entries.

- If a CSV file doesn't have sequential IDs, the database will now save the entry with the same ID as in the CSV file. Previously, the database would assign sequential IDs, which would cause mismatches between CSV files that refer to a particular foreign key.

- Added a conditional for the `touch_locations` callback in organization.rb to improve performance during initial import of organizations.

- The console output that lets you know which file is being imported has been moved out of the rake task and into the EntityImporter. That way, if a file is skipped (because it's not required and is missing or empty, for example), then the console won't say that it is being imported.

Closes #336.

1673 of 1683 relevant lines covered (99.41%)

68.86 hits per line

Relevant lines Covered
Build:
Build:
1683 RELEVANT LINES 1673 COVERED LINES
68.86 HITS PER LINE
Source Files on 336-import-fixes
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
994 336-import-fixes Fix various issues with import script. - Improve logic that determines whether or not a location needs to be geocoded. In addition, the location importer now checks to see if an address already exists for the location. If so, it updates that same... push 17 May 2015 09:12PM UTC monfresh travis-ci pending completion  
993 336-import-fixes Fix various issues with import script. - Improve logic that determines whether or not a location needs to be geocoded. In addition, the location importer now checks to see if an address already exists for the location. If so, it updates that same... push 17 May 2015 09:12PM UTC monfresh travis-ci pending completion  
See All Builds (1061)
  • Repo on GitHub
  • CI Project
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc