docbrown/spec/requests/api/v0
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
..
admin Admin API use case 1: endpoint to create users (#16520) 2022-02-15 09:30:00 +07:00
analytics_spec.rb Remove pro role + expose analytics to all users via dashboard (#13156) 2021-03-30 15:02:18 -07:00
articles_spec.rb Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
comments_spec.rb app/models i18n (#16124) 2022-02-03 13:41:42 -05:00
feature_flags_spec.rb Easier feature flag handling for Cypress (#16379) 2022-02-03 10:42:13 -05:00
followers_spec.rb Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
follows_spec.rb API: Add route for fetching a user's followed tags (#9108) 2020-09-18 16:28:42 -05:00
health_checks_spec.rb Don't modify environment global in tests (#16943) 2022-05-02 11:11:43 -05:00
instances_spec.rb Remove counts from instance API (#16479) 2022-02-09 11:07:44 -05:00
listings_spec.rb Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
organizations_spec.rb Adding ID to API organization response document (#17600) 2022-05-09 09:20:44 -04:00
podcasts_episodes_spec.rb Upgrade to Rails 6.0 (#7658) 2020-06-04 11:54:25 +02:00
profile_images_spec.rb Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
readinglist_spec.rb Remove Doorkeeper from API (#15750) 2021-12-16 09:57:26 -06:00
tags_spec.rb Add ability to bulk search tags by name or id (#16671) 2022-02-24 12:34:50 -05:00
users_spec.rb Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
videos_spec.rb Return video_source_url in API V0 Videos index (#11040) 2020-11-09 06:27:28 +01:00