Skip to content

Commit

Permalink
refactor: rename to telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaelahidev committed Nov 2, 2024
1 parent 085fc28 commit 404765c
Show file tree
Hide file tree
Showing 37 changed files with 391 additions and 377 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_MODE=production
DATA_STREAM_SERVER_URL=http://127.0.0.1:8000/v1
BLOCKERA_DATA_STREAM_OFF=false
TELEMETRY_SERVER_URL=http://127.0.0.1:8000/v1/telemetry
BLOCKERA_TELEMETRY_OFF=false
WP_TESTS_DIR=/Users/User/Desktop/workflow/wordpress-develop/tests/phpunit/
DB=wp_tests

2 changes: 1 addition & 1 deletion .github/workflows/build-plugin-zip-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
mkdir packages/blockera
mkdir packages/blockera/tests
touch .wp-env.json
echo '{"plugins": ["."], "config": {"BLOCKERA_DATA_STREAM_OFF": true}}' >> .wp-env.json
echo '{"plugins": ["."], "config": {"BLOCKERA_TELEMETRY_OFF": true}}' >> .wp-env.json
cat .wp-env.json
touch cypress.env.json
echo '{"isLogin": false,"wpUsername": "admin","wpPassword": "password","testURL": "http://localhost:8888","e2e": {"excludeSpecPattern": [],"specPattern": ["packages/**/*.build.e2e.cy.js"]}}' >> cypress.env.json
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cypress-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ jobs:
run: |
case "${{ matrix.category }}" in
"woocommerce")
echo '{"plugins": [".", "https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip"], "config": {"BLOCKERA_DATA_STREAM_OFF": true}}' >> .wp-env.json
echo '{"plugins": [".", "https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip"], "config": {"BLOCKERA_TELEMETRY_OFF": true}}' >> .wp-env.json
;;
"freemius")
echo '{"plugins": ["."]}' >> .wp-env.json
;;
"plugins")
echo '{"plugins": [".", "https://downloads.wordpress.org/plugin/icon-block.latest-stable.zip"], "config": {"BLOCKERA_DATA_STREAM_OFF": true}}' >> .wp-env.json
echo '{"plugins": [".", "https://downloads.wordpress.org/plugin/icon-block.latest-stable.zip"], "config": {"BLOCKERA_TELEMETRY_OFF": true}}' >> .wp-env.json
;;
*)
echo '{"plugins": [".", "https://downloads.wordpress.org/plugin/svg-support.latest-stable.zip"], "config": {"BLOCKERA_DATA_STREAM_OFF": true}}' >> .wp-env.json
echo '{"plugins": [".", "https://downloads.wordpress.org/plugin/svg-support.latest-stable.zip"], "config": {"BLOCKERA_TELEMETRY_OFF": true}}' >> .wp-env.json
;;
esac
cat .wp-env.json
Expand Down
2 changes: 1 addition & 1 deletion .wp-env.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"https://downloads.wordpress.org/plugin/icon-block.latest-stable.zip"
],
"config": {
"BLOCKERA_DATA_STREAM_OFF": true
"BLOCKERA_TELEMETRY_OFF": true
}
}
4 changes: 2 additions & 2 deletions blockera.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@

$dashboard_page = blockera_core_config( 'app.dashboard_page' );

$jobs = new \Blockera\DataStream\Jobs(
$jobs = new \Blockera\Telemetry\Jobs(
new \Blockera\WordPress\Sender(),
__FILE__,
array_merge(
blockera_core_config( 'dataStream' ),
blockera_core_config( 'telemetry' ),
compact( 'dashboard_page' )
)
);
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
{
"type": "path",
"url": "packages/data-stream"
"url": "packages/telemetry"
}
],
"authors": [
Expand All @@ -82,7 +82,7 @@
"blockera/data": "*",
"blockera/data-editor": "*",
"blockera/http": "*",
"blockera/data-stream": "*",
"blockera/telemetry": "*",
"vlucas/phpdotenv": "^5.5@dev",
"illuminate/container": "8.x-dev"
},
Expand Down
118 changes: 59 additions & 59 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions config/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
'data',
'icons',
'controls',
'data-stream',
'telemetry',
'bootstrap',
'wordpress',
'blockera-admin',
'controls-styles',
'wordpress-styles',
'data-stream-styles',
'telemetry-styles',
'blockera-admin-styles',
],
'with-deps' => [],
Expand Down
Loading

0 comments on commit 404765c

Please sign in to comment.