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

tf / pageflow / 2089 / 2
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: actions
DEFAULT BRANCH: master
Ran 12 Feb 2019 09:14AM UTC
Files 423
Run time 36s
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

12 Feb 2019 09:08AM UTC coverage: 99.279%. Remained the same
2.5.3, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true

push

travis-ci

tf
Ensure entries can be filtered by publication date

Trying to filter entries by publication date in the entry admin index
list caused an error of the form:

    Column 'published_at' in on clause is ambiguous

The combination of the `includes(:published_revision)` in
`scoped_collection` and the `:published_revision_published_at` filter
caused the revisions table to be joined twice, making the unqualified
column `published_at` in the query of the `Revision.published` scope
ambiguous.

Since there is no documented way to obtain the current table alias,
the `published` query has been rewritten to use hash syntax instead of
an SQL fragment.

The comparison of `published_until` can be replaced with a date
range. Since `published_at` is only ever set to the current time, its
value can never be in the future. Checking for its presence is
therefore equivalent to checking whether it lies in the past.

Duplicating the `published_at IS NOT NULL` check, to make precendence
of `AND` and `OR` operators explicit.

REDMINE-16490

15698 of 15812 relevant lines covered (99.28%)

27.84 hits per line

Source Files on job 2089.2 (2.5.3, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true)
  • Tree
  • List 0
  • Changed 39
  • Source Changed 0
  • Coverage Changed 39
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2044
  • Travis Job 2089.2
  • 5106db31 on github
  • Prev Job for 2.5.3, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true on filter-by-published-at (#2087.2)
  • Next Job for 2.5.3, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true on filter-by-published-at (#2092.2)
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