Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odyssey Stats: Try direct public api calls #95501

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/odyssey-stats/src/lib/create-odyssey-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ export class ConfigApi extends Function {
// Copied from https://github.com/Automattic/wp-calypso/blob/ca7d8fe3e0a5fb87b0659fbab659078ebbfbc7be/apps/odyssey-stats/src/load-config.js
_overrideConfigDataFeatures() {
// Set is_running_in_jetpack_site to true if not specified (undefined or null).
productionConfig.features.is_running_in_jetpack_site =
this.configData.features?.is_running_in_jetpack_site ?? true;
productionConfig.features.is_running_in_jetpack_site = false;

// The option enables loading of the whole translation file, and could be optimized by setting it to `true`, which needs the translation chunks in place.
// @see https://github.com/Automattic/wp-calypso/blob/trunk/docs/translation-chunks.md
Expand Down
24 changes: 12 additions & 12 deletions apps/odyssey-stats/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,18 @@ module.exports = {
/^calypso\/components\/formatted-header$/,
'calypso/components/jetpack/jetpack-header'
),
new webpack.NormalModuleReplacementPlugin(
/^calypso\/components\/data\/query-site-purchases$/,
path.resolve( __dirname, 'src/components/odyssey-query-site-purchases' )
),
new webpack.NormalModuleReplacementPlugin(
/^calypso\/components\/data\/query-products-list$/,
path.resolve( __dirname, 'src/components/odyssey-query-products' )
),
new webpack.NormalModuleReplacementPlugin(
/^calypso\/components\/data\/query-memberships$/,
path.resolve( __dirname, 'src/components/odyssey-query-memberships' )
),
// new webpack.NormalModuleReplacementPlugin(
// /^calypso\/components\/data\/query-site-purchases$/,
// path.resolve( __dirname, 'src/components/odyssey-query-site-purchases' )
// ),
// new webpack.NormalModuleReplacementPlugin(
// /^calypso\/components\/data\/query-products-list$/,
// path.resolve( __dirname, 'src/components/odyssey-query-products' )
// ),
// new webpack.NormalModuleReplacementPlugin(
// /^calypso\/components\/data\/query-memberships$/,
// path.resolve( __dirname, 'src/components/odyssey-query-memberships' )
// ),
...excludedPackagePlugins,
shouldEmitStats &&
new BundleAnalyzerPlugin( {
Expand Down
Loading