discourse/spec/models
Mark VanLandingham 415abe6491
FIX: Correctly place moderator post for full topic move with freeze_original (#30324)
When freeze_original option is passed to PostMover, and we are moving all posts there is an issue. We attempt to put the small_action right after the last moved post. The issue is when there is an existing small action after the last moved "real" post. We then try to put the moderator post at the same location of the existing small action, which causes an index conflict and the move fails.

This makes sure that we place the moderator post at the verrrrrry end of the topic :)
2024-12-17 10:31:34 -06:00
..
about_spec.rb FEATURE: Enable the new /about page for everyone (#29390) 2024-10-29 18:40:11 +03:00
admin_dashboard_data_spec.rb DEV: Remove old problem check system - Part 1 (#28772) 2024-09-06 17:00:25 +08:00
admin_notice_spec.rb
api_key_scope_spec.rb
api_key_spec.rb
application_request_spec.rb
associated_group_spec.rb
badge_grouping_spec.rb
badge_spec.rb
badge_type_spec.rb
bookmark_spec.rb
category_featured_topic_spec.rb
category_group_spec.rb
category_list_spec.rb
category_setting_spec.rb
category_spec.rb FIX: Permalink.create didn't work as expected anymore (#29895) 2024-11-22 21:11:26 +01:00
category_tag_stat_spec.rb
category_user_spec.rb
child_theme_spec.rb
color_scheme_color_spec.rb
color_scheme_spec.rb
developer_spec.rb
digest_email_site_setting_spec.rb
directory_item_spec.rb FIX: Remove anonymous users from users directory (#28892) 2024-09-13 15:12:57 +03:00
discourse_connect_spec.rb DEV: Enable the normalize_emails site setting by default (#29952) 2024-11-28 10:23:00 +08:00
do_not_disturb_timing_spec.rb
draft_sequence_spec.rb
draft_spec.rb
email_change_request_spec.rb
email_log_spec.rb
email_token_spec.rb
embeddable_host_spec.rb
embeddable_host_tag_spec.rb
emoji_spec.rb
flag_spec.rb FIX: use a custom prefix for custom flags (#28839) 2024-09-11 15:30:20 +10:00
form_template_spec.rb FIX: Form template limit validation (#28791) 2024-09-10 08:11:44 -07:00
given_daily_like_spec.rb
global_setting_spec.rb DEV: Call Discourse.redis.flushdb after the end of each test (#29117) 2024-10-09 07:19:31 +08:00
group_archived_message_spec.rb
group_associated_group_spec.rb
group_history_spec.rb
group_request_spec.rb
group_spec.rb FIX: Error when moving the group default notification state (#28910) 2024-09-13 16:01:20 -03:00
group_user_spec.rb
incoming_link_spec.rb
incoming_links_report_spec.rb
invite_redeemer_spec.rb DEV: Migrate user passwords data to UserPassword table (#28746) 2024-10-10 09:23:06 +08:00
invite_spec.rb DEV: Change hide_email_address_taken default to true (#30293) 2024-12-17 10:46:04 +08:00
javascript_cache_spec.rb
locale_site_setting_spec.rb
mailing_list_mode_site_setting_spec.rb
moved_post_spec.rb DEV: Create permanent version of moved_posts table from PostMover class (#29664) 2024-11-12 14:35:20 -06:00
notification_spec.rb
optimized_image_spec.rb FIX: Use dualstack S3 endpoint for direct uploads (#29611) 2024-11-07 11:06:39 +10:00
permalink_spec.rb FIX: Permalink.create didn't work as expected anymore (#29895) 2024-11-22 21:11:26 +01:00
plugin_store_spec.rb
post_action_spec.rb DEV: Remove extraneous spec code (#29386) 2024-10-24 14:15:32 +02:00
post_action_type_spec.rb
post_analyzer_spec.rb
post_detail_spec.rb
post_mover_spec.rb FIX: Correctly place moderator post for full topic move with freeze_original (#30324) 2024-12-17 10:31:34 -06:00
post_reply_key_spec.rb
post_reply_spec.rb
post_revision_spec.rb
post_spec.rb FIX: update flag reason message with default value (#30026) 2024-12-04 14:46:52 +11:00
post_stripper_spec.rb
post_timing_spec.rb
private_message_topic_tracking_state_spec.rb
problem_check_tracker_spec.rb FIX: Make problem check tracker unique constraint work on PG13 (#29272) 2024-10-21 10:45:09 +08:00
published_page_spec.rb
quoted_post_spec.rb
remote_theme_spec.rb FEATURE: Allow themes to define screenshots (#29079) 2024-10-28 10:10:20 +10:00
report_spec.rb DEV: Don’t replace Rails logger in specs (#29721) 2024-11-13 08:47:39 +08:00
reviewable_claimed_topic_spec.rb
reviewable_flagged_post_spec.rb DEV: Add "delete user" options to illegal flag review (#29956) 2024-11-27 17:23:57 +08:00
reviewable_history_spec.rb
reviewable_post_spec.rb
reviewable_queued_post_spec.rb FIX: Use site contact user + group for Revise... review action (#29271) 2024-10-28 09:40:10 +10:00
reviewable_score_spec.rb
reviewable_spec.rb FIX: Discard empty bundles for reviewables (#30121) 2024-12-05 15:41:13 +10:00
reviewable_user_spec.rb
s3_region_site_setting_spec.rb
screened_email_spec.rb
screened_ip_address_spec.rb
screened_url_spec.rb
search_log_spec.rb
sidebar_section_link_spec.rb
sidebar_section_spec.rb FEATURE: Add invite link to the sidebar (#29448) 2024-10-30 05:31:14 +03:00
sidebar_url_spec.rb
site_setting_spec.rb FIX: Admin backups erroring because of S3 dualstack (#29775) 2024-11-15 12:05:59 +10:00
site_spec.rb
sitemap_spec.rb
skipped_email_log_spec.rb
stylesheet_cache_spec.rb
tag_group_spec.rb
tag_spec.rb FEATURE: Add invite link to the sidebar (#29448) 2024-10-30 05:31:14 +03:00
tag_user_spec.rb
theme_field_spec.rb DEV: Compile theme raw-hbr to modules (#30299) 2024-12-16 17:31:49 +00:00
theme_modifier_set_spec.rb
theme_setting_spec.rb
theme_settings_migration_spec.rb
theme_spec.rb
theme_svg_sprite_spec.rb
top_menu_item_spec.rb
top_topic_spec.rb FIX: Don't error out on nested top topic period param (#29275) 2024-10-21 10:44:43 +08:00
topic_allowed_user_spec.rb
topic_converter_spec.rb
topic_embed_spec.rb
topic_featured_users_spec.rb
topic_group_spec.rb
topic_hot_scores_spec.rb DEV: Trigger an event after updating topic hot scores (#29261) 2024-10-18 11:08:48 -03:00
topic_invite_spec.rb
topic_link_click_spec.rb
topic_link_spec.rb
topic_list_spec.rb
topic_participant_groups_summary_spec.rb
topic_participants_summary_spec.rb
topic_posters_summary_spec.rb
topic_spec.rb FEATURE: Add skip notification option to group invite to topic (#29741) 2024-11-14 13:00:15 -03:00
topic_tag_spec.rb
topic_thumbnail_spec.rb
topic_timer_spec.rb
topic_tracking_state_spec.rb
topic_user_spec.rb DEV: Remove extraneous spec code (#29386) 2024-10-24 14:15:32 +02:00
topic_view_item_spec.rb
translation_override_spec.rb FIX: Allow target attribute in translation overrides (#29503) 2024-11-01 09:48:07 +10:00
trust_level_and_staff_setting_spec.rb
trust_level_setting_spec.rb
trust_level3_requirements_spec.rb
unsubscribe_key_spec.rb
upload_reference_spec.rb
upload_spec.rb
user_action_spec.rb
user_api_key_spec.rb
user_archived_message_spec.rb
user_associated_group_spec.rb
user_auth_token_spec.rb
user_avatar_spec.rb DEV: ensure rebaking works even when some users have inconsistent data (#30261) 2024-12-16 19:48:25 +08:00
user_badge_spec.rb
user_bookmark_list_spec.rb
user_custom_field_spec.rb FIX: Searchable user fields do not always have an integer name (#30223) 2024-12-17 11:06:19 +11:00
user_email_spec.rb DEV: ensure rebaking works even when some users have inconsistent data (#30261) 2024-12-16 19:48:25 +08:00
user_export_spec.rb
user_field_spec.rb
user_history_spec.rb
user_notification_schedule_spec.rb
user_option_spec.rb UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
user_password_spec.rb FIX: setting new password should reset password_expired_at (#29296) 2024-10-21 07:24:43 +08:00
user_profile_spec.rb
user_profile_view_spec.rb
user_search_spec.rb PERF: Drop user_search_similar_results site setting (#28874) 2024-09-13 09:04:02 +08:00
user_second_factor_spec.rb
user_security_key_spec.rb
user_spec.rb UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
user_stat_spec.rb
user_status_spec.rb
user_summary_spec.rb
user_visit_spec.rb
username_validator_spec.rb
watched_word_group_spec.rb
watched_word_spec.rb
web_crawler_request_spec.rb
web_hook_event_spec.rb
web_hook_event_type_spec.rb DEV: Delete plugin specific webhook event types (#29374) 2024-10-24 11:02:58 -05:00
web_hook_events_daily_aggregate_spec.rb
web_hook_spec.rb FIX: topic post counts for webhook post_destroyed event (#29853) 2024-11-27 11:36:51 -08:00