From 2f267f3f68310ac4acf2f416bb5e4355ef51beb3 Mon Sep 17 00:00:00 2001 From: konrad Date: Fri, 20 Sep 2019 16:39:02 +0000 Subject: [PATCH] Moved `teams_{namespace|list}_*` to `{namespace|list}_teams_*` for better consistency (#101) --- Featurecreep.md | 2 +- pkg/models/{team_list.go => list_team.go} | 0 pkg/models/{team_list_rights.go => list_team_rights.go} | 0 pkg/models/{team_list_test.go => list_team_test.go} | 0 pkg/models/{team_namespace.go => namespace_team.go} | 0 .../{team_namespace_rights.go => namespace_team_rights.go} | 0 ...m_namespace_rights_test.go => namespace_team_rights_test.go} | 0 pkg/models/{team_namespace_test.go => namespace_team_test.go} | 0 8 files changed, 1 insertion(+), 1 deletion(-) rename pkg/models/{team_list.go => list_team.go} (100%) rename pkg/models/{team_list_rights.go => list_team_rights.go} (100%) rename pkg/models/{team_list_test.go => list_team_test.go} (100%) rename pkg/models/{team_namespace.go => namespace_team.go} (100%) rename pkg/models/{team_namespace_rights.go => namespace_team_rights.go} (100%) rename pkg/models/{team_namespace_rights_test.go => namespace_team_rights_test.go} (100%) rename pkg/models/{team_namespace_test.go => namespace_team_test.go} (100%) diff --git a/Featurecreep.md b/Featurecreep.md index f7eab36c..517c08cb 100644 --- a/Featurecreep.md +++ b/Featurecreep.md @@ -184,7 +184,7 @@ Sorry for some of them being in German, I'll tranlate them at some point. * [x] Have extra functions for logging to call so it is possible to call `log.Info` instead of `log.Log.Info` * [x] `GetUserByID` and the likes should return pointers * [x] `ListTask` should be just `Task` -* [ ] Move `teams_{namespace|list}_*` to `{namespace|list}_teams_*` for better consistency +* [x] Move `teams_{namespace|list}_*` to `{namespace|list}_teams_*` for better consistency ### Linters diff --git a/pkg/models/team_list.go b/pkg/models/list_team.go similarity index 100% rename from pkg/models/team_list.go rename to pkg/models/list_team.go diff --git a/pkg/models/team_list_rights.go b/pkg/models/list_team_rights.go similarity index 100% rename from pkg/models/team_list_rights.go rename to pkg/models/list_team_rights.go diff --git a/pkg/models/team_list_test.go b/pkg/models/list_team_test.go similarity index 100% rename from pkg/models/team_list_test.go rename to pkg/models/list_team_test.go diff --git a/pkg/models/team_namespace.go b/pkg/models/namespace_team.go similarity index 100% rename from pkg/models/team_namespace.go rename to pkg/models/namespace_team.go diff --git a/pkg/models/team_namespace_rights.go b/pkg/models/namespace_team_rights.go similarity index 100% rename from pkg/models/team_namespace_rights.go rename to pkg/models/namespace_team_rights.go diff --git a/pkg/models/team_namespace_rights_test.go b/pkg/models/namespace_team_rights_test.go similarity index 100% rename from pkg/models/team_namespace_rights_test.go rename to pkg/models/namespace_team_rights_test.go diff --git a/pkg/models/team_namespace_test.go b/pkg/models/namespace_team_test.go similarity index 100% rename from pkg/models/team_namespace_test.go rename to pkg/models/namespace_team_test.go