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

codeforamerica / ohana-web-search
91%
master: 98%

Build:
Build:
LAST BUILD BRANCH: mb-circle-ci
DEFAULT BRANCH: master
Repo Added 12 Mar 2014 12:22AM UTC
Files 26
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 api-updates
branch: api-updates
CHANGE BRANCH
x
Reset
  • api-updates
  • 220-email-link
  • 239-apple-icons
  • 289-lang-links-footer
  • 300-add-get-link
  • 304-return-false-ie
  • 306-rails4-upgrade
  • 323_remove_phone_hours
  • 335-geolocate-btn-style
  • 336-remove-hardcoded-smc-code
  • 338-map-icon-sizes
  • 365-map-infobox
  • 377-ga-fix
  • 378-fallback-css
  • 379-open-sauce-integration
  • 384-code-cleanup
  • 387-summary-bug
  • 389-update-tests
  • 394-search-txt-alignment
  • 396-input-line-height
  • 399-travis-pr-failures
  • 402-coordinates
  • 409-polyfill-refactor
  • 410-contributing-md
  • 411-ask-for-field
  • 414-rubocop-integration
  • 415-vanity-phone-number
  • 417-change-type-to-number_type
  • 421-use-test-key-in-application-yml
  • 423-fix-search-input-fields
  • 424-css-alignment
  • 436-fax-text
  • 439-optimize-js-placement
  • 440-rails-41-upgrade
  • 442-cucumber-cleanup
  • 446-upgrade-google-analytics
  • 447-cfa-flag
  • 459-google-translate-customization
  • 463-cuddle-js
  • 464-refactor-color-variables-take-two
  • 468-top-align-superscript
  • 476-adds-missing-details
  • 484-adds-applicationjs
  • 486-links-for-no-results
  • 495-clear-button
  • 496-floating-header
  • 498-adds-graphic-templates
  • 499-pagination-links
  • 507-character-limiter
  • 517-search-address
  • 519-upgrade-rspec
  • 526-add-tab-index
  • 526-tab-index
  • 526-tab-index-helper
  • 546-remove-title-attr
  • 547-geolocation-btn-disable
  • 551-remove-gsub
  • 552-requirejs-gem-update
  • 554-default-location-text
  • 565-remove-server-cookie
  • 569-cuddle-css
  • 571-last-modified
  • 573-browser-upgrade-alert
  • 582-maps-api-key
  • 589-ie-input
  • 590-popup-types
  • 612-map-size-setting
  • 622-rename-token
  • 623-json-type
  • 632-terminology-link
  • 635-terminology-box-position
  • 644-update-fields
  • 645-utility-link-module
  • 649-org-details
  • 651-poi-details-map
  • 663-phone-types-results
  • 667-new-service-fields
  • 671-schedules
  • 686-desc-whitespace
  • 705-rename-js
  • 713-right-margin
  • 716-jshint-offenses
  • 724-extra-space
  • 726-interpretation-services
  • 729-test-echo
  • 730-over-quota
  • 731-translation-customization
  • 738-sms
  • 743-fix-long-cache-key
  • 782-custom-translations
  • 811-downgrade-requirejs-rails
  • add-bootstrap-script
  • add-bummr
  • add-codeclimate
  • add-docker-support
  • add-hackrequest-link
  • add-jshint-to-script-test
  • add-please-wait-to-geolocate-button-481
  • add-profiling-gems
  • add-reek-engine
  • addeventlistener-module
  • alert-css-cleanup
  • alert-manager-update
  • allow-travis-to-run-from-external-prs
  • applicationjs-all-routes
  • box-shadow
  • clean-up-vcr
  • clear-all-button
  • code-cleanup
  • code-comments
  • convert-application-layout-to-haml
  • css-assets-partial
  • css-filenames
  • css-linting
  • css-refactor
  • css-updates
  • default-hide-geolcation
  • depfu/update/capybara-3.4.1
  • depfu/update/google-api-client-0.23.4
  • depfu/update/puma-3.12.0
  • depfu/update/reek-5.0.2
  • depfu/update/rubocop-0.58.1
  • depfu/update/rubocop-0.58.2
  • depfu/update/uglifier-4.1.15
  • depfu/update/uglifier-4.1.16
  • depfu/update/webpacker-3.5.5
  • depfu/update/yard-0.9.15
  • detail-map-complexity
  • detail-map-refactor
  • do-not-use-token-for-tests
  • eliminate-main-css
  • enable-https-setting
  • environment-vars
  • exclude-wad-from-coveralls
  • fax-appearance
  • filter-cleanup
  • fix-asset-pipeline
  • fix-bootstrap
  • fix-caching
  • fix-etag
  • fix-heroku-middleware-issue
  • fix-translation-spec
  • fixes-issues
  • font-awesome-sass
  • geolocate-refactor
  • google-translate-dropdown
  • graphics-file-layer-names
  • heroku-deploy-script
  • hotfix-async-plugin
  • hound-config
  • http-caching
  • ie-style-separation
  • ie-upgrades
  • ignore-ssl-errors-for-phantomjs
  • jquery_ujs
  • js-code-comment
  • js-utility-updates
  • jshint
  • jshint-adjustments
  • jshint-cleanup
  • lang-link-tweak
  • link-to-admin-site-351
  • logo-source
  • map-feature-update
  • map-loading-updates
  • map-manager-refactor
  • map-markers-assets
  • map-rendering-update
  • master
  • mb-better-webpacker-diff
  • mb-circle-ci
  • mb-fix-rubocop
  • mb-gmaps-api-key
  • mb-keyword-translator
  • mb-remove-jquery-dependency
  • mb-remove-rails-12-factor
  • mb-update-app-json
  • mb-update-codeclimate
  • mb-update-gems
  • mb-update-ruby
  • mb-use-webpacker
  • minor-readme-update
  • poltergeist
  • postgres
  • print-styles
  • refactor-and-customize-pagination
  • refactor-error-handling
  • refactor-search-results-presentation
  • refactor-translation
  • remove-alert-link-underline
  • remove-contrib
  • remove-kind
  • remove-readme-ruby-section
  • remove-unused-js
  • remove-unused-module-ref
  • remove-unused-util
  • removes-json-gem
  • removes-nearby-map-logic
  • removes-teaspoon
  • replace-mandrill-with-sendgrid
  • rubocop-style-updates
  • sass-docs
  • sass-refactor
  • set-tz-env-var
  • setup-instructions
  • simplify-filters
  • site-links
  • snyk-fix-6mlrps
  • snyk-fix-ypyrcz
  • spec-code-comments
  • style-guide
  • test-cleanup
  • test-refactor
  • test-script
  • trailing-space
  • transpec
  • update-better_errors
  • update-bummr
  • update-caching
  • update-close-btn-name
  • update-coveralls
  • update-faraday-http-cache
  • update-field-names
  • update-figaro
  • update-figaro-gem
  • update-font-awesome
  • update-font-awesome-rails
  • update-gems
  • update-google-api
  • update-google-api-client
  • update-google-client
  • update-haml-lint
  • update-haml-rails
  • update-jshint
  • update-jshint-gem
  • update-kgio
  • update-nokogiri
  • update-ohanakapa
  • update-rack-rewrite
  • update-rails
  • update-rails_12factor
  • update-readme
  • update-readme-stack
  • update-rubocop
  • update-ruby
  • update-sass-rails
  • update-spring
  • update-uglifier
  • update-vcr
  • updates-cassettes
  • updates-coveralls
  • updates-haml-rails
  • updates-kaminari
  • updates-modernizr
  • updates-poltergeist
  • updates-puma
  • updates-rspec-rails
  • updates-rubocop
  • updates-spring
  • updates-uglifier
  • upgrade-better_errors
  • upgrade-capybara
  • upgrade-chunky_png
  • upgrade-coveralls
  • upgrade-gems
  • upgrade-haml-lint
  • upgrade-rspec-rails
  • upgrade-rubocop
  • upgrade-ruby-211
  • upgrade-spring
  • upgrade-vcr
  • upgrade-webmock
  • upgrade-yard
  • use-different-label-for-location-hours
  • use-https-for-fonts
  • use-railties
  • use-test-app-for-specs
  • use-travis-caching
  • xit-filter-specs

pending completion
1423

push

travis-ci

monfresh
Make attribute presence checks more flexible

Using the `key?` method, as in `org.key?(:attribute)`, to check for the presence of an attribute assumes that the API will never return attributes whose values are nil or blank. By checking for the presence via `.present?`, it allows the client to continue working even if the API decides to return nil/blank attributes. The next updates to the API will in fact return nil attributes, so this change is necessary to make sure this client still works once the updates are pushed.

This change works with the current version of the API, so it can safely be merged even before the API updates are pushed.

In the process, I also cleaned up a bunch of unnecessary presence checks, and optimized the code.

UI changes include:

- On the details page, always show both Physical and Mailing Addresses, and show Physical Address first. By not showing one or the other (as we had before when they were the same), it made it look like that the one that wasn't showing up didn't exist.

- On the results page, only the first phone number is displayed. Otherwise, you'd end up with a bunch of phone numbers without any context for each one.

I also spent a lot of time that I hadn't anticipated fixing the filter specs which started breaking again for some reason. I switched back to capybara-webkit because Poltergeist wasn't able to click on the toggles. Instead of using CSS classes, I tried using the xpath, and Capybara said that it couldn't click on a particular element because there was another one overlapping it. I think this is the main reason we have been having so much trouble with these specs. I'm not sure whether or not having overlapping elements is considered a bad practice, but it certainly doesn't help with these tests. I think I was able to find the right xpath to click on, and so far, the specs are passing locally.

I really can't wait until we replace the filters with just one simple input field for location and agency na... (continued)

237 of 261 relevant lines covered (90.8%)

57.32 hits per line

Relevant lines Covered
Build:
Build:
261 RELEVANT LINES 237 COVERED LINES
57.32 HITS PER LINE
Source Files on api-updates
  • 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
1423 api-updates Make attribute presence checks more flexible Using the `key?` method, as in `org.key?(:attribute)`, to check for the presence of an attribute assumes that the API will never return attributes whose values are nil or blank. By checking for the pre... push 25 Jun 2014 05:31AM UTC monfresh travis-ci pending completion  
1421 api-updates Make attribute presence checks more flexible Using the `key?` method, as in `org.key?(:attribute)` to check for the presence of an attribute assumes that the API will never return attributes whose values are nil or blank. By checking for the pres... push 25 Jun 2014 05:00AM UTC monfresh travis-ci pending completion  
See All Builds (1890)
  • Repo on GitHub
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