This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app/controllers
Sam Saffron ce4b5b56e5
FIX: never save draft while it is saving
Previously if saving a draft took longer than 2 seconds there
could be conditions where drafts could be saved concurrently.
This meant the composer could race with itself and raise conflicts.

This is likely to happen on bad internet connections or where
latency is really high.

Additionally a throttle was added so drafts save unconditionally
every 15 seconds.

Save draft in the model now properly and consistently returns a
promise.
2020-05-14 15:36:18 +10:00
..
badges DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
discovery DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
navigation DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
preferences DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
about.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
account-created-edit-email.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
account-created-index.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
activation-edit.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
add-post-notice.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
application.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
associate-account-confirm.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
auth-token.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
avatar-selector.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
basic-modal-body.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
bookmark.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
bulk-notification-level.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
change-owner.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
change-timestamp.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
composer.js FIX: never save draft while it is saving 2020-05-14 15:36:18 +10:00
convert-to-public-topic.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
create-account.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
discovery-sortable.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
discovery.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
edit-category.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
edit-topic-timer.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
email-login.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
exception.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
explain-reviewable.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
feature-topic-on-profile.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
feature-topic.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
flag.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
forgot-password.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
full-page-search.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
grant-badge.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
group-activity-posts.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-activity-topics.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-activity.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-add-members.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-bulk-add.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-index.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-manage-logs.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-manage-profile.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-manage.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-messages.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group-requests.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
group.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
groups-index.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
groups-new.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
history.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
ignore-duration-with-username.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
ignore-duration.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
insert-hyperlink.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
invites-show.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
jump-to-post.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
keyboard-shortcuts-help.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
login.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
modal.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
move-to-topic.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
not-activated.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
password-reset.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
preferences.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
publish-page.js REFACTOR: publishedPage property was duplicated (#9664) 2020-05-07 16:24:35 +02:00
raw-email.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
rename-tag.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
reorder-categories.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
request-group-membership-form.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
review-index.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
review-settings.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
second-factor-add-security-key.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
second-factor-add-totp.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
second-factor-backup-edit.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
second-factor-edit-security-key.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
second-factor-edit.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
share-and-invite.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
static.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
tag-groups-edit.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
tag-groups-new.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
tag-groups.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
tags-index.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
tags-show.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
topic-bulk-actions.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
topic.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
upload-selector.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
user-activity-bookmarks.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
user-activity.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
user-badges.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
user-card.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
user-invited-show.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
user-notifications.js FIX: shows filter if there's no notifications to show after filter 2020-05-04 13:16:53 +02:00
user-posts.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
user-private-messages-tags.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
user-private-messages.js DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
user-summary.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
user-topics-list.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
user.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
users.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00