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

feature(frontend): Adding support for dynamic TracetestAPI instance #3075

Merged
merged 5 commits into from Aug 18, 2023

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Aug 17, 2023

This PR updates the FE to use a dynamic instance for the tracetest API and fixes some issues with the backend regarding the tenant id queries

Changes

  • Updates tracetest API to be dynamic
  • Fixes tenant id issues with backend queries

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@xoscar xoscar self-assigned this Aug 17, 2023
@xoscar xoscar requested a review from jorgeepc August 17, 2023 21:38
@xoscar xoscar marked this pull request as ready for review August 17, 2023 21:38

var _ propagation.TextMapPropagator = tenantPropagator{}

// Inject sets baggage key-values from ctx into the carrier.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this comments are not correct

@@ -1,5 +1,5 @@
{
"name": "tracetest",
"name": "oss",
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this file?

@@ -1,5 +1,5 @@
{
"name": "tracetest",
"name": "oss",
Copy link
Contributor

Choose a reason for hiding this comment

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

and this? 🤔

import {EndpointBuilder} from '@reduxjs/toolkit/dist/query/endpointDefinitions';
import {TracetestApiTags} from '../../../constants/Test.constants';

export type TTestApiEndpointBuilder = EndpointBuilder<
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you already have this type here web/src/redux/apis/Tracetest/Tracetest.api.ts

@xoscar xoscar merged commit 0bb4286 into main Aug 18, 2023
30 checks passed
@xoscar xoscar deleted the feat/dynamic-api-instance branch August 18, 2023 18:29
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.

None yet

3 participants