Skip to content

Conversation

opudrovs
Copy link
Contributor

@opudrovs opudrovs commented Dec 3, 2022

Closes #1941

  • Removed unneeded checks when using feature flags.

  • Added WEAVE_GITOPS_FEATURE_TELEMETRY to the dev values.

  • Turned telemetry off for the acceptance and ui-integration testing workflow.

  • Added the Pendo component from WG OSS.

  • Added initializing telemetry (because in OSS it was moved out of a call to NewCoreServer, so, now it must be called separately).

  • Added a check for the telemetry feature flag.

  • Removed the unused supportMultipleFlux prop (which probably became unused after one of the latest UI PRs in OSS).

  • Pulled in the latest main branch from WG OSS.

Tested it locally, everything seems to work as expected.

Notes:

  • For testing Pendo initialization with Tilt, you can turn telemetry on in dev-values-local.yaml with setting its value to the true string or just removing it from the dev value files (in enterprise. unlike OSS< telemetry is on by default unless it is explicitly set to false in the value files).

Then you can run the following code in the browser console, to make sure that Pendo was or was not initialized as expected:

console.log(window.pendo)

If telemetry is on, a Pendo object will be logged tot he console. If not, it should be undefined.

@opudrovs opudrovs added team/denim enhancement New feature or request labels Dec 3, 2022
@opudrovs opudrovs force-pushed the 1941-pendo-agent-for-enterprise branch 3 times, most recently from 0d7824e to aaeacda Compare December 5, 2022 13:59
@opudrovs opudrovs marked this pull request as ready for review December 5, 2022 14:57
@opudrovs opudrovs force-pushed the 1941-pendo-agent-for-enterprise branch 7 times, most recently from 8c0768c to d9742f5 Compare December 6, 2022 14:36
@opudrovs opudrovs requested review from foot and ozamosi December 6, 2022 14:47
@opudrovs
Copy link
Contributor Author

opudrovs commented Dec 6, 2022

Tested it locally, Pendo is initialized or not initialized properly. based on the value of the WEAVE_GITOPS_FEATURE_TELEMETRY feature flag.

Copy link
Contributor

@ozamosi ozamosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@foot I tried to run a smoke test, but I think there's big changes happening there? Worst case, they might need another featureflags.SetFromEnv(os.Environ())

@foot
Copy link
Collaborator

foot commented Dec 6, 2022

There's been a bit of churn, hopefully happier now, started a new run https://github.com/weaveworks/weave-gitops-enterprise/actions/runs/3631286250

@opudrovs opudrovs force-pushed the 1941-pendo-agent-for-enterprise branch from 77881d9 to 5544779 Compare December 6, 2022 16:57
@opudrovs
Copy link
Contributor Author

opudrovs commented Dec 6, 2022

@foot @ozamosi rebased on main, all tests (including snyk) are green after the last run.

So, is this OK to merge or should I run something else to validate it's safe?

@opudrovs opudrovs force-pushed the 1941-pendo-agent-for-enterprise branch from 5544779 to ef009ee Compare December 7, 2022 09:46
Add `WEAVE_GITOPS_FEATURE_TELEMETRY` to the dev values.

Turn telemetry off for the acceptance testing workflow.

Add the `Pendo` component.

Add initializing telemetry.

Add a check for the telemetry feature flag.

Remove the unused `supportMultipleFlux` prop.

Pull in the latest `main` branch from WG OSS.
@opudrovs opudrovs force-pushed the 1941-pendo-agent-for-enterprise branch from ef009ee to edc959f Compare December 7, 2022 12:09
@opudrovs opudrovs merged commit 028f3e8 into main Dec 7, 2022
@opudrovs opudrovs deleted the 1941-pendo-agent-for-enterprise branch December 7, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pendo Agent for Enterprise
3 participants