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

tf / pageflow / 2752
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: actions
DEFAULT BRANCH: master
Ran 13 Aug 2020 07:45AM UTC
Jobs 2
Files 0
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

pending completion
2752

push

travis-ci

tf
Improve error messages when entry template creation fails

* Use conventional keys for validation error messages. Before, the
  error message translation lived below `attributes.models` which is
  reserved for model name translations. Localeapp complains about
  namespaces which contain pluralization keys (i.e. `one`) as well as
  other keys (i.e. the error message) and skips importing the former.

* Use Formtastic helper to actually render the error message in the
  form. Before, submitting the `new` form just re-rendered the form
  without any indication of an error, when an entry template of the
  same type had been created in the meantime. The Formtastic helper
  always prefixes the error message with the attribute name. We
  therefore have to go a bit out of our way to formulate the error
  message accordingly.

* Include a hint in the error message about what has to be done next.

* As a sort of drive-by fix, we also set the page title in the
  `create` and `update` actions. Before, the edit page reverted to an
  untranslated default title when the form rendered in the context of
  the `create` on validation failure.

REDMINE-17306, REDMINE-17793
Jobs
ID Job ID Ran Files Coverage
1 2752.1 (2.3.1, COVERALLS_PARALLEL=true) 13 Aug 2020 07:46AM UTC 0
99.18
Travis Job 2752.1
2 2752.2 (2.6.5, COVERALLS_PARALLEL=true) 13 Aug 2020 07:45AM UTC 0
99.18
Travis Job 2752.2
Source Files on build 2752
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2752
  • 4901dc7e on github
  • Next Build on entry-template-error-translations (#2753)
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