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

[GEN-1927]: Cypress test for onboarding-flow #1930

Merged

Conversation

BenElferink
Copy link
Contributor

No description provided.

alonkeyval and others added 30 commits October 22, 2024 16:41
[GEN-1515]: fix stringify for graphql (odigos-io#1615)
This pull request introduces a new `ProbabilisticSamplerAction` to the
codebase, along with the necessary updates to support its creation,
update, and deletion. The key changes include adding the new action
type, updating the GraphQL schema, and implementing the corresponding
service functions.

### Addition of `ProbabilisticSamplerAction`:

*
[`frontend/graph/model/models_gen.go`](diffhunk://#diff-642ccd7ed71fdfa394bd7f7fd99c9c33e20ff18c876a91cb989d379a44390469R311-R337):
Added the `ProbabilisticSamplerAction` struct and its methods to the
model.
*
[`frontend/graph/schema.graphqls`](diffhunk://#diff-bc07b91dedd1782d9ddbbb6374ad97c7604f9a267de5174645723d863c732f80R309-R318):
Updated the GraphQL schema to include the `ProbabilisticSamplerAction`
type.

### Resolver Updates:

*
[`frontend/graph/schema.resolvers.go`](diffhunk://#diff-8e6e95029056db2c0301fc338e0ca5a04356ce5d45ee9514bbd167f2d85bae70L568-R571):
Updated the `CreateAction`, `UpdateAction`, and `DeleteAction` resolvers
to handle the new `ProbabilisticSamplerAction` type.
[[1]](diffhunk://#diff-8e6e95029056db2c0301fc338e0ca5a04356ce5d45ee9514bbd167f2d85bae70L568-R571)
[[2]](diffhunk://#diff-8e6e95029056db2c0301fc338e0ca5a04356ce5d45ee9514bbd167f2d85bae70L586-R591)
[[3]](diffhunk://#diff-8e6e95029056db2c0301fc338e0ca5a04356ce5d45ee9514bbd167f2d85bae70L617-R630)

### Constants Update:

*
[`frontend/services/actions/constants.go`](diffhunk://#diff-377602090c56364ea3a4d6cdadda1ad9b1c6ba9e122f882e5a1f640b1e62acf8L8-R9):
Added `ActionTypeProbabilisticSampler` and corrected the naming of
`ActionTypeLatencySampler`.

### Service Implementation:

*
[`frontend/services/actions/probabilisticsampler.go`](diffhunk://#diff-2f6dc14f04b67e0a11a5b999216a0e08f575927294c5033187b84f1179fb5624R1-R139):
Implemented the service functions `CreateProbabilisticSampler`,
`UpdateProbabilisticSampler`, and `DeleteProbabilisticSampler` to manage
`ProbabilisticSamplerAction` in Kubernetes.
Co-authored-by: Alon Braymok <138359965+alonkeyval@users.noreply.github.com>
Copy link

@BenElferink BenElferink merged commit 3199daf into odigos-io:ui-tests-fix-detected-sources Dec 5, 2024
16 of 20 checks passed
BenElferink added a commit that referenced this pull request Dec 8, 2024
This pull request includes several changes aimed at improving the
frontend codebase and updating the Cypress end-to-end testing
configuration. The most important changes include adding unique IDs to
various components, updating Cypress configuration and tests, and
removing an outdated script.

Improvements to frontend components:

*
[`frontend/webapp/containers/main/destinations/destination-modal/choose-destination-body/destinations-list/destination-list-item/index.tsx`](diffhunk://#diff-0111152ee1a677294919adfc934717a9e3f9d1cfa99362d49660ed218f12ae18L95-R95):
Added unique IDs to `ListItem` components for better identification.
*
[`frontend/webapp/containers/main/destinations/destination-modal/choose-destination-body/destinations-list/index.tsx`](diffhunk://#diff-0fc3893b30022c16fec91cb64d38fa36de0dc4e8eabbbbb7a3b94701b45a4badL52-R52):
Updated the key for `DestinationListItem` to use `categoryItem.type`
instead of `categoryItem.displayName`.
*
[`frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-fast/sources-list/index.tsx`](diffhunk://#diff-6b67649d370d208941f4e5a78c0c9de2f5b9b65fd49e0ede8ef57066982450aaL139-R139):
Added unique IDs to `Group` components for better identification.
*
[`frontend/webapp/reuseable-components/no-data-found/index.tsx`](diffhunk://#diff-6807c50cee51d35309adcaaab02fdb295cdde0392d6d0e010c0e602a21ae244fL37-R37):
Added an ID to the `Container` component for better identification.

Updates to Cypress configuration and tests:

*
[`frontend/webapp/cypress.config.ts`](diffhunk://#diff-324fc1c28a87dedafd74a9513d1c38b2ab26e47a3c5e9a9a9e1b74dce75e0aa2R3-R9):
Set the `baseUrl` to use a variable for easier configuration.
*
[`frontend/webapp/cypress/e2e/connection.cy.ts`](diffhunk://#diff-dfc1066bf4c3d7d672402ac7c804872b2500bcdb7f9c1736628b4a7e710b0647R1-R10):
Added a new test to verify the frontend and backend connections using
GraphQL.
*
[`frontend/webapp/cypress/e2e/onboarding.cy.ts`](diffhunk://#diff-709b703b03f6676250de6b700a4d517e5d5622ad788d1f574aa2489527d77fc7L2-R26):
Updated onboarding tests to include checks for the existence of a
"default" namespace and the "Jaeger" destination.

Removal of outdated script:

*
[`tests/common/odigos_ui.sh`](diffhunk://#diff-16f3e24ddc9ddd226f571aea7b04628df0c0917d6bf2577465b0b2654c94e124L1-L125):
Removed the old script for managing the Odigos UI.

Updates to package scripts:

*
[`frontend/webapp/package.json`](diffhunk://#diff-ccf6337b0064354343f900ffd8b4ee91aa8cd014f3292548a800ad3dac39c1f4L6-R10):
Updated Cypress-related scripts and removed unnecessary build scripts.
[[1]](diffhunk://#diff-ccf6337b0064354343f900ffd8b4ee91aa8cd014f3292548a800ad3dac39c1f4L6-R10)
[[2]](diffhunk://#diff-ccf6337b0064354343f900ffd8b4ee91aa8cd014f3292548a800ad3dac39c1f4L42-R38)

Changes to end-to-end test configuration:

*
[`tests/e2e/ui/chainsaw-test.yaml`](diffhunk://#diff-755f1b6537d52a2a2e4be3c1e17d296567f0b9e43c396b3c552a8dff9851a2bbL4-R56):
Updated the test configuration to use the Odigos CLI for installing and
starting the UI, and to run Cypress tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants