Ghost/ghost/admin/app/validators
Kevin Ansfield 7a5f15414b Fixed scheduled publishedAt validation being triggered unexpectedly
no issue

Problem:
- the server stores time with second-level precision but we send milliseconds
- when scheduling a post we were storing the selected publish-at time in the PublishOptions instance with non-zero milliseconds as the initial date was based on now+5mins
- when we were saving after the initial schedule that millisecond-containing time was still being used resulting in a perceived time difference in our client-side and server-side validations indicating that the published_at value should be updated, but when that time was <2 mins in the future the published_at change validation was triggered resulting in errors

Solution:
- ensure we only set times on PublishOptions with 0 milliseconds
- update client-side validations so we only trigger published_at validation when it's dirty

Also fixed:
- client-side validation errors were not shown on the confirm step due to a missing `.args`
2022-05-19 23:11:01 +01:00
..
mixins Updated error copy on setup page 2022-03-08 20:23:55 +00:00
base.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
custom-view.js Added default and custom post views (filters) to the admin sidebar (#1474) 2020-01-30 15:35:36 +00:00
integration.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
invite-user.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
label.js Added labels for Members (#1477) 2020-02-14 15:04:01 +05:30
member.js Fixed incorrect validation when member's name is too long 2020-05-11 11:40:38 +01:00
nav-item.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
new-user.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
newsletter.js Updated newsletter management for switch to nullable sender_name 2022-04-15 09:43:22 +01:00
offer.js Updated name validation for offer to restrict to 40 chars 2021-11-24 18:18:22 +05:30
post.js Fixed scheduled publishedAt validation being triggered unexpectedly 2022-05-19 23:11:01 +01:00
reset.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
setting.js Refactored to use individual slack settings (#2384) 2022-05-16 11:38:32 +01:00
setup.js Updated error copy on setup page 2022-03-08 20:23:55 +00:00
signin.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
signup.js Update package.json details, rename module to ghost-admin 2016-06-03 16:12:54 +01:00
snippet.js Added max length validation to snippet's name field 2020-10-16 19:22:09 +01:00
subscriber.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
tag-settings.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
tier-benefit-item.js Renamed products to tiers (#2372) 2022-05-11 22:41:54 +05:30
tier.js Renamed products to tiers (#2372) 2022-05-11 22:41:54 +05:30
user.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
webhook.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00