docbrown/spec/requests/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
..
tags Refactoring questions asked of user (#15762) 2021-12-21 12:45:12 -05:00
users Remove GDPR from the "users" namespace (#17536) 2022-05-03 19:42:20 +02:00
articles_spec.rb Fix: cannot unpin articles using checkbox (#15090) 2021-11-02 13:50:56 -04:00
badge_achievements_spec.rb Admin Save Confirmation - Removing Badge Achievements (#14684) 2021-09-15 21:25:01 -04:00
badges_spec.rb [15-min-fix] Remove badge slug field b/c auto-gen by title (#13649) 2021-05-05 13:49:43 -04:00
broadcasts_spec.rb Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
comments_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
configs_spec.rb Remove sustaining member newsletter, and its settings (#17514) 2022-04-29 11:47:12 -05:00
consumer_apps_spec.rb Have specs run without Redis and refactor ConsumerApp and Device (#13647) 2021-05-07 08:03:16 +02:00
creator_settings_spec.rb Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
data_update_scripts_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
display_ads_spec.rb Remove organization dependency and improve display ad UX (#14913) 2021-10-05 08:29:08 -04:00
extensions_spec.rb Introduce "extensions" (#16840) 2022-03-18 11:22:17 +02:00
feedback_messages_spec.rb Create Settings::SMTP (#13943) 2021-06-14 10:29:43 -04:00
gdpr_delete_requests_spec.rb Update the Sidebar to include the Member Manager (#17538) 2022-05-05 12:46:47 +02:00
html_variants_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
invitations_spec.rb Update the Sidebar to include the Member Manager (#17538) 2022-05-05 12:46:47 +02:00
listings_categories_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
listings_spec.rb Update ListingsController, resolves issue #17683 (#17685) 2022-05-18 16:29:14 -04:00
moderator_actions_spec.rb Favoring constant over magic string (#15852) 2021-12-27 11:31:29 -05:00
moderator_logs_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
mods_spec.rb Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
navigation_link_spec.rb Static Sections for Site Navigation - Pt1 (#14213) 2021-07-14 11:01:56 -04:00
nested_sidebar_spec.rb Remove profile admin feature flag (#17194) 2022-04-11 09:27:35 -05:00
organization_memberships_spec.rb Member Index View Actions: "Add Organization" (#17879) 2022-06-14 08:31:51 -06:00
organizations_spec.rb Spelling (#15702) 2021-12-07 06:59:10 -07:00
overview_spec.rb Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
pages_spec.rb Only tech admins can manage page feature flags (#14618) 2021-08-31 15:35:42 -04:00
permissions_spec.rb [15-min-fix] Remove/Update the last of the admin hardcoded paths (#13681) 2021-05-06 15:12:06 +02:00
podcasts_spec.rb Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
privileged_reactions_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
profile_field_groups_spec.rb Remove guard clauses and update expectations (#17138) 2022-04-08 15:20:19 -05:00
profile_fields_spec.rb Remove guard clauses and update expectations (#17138) 2022-04-08 15:20:19 -05:00
reactions_spec.rb Expect to raise error should use a block (#17131) 2022-04-05 13:21:23 -06:00
response_templates_spec.rb app/models i18n (#16124) 2022-02-03 13:41:42 -05:00
secrets_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
sponsorships_spec.rb Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
tags_spec.rb Remove name from allowed tag params in admin (#15382) 2021-11-15 14:58:24 -06:00
tools_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
users_manage_spec.rb Rename base_roles ui labels (#17938) 2022-06-21 16:17:35 +01:00
users_spec.rb Update the Sidebar to include the Member Manager (#17538) 2022-05-05 12:46:47 +02:00
welcome_spec.rb Fix constant lookup in Admin::WelcomeController (#14320) 2021-07-26 08:12:47 -06:00