FEATURE: display commit hash for each plugin on /admin/plugins page. (#22176)

It will help to find out the current version of the plugins even without the `docker_manager` plugin.
This commit is contained in:
Vinoth Kannan
2023-06-26 10:09:57 +05:30
committed by GitHub
parent a183f14d09
commit 52894b9d7c
11 changed files with 125 additions and 2 deletions

View File

@ -10,7 +10,9 @@ class AdminPluginSerializer < ApplicationSerializer
:enabled,
:enabled_setting,
:has_settings,
:is_official
:is_official,
:commit_hash,
:commit_url
def id
object.directory_name
@ -68,4 +70,12 @@ class AdminPluginSerializer < ApplicationSerializer
def is_official
Plugin::Metadata::OFFICIAL_PLUGINS.include?(object.name)
end
def commit_hash
object.commit_hash
end
def commit_url
object.commit_url
end
end