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

tf / pageflow / 2092 / 1
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: actions
DEFAULT BRANCH: master
Ran 12 Feb 2019 09:39AM UTC
Files 423
Run time 35s
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:32AM UTC coverage: 99.272%. Remained the same
2.3.1, 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

15683 of 15798 relevant lines covered (99.27%)

27.97 hits per line

Source Files on job 2092.1 (2.3.1, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true)
  • Tree
  • List 0
  • Changed 39
  • Source Changed 1
  • Coverage Changed 39
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2047
  • Travis Job 2092.1
  • d960d1f5 on github
  • Prev Job for 2.3.1, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true on filter-by-published-at (#2089.1)
  • Next Job for 2.3.1, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true on filter-by-published-at (#2093.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