mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
DEV: Add meta_topic_id plugin metadata (#23838)
For the admin plugin list we want to be able to link to a meta topic for plugins, but we have no standard way to do this at the moment. This adds support for meta_topic_id alongside other plugin metadata like authors, URL etc, that gets built into a Meta topic URL in the serializer.
This commit is contained in:
@@ -11,6 +11,7 @@ RSpec.describe Plugin::Metadata do
|
||||
# contact emails: frankz@example.com
|
||||
# url: http://discourse.org
|
||||
# required version: 1.3.0beta6+48
|
||||
# meta_topic_id: 1234
|
||||
|
||||
some_ruby
|
||||
TEXT
|
||||
@@ -22,6 +23,7 @@ TEXT
|
||||
expect(metadata.contact_emails).to eq("frankz@example.com")
|
||||
expect(metadata.url).to eq("http://discourse.org")
|
||||
expect(metadata.required_version).to eq("1.3.0beta6+48")
|
||||
expect(metadata.meta_topic_id).to eq("1234")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user