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

bleedingdeacons / confur / 43106095124
96%

Build:
DEFAULT BRANCH: main
Ran 11 Nov 2026 09:48PM UTC
Jobs 1
Files 36
Run time 1min
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

11 Nov 2026 09:47PM UTC coverage: 95.956% (+0.07%) from 95.889%
43106095124

push

github

web-flow
feat: store save times in the date-time picker's format; add wp confur migrate-dates (#91)

* feat: store save times in the date-time picker's format; add wp confur migrate-dates

`updated` and `completed` are ACF date-time picker fields, which store
Y-m-d H:i:s and format on read. The plugin wrote its own display string
("Monday, 2024-01-01 01:02:03 PM") into them, so sorting by them sorted
by weekday name and the edit screen's picker could not read them.

- Saves now store current_time('mysql'). Display is unchanged: get_field()
  formats old and new values alike.
- Domain\SaveTime reads both formats (normalise) and displays a stored
  time in the field's return format. The save response uses it, so the
  answer page shows the same string as the status endpoint.
- Storage\DateMigration rewrites old values on the raw post meta,
  trash included; current values are left, unreadable ones reported and
  untouched; a dry run writes nothing; repeat runs change nothing.
- `wp confur migrate-dates [--dry-run]` runs it (Cli\MigrateDatesCommand),
  registered only under WP-CLI. Not run automatically: deploys back up
  plugins, not the database.
- stubs/wp-cli.php (as in Tamar and Fellowship) gives PHPStan and the
  tests WP-CLI's symbols; excluded from the release zip.
- README documents the migration.

* fix: migration writes only if the value is unchanged; report failed writes

Addresses review on #91:
- The converted value is written with update_post_meta()'s $prev_value,
  so it lands only if the stored value is still the one read. A group
  saving during the migration keeps its newer time, and a Draft save
  that cleared `completed` stays cleared. Reported as 'saved again'.
- A write that fails is reported as failed, not converted; the summary
  is a warning, and confur_dates_migrated is not set.

84 of 86 new or added lines in 5 files covered. (97.67%)

2088 of 2176 relevant lines covered (95.96%)

4.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.43
src/Cli/MigrateDatesCommand.php
1
71.3
-0.38% src/Plugin.php
Jobs
ID Job ID Ran Files Coverage
1 43106095124.1 11 Nov 2026 09:48PM UTC 36
95.96
GitHub Action Run
Source Files on build 43106095124
  • Tree
  • List 36
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43106095124
  • 1ed042e1 on github
  • Prev Build on main (#43103750055)
  • Next Build on main (#43307233026)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc