Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
f7053b53
Commit
f7053b53
authored
1 year ago
by
Alena Petraki
Browse files
Options
Downloads
Patches
Plain Diff
Переименована коллекция NewStatusCollection -> NewExtensionsCollection
parent
db3c68f9
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
perxis-proto
+1
-1
1 addition, 1 deletion
perxis-proto
pkg/extension/schema.go
+2
-2
2 additions, 2 deletions
pkg/extension/schema.go
pkg/extension/storage.go
+1
-1
1 addition, 1 deletion
pkg/extension/storage.go
with
4 additions
and
4 deletions
perxis-proto
@
606cf807
Compare
dc83f92e
...
606cf807
Subproject commit
dc83f92e5b9bb690c52486ee326a798365afd85f
Subproject commit
606cf8070bc9a930cadd5117bf49cc119ff3a16e
This diff is collapsed.
Click to expand it.
pkg/extension/schema.go
+
2
−
2
View file @
f7053b53
...
...
@@ -109,8 +109,8 @@ func getEnumOpt(opts map[int32]string) []validate.EnumOpt {
return
enum
}
// New
Statu
sCollection - создает коллекцию для хранения статусов расширений в пространстве
func
New
Statu
sCollection
(
spaceID
,
envID
string
)
*
collections
.
Collection
{
// New
Extension
sCollection - создает коллекцию для хранения статусов расширений в пространстве
func
New
Extension
sCollection
(
spaceID
,
envID
string
)
*
collections
.
Collection
{
sch
:=
schema
.
New
(
"id"
,
field
.
String
(
validate
.
Required
())
.
SetUnique
(
true
)
.
SetTitle
(
"Расширение"
),
"title"
,
field
.
String
()
.
SetTitle
(
"Название"
),
...
...
This diff is collapsed.
Click to expand it.
pkg/extension/storage.go
+
1
−
1
View file @
f7053b53
...
...
@@ -137,7 +137,7 @@ func (s *storage) init(ctx context.Context, spaceID, envID string) error {
// миграция окружения не должна запуститься, поскольку окружение может быть сломано
// расширениями - нужно дать возможность восстановиться
stp
:=
setup
.
NewSetup
(
s
.
content
,
spaceID
,
envID
,
nil
)
.
AddCollections
([]
*
collections
.
Collection
{
New
Statu
sCollection
(
spaceID
,
envID
),
New
Extension
sCollection
(
spaceID
,
envID
),
NewActionsCollection
(
spaceID
,
envID
),
},
setup
.
SkipMigration
())
return
stp
.
Install
(
ctx
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment