Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Oct 29, 2024
1 parent ffc3d46 commit 532208a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
20 changes: 19 additions & 1 deletion cmd/project/project_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,25 @@ var projectDatabaseDumpCmd = &cobra.Command{
pConf := core.Rules{Ignore: []string{}, NoData: []string{}, Where: map[string]string{}, Rewrite: map[string]core.Rewrite{}}

if clean {
pConf.NoData = append(pConf.NoData, "cart", "customer_recovery", "dead_message", "enqueue", "increment", "elasticsearch_index_task", "log_entry", "message_queue_stats", "notification", "payment_token", "refresh_token", "version", "version_commit", "version_commit_data", "webhook_event_log")
pConf.NoData = append(pConf.NoData,
"cart",
"customer_recovery",
"dead_message",
"enqueue",
"messenger_messages",
"import_export_log",
"increment",
"elasticsearch_index_task",
"log_entry",
"message_queue_stats",
"notification",
"payment_token",
"refresh_token",
"version",
"version_commit",
"version_commit_data",
"webhook_event_log",
)
}

if anonymize {
Expand Down
2 changes: 1 addition & 1 deletion cmd/project/project_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

var projectWorkerCmd = &cobra.Command{
Use: "worker [amount]",
Short: "Runs the Symfony Worker in Background",
Short: "Run multiple Symfony worker in background.",
RunE: func(cobraCmd *cobra.Command, args []string) error {
var projectRoot string
var err error
Expand Down
1 change: 0 additions & 1 deletion extension/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ func FindExtensionsFromProject(ctx context.Context, project string) []Extension
version, _ := ext.GetVersion()

logging.FromContext(ctx).Infof("Found extension in custom/plugins: %s (%s)", name, version)
logging.FromContext(ctx).Warnf("Extension %s should be installed using Composer. Please run composer require %s.", name, ext.GetMetaData().Name)

extensions[name] = ext
}
Expand Down
2 changes: 1 addition & 1 deletion extension/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func validateTheme(ctx *ValidationContext) {
}

if len(theme.PreviewMedia) == 0 {
ctx.AddError("Required field \"previewMedia\" in theme.json is not in")
ctx.AddError("Required field \"previewMedia\" missing in theme.json")
return
}

Expand Down

0 comments on commit 532208a

Please sign in to comment.