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

OpenBuildings / purchases / 129 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2013 09:11PM UTC
Files 44
Run time –
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

14 Nov 2013 09:11PM UTC coverage: 96.32% (-0.9%) from 97.227%
129.1

push

travis-ci

hkdobrev
Use STI instead of type for purchase_items

Using single-table inheritance(STI) allows us to define different models
for the different types of purchase items. Each model could have
a different way of computing the price.

Filtering by type is kept the same using `Model_Purchase_Item::type()`.

Breaking changes:
 - `purchase_items`.`type` column is removed from db schema
 - `purchase_items`.`model` column is added to db schema
 - `Model_Purchase_Item::compute_price()` uses `get_price()` to.
 - `Model_Purchase_Item_Product` is introduced. It extends `Model_Purchase_Item`
   and overrides `get_price()`.
 - New types of purchases items should be implemented using STI and creating new models.

602 of 625 relevant lines covered (96.32%)

1.22 hits per line

Source Files on job 129.1
  • Tree
  • List 0
  • Changed 5
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 129
  • Travis Job 129.1
  • b99d0a8e on github
  • Prev Job for on master (#127.1)
  • Next Job for on master (#131.1)
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

© 2026 Coveralls, Inc