docbrown/app/controllers/admin
Anna Buianova ff76cdd3c5
Scheduling articles (#17939)
* Article query spec for scheduled articles

* Added scheduled article badge on the user dashboard

* Added published_at field to editor options

* Accept and validate published_at from editor

* Refactor published_at validation

* Allow 1-minute difference in published_at

* Notice on an unpublished article page

* Added specs for 'Click to edit' link on scheduled article preview page

* ContextNotification model

* Articles::Publish worker

* Added specs for articles publish worker

* Schedule publish articles worker

* Added tests to check for scheduled posts in feeds

* Don't allow managing scheduled articles

* Don't send notifications for scheduled articles

* Set published_at in Articles::Updater when publishing

* Published_at value in post options

* Pass timezone and set published_at accordingly

* Limit setting published_at to the future

* Readonly published_at for articles that were already published

* Chagning published_at format in editor v1 (start)

* Changed published_at format in frontmatter, specs

* Added specs for updating published_at from frontmatter

* Fixed accepting past published_at for articles published_from_feed

* Enabled published_at validation: don't allow updating published_at for already published articles

* Validate published_at on create

* Added a spec for updating published_at for exported articles

* Fixed specs related to creating articles with past published_at

* Fixed specs related to past published_at for articles

* Added a hack so that admins would be able to update published_at

* Switch button text schedule/publish when changin publishedAt

* Fixed saving published_at with timezone

* Added a feature flag for scheduling articles

* Default text in markdown editor depends on feature flag

* Enable article editor cache again

* Fixed the default value in the markdown editor

* Fix sitemaps spec

* Removed tooltip

* Fixed articles update specs

* Added missing locales

* Fixed article create specs

* Fixed spec

* Removed commented code

* Returned enabling extensions in the schema

* Returned accidentally deleted constraint

* Make articles query spec more stable

Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>

* Removed commented code

* Removed unused code

* A clearer policy

Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>

* Use StringInquirer for article current state

* Added a note and todo to articles factory past trait

* Remove duplicated PropType

Co-authored-by: Suzanne Aitchison <suzanne@forem.com>

* Refactor query in the Articles::PublishWorker

Co-authored-by: Mac Siri <krairit.siri@gmail.com>

* Refactor articleForm.jsx

Co-authored-by: Mac Siri <krairit.siri@gmail.com>

* Removed specs that are no longer relevant

* Removed useless onKeyUp on a hidden input

* Refactored articleForm

* Hide scheduling from post options when published_at is readonly

* Run sends notifications worker every 5 minutes instead of every minute

Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2022-07-07 17:32:49 +03:00
..
settings controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
tags controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
application_controller.rb ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
articles_controller.rb Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
badge_achievements_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
badges_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
broadcasts_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
comments_controller.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
consumer_apps_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
creator_settings_controller.rb Refactoring questions asked of user (#15762) 2021-12-21 12:45:12 -05:00
data_update_scripts_controller.rb Navigation Items and Role access for Data Update Scripts (#12292) 2021-02-09 17:41:14 +02:00
display_ads_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
email_messages_controller.rb Remove resource_admin dashboards (Administrate) (#11792) 2020-12-08 12:38:13 -06:00
extensions_controller.rb Introduce "extensions" (#16840) 2022-03-18 11:22:17 +02:00
feedback_messages_controller.rb Ensure shown vomit reactions have reactable (#15153) 2021-10-21 11:34:06 -05:00
gdpr_delete_requests_controller.rb Searchable GDPR Delete Requests Table (#17633) 2022-05-31 16:22:25 -06:00
html_variants_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
invitations_controller.rb Allowing UserQuery to filter on multiple roles (#17919) 2022-06-15 08:50:03 -04:00
listing_categories_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
listings_controller.rb Update ListingsController, resolves issue #17683 (#17685) 2022-05-18 16:29:14 -04:00
moderator_actions_controller.rb Favoring constant over magic string (#15852) 2021-12-27 11:31:29 -05:00
mods_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
navigation_links_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
organization_memberships_controller.rb Member Index View Actions: "Add Organization" (#17879) 2022-06-14 08:31:51 -06:00
organizations_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
overview_controller.rb Display analytics up to yesterday instead of today (#17064) 2022-04-04 15:17:32 -04:00
pages_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
permissions_controller.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
podcasts_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
privileged_reactions_controller.rb Caching sum privileged reaction scores (#15299) 2021-11-08 12:50:08 -05:00
profile_field_groups_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
profile_fields_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
reactions_controller.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
response_templates_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
secrets_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
settings_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
spaces_controller.rb Ensuring confirmation and flash message for spaces (#17072) 2022-04-04 11:49:15 -04:00
sponsorships_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
tags_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
tools_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00
users_controller.rb mod panel update unpublish all posts action 17709 (#17923) 2022-06-27 16:50:31 -04:00
welcome_controller.rb controllers/admin i18n (#17085) 2022-04-26 09:40:09 -06:00