Plugins: Standardize Golang enum naming convention (#69449)

* standardize enum pattern

* fix up
This commit is contained in:
Will Browne
2023-06-08 12:21:19 +02:00
committed by GitHub
parent 4db6679460
commit a221e1d226
31 changed files with 308 additions and 306 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func (s *ServiceImpl) addAppLinks(treeRoot *navtree.NavTreeRoot, c *contextmodel
return false
}
for _, plugin := range s.pluginStore.Plugins(c.Req.Context(), plugins.App) {
for _, plugin := range s.pluginStore.Plugins(c.Req.Context(), plugins.TypeApp) {
if !isPluginEnabled(plugin) {
continue
}
@@ -37,7 +37,7 @@ func TestAddAppLinks(t *testing.T) {
JSONData: plugins.JSONData{
ID: "test-app1",
Name: "Test app1 name",
Type: plugins.App,
Type: plugins.TypeApp,
Includes: []*plugins.Includes{
{
Name: "Catalog",
@@ -60,7 +60,7 @@ func TestAddAppLinks(t *testing.T) {
JSONData: plugins.JSONData{
ID: "test-app2",
Name: "Test app2 name",
Type: plugins.App,
Type: plugins.TypeApp,
Includes: []*plugins.Includes{
{
Name: "Hello",
@@ -77,7 +77,7 @@ func TestAddAppLinks(t *testing.T) {
JSONData: plugins.JSONData{
ID: "test-app3",
Name: "Test app3 name",
Type: plugins.App,
Type: plugins.TypeApp,
Includes: []*plugins.Includes{
{
Name: "Default page",
@@ -402,7 +402,7 @@ func TestAddAppLinksAccessControl(t *testing.T) {
testApp1 := plugins.PluginDTO{
JSONData: plugins.JSONData{
ID: "test-app1", Name: "Test app1 name", Type: plugins.App,
ID: "test-app1", Name: "Test app1 name", Type: plugins.TypeApp,
Includes: []*plugins.Includes{
{
Name: "Catalog",