Drop the creator_id and updater_id fields from wiki pages. These fields had several issues: * The creator_id field was inconsistent with the wiki_page_versions table. Apparently during the migration to Danbooru 2 in 2012-2013 the creator_id field got reset to whoever last updated the wiki at that point in time. * Saving a wiki would set the updater_id even when nothing actually changed. This also caused the updated_at timestamp to get bumped. Because of this, anything that saved a wiki, including things like creating aliases or implications, would bump the updater_id and updated_at even though the wiki didn't actually change. This meant these fields weren't consistent with the wiki_page_versions history. Changes: * Remove `creator_name` field from the /wiki_pages.json API. * Remove creator name search option from /wiki_pages/search.
16 lines
697 B
Plaintext
16 lines
697 B
Plaintext
<div id="c-wiki-pages">
|
|
<div id="a-search">
|
|
<%= search_form_for(wiki_pages_path) do |f| %>
|
|
<%= f.input :title, hint: "Use * for wildcard searches", input_html: { "data-autocomplete": "wiki-page" } %>
|
|
<%= f.input :other_names_match, label: "Other names", hint: "Use * for wildcard searches" %>
|
|
<%= f.input :body_matches, label: "Body" %>
|
|
<%= f.input :other_names_present, as: :select %>
|
|
<%= f.input :hide_deleted, as: :select, include_blank: false %>
|
|
<%= f.input :order, collection: [%w[Name title], %w[Date time], %w[Posts post_count]], include_blank: false %>
|
|
<%= f.submit "Search" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|