31
31
32
32
class NavigationFeedApi
33
33
{
34
- private const string FEED_FILE_NAME = 'facebook_navigation%s.json ' ;
35
- private const string VAR_DIR = 'var ' ;
34
+ private const FEED_FILE_NAME = 'facebook_navigation%s.json ' ;
35
+ private const VAR_DIR = 'var ' ;
36
36
37
37
/**
38
38
* @var int
@@ -131,9 +131,9 @@ public function execute($flowName, int $storeId = null,): mixed
131
131
132
132
$ context = $ this ->categoryUtilities ->getCategoryLoggerContext (
133
133
$ storeId ,
134
- '' , /* event_type */
134
+ 'sync_navigation_menu ' , /* event_type */
135
135
$ flowName ,
136
- 'create_navigation_for_store_start ' ,
136
+ 'sync_navigation_for_store_start ' ,
137
137
[
138
138
'external_trace_id ' => $ traceId ,
139
139
'root_category_id ' => $ storeRootCategoryId ,
@@ -142,7 +142,7 @@ public function execute($flowName, int $storeId = null,): mixed
142
142
143
143
$ this ->fbeHelper ->logTelemetryToMeta (
144
144
sprintf (
145
- "Create Navigation started: storeId: %d, categoryId: %s, flow: %s " ,
145
+ "Sync Navigation started: storeId: %d, categoryId: %s, flow: %s " ,
146
146
$ storeId ,
147
147
$ storeRootCategoryId ,
148
148
$ flowName
@@ -171,9 +171,9 @@ public function execute($flowName, int $storeId = null,): mixed
171
171
172
172
$ context = $ this ->categoryUtilities ->getCategoryLoggerContext (
173
173
$ storeId ,
174
- '' , /* event_type */
174
+ 'sync_navigation_menu ' , /* event_type */
175
175
$ flowName ,
176
- 'create_navigation_for_store_completed ' ,
176
+ 'sync_navigation_for_store_completed ' ,
177
177
[
178
178
'external_trace_id ' => $ traceId ,
179
179
'root_category_id ' => $ storeRootCategoryId ,
@@ -182,7 +182,7 @@ public function execute($flowName, int $storeId = null,): mixed
182
182
183
183
$ this ->fbeHelper ->logTelemetryToMeta (
184
184
sprintf (
185
- "Create Navigation started : storeId: %d, categoryId: %s, flow: %s " ,
185
+ "Sync Navigation completed : storeId: %d, categoryId: %s, flow: %s " ,
186
186
$ storeId ,
187
187
$ storeRootCategoryId ,
188
188
$ flowName
@@ -195,9 +195,9 @@ public function execute($flowName, int $storeId = null,): mixed
195
195
$ e ,
196
196
$ this ->categoryUtilities ->getCategoryLoggerContext (
197
197
(int )$ storeId ,
198
- 'create_navigation_menu ' ,
198
+ 'sync_navigation_menu ' ,
199
199
$ flowName ,
200
- 'create_navigation_for_store_error ' ,
200
+ 'sync_navigation_for_store_error ' ,
201
201
[
202
202
'external_trace_id ' => $ traceId
203
203
]
0 commit comments