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

chore: update LD importer to use v2 endpoints #167

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

elliotCamblor
Copy link
Contributor

@elliotCamblor elliotCamblor commented Oct 1, 2024

@@ -140,7 +141,7 @@

async createFeature(projectKey: string, feature: Feature): Promise<Feature> {
const headers = await this.getHeaders()
const response = await fetch(`${DVC_BASE_URL}/projects/${projectKey}/features`, {
const response = await fetch(`${DVC_BASE_URL_V2}/projects/${projectKey}/features`, {

Check warning

Code scanning / CodeQL

File data in outbound network request Medium

Outbound network request depends on
file data
.
@@ -151,7 +152,7 @@

async updateFeature(projectKey: string, feature: Feature): Promise<Feature> {
const headers = await this.getHeaders()
const response = await fetch(`${DVC_BASE_URL}/projects/${projectKey}/features/${feature.key}`, {
const response = await fetch(`${DVC_BASE_URL_V2}/projects/${projectKey}/features/${feature.key}`, {

Check warning

Code scanning / CodeQL

File data in outbound network request Medium

Outbound network request depends on
file data
.
@@ -162,7 +163,7 @@

async getFeaturesForProject(projectKey: string): Promise<Feature[]> {
const headers = await this.getHeaders()
const response = await fetch(`${DVC_BASE_URL}/projects/${projectKey}/features?perPage=1000`, {
const response = await fetch(`${DVC_BASE_URL_V2}/projects/${projectKey}/features?perPage=1000`, {

Check warning

Code scanning / CodeQL

File data in outbound network request Medium

Outbound network request depends on
file data
.
src/api/DevCycleApiWrapper.ts Fixed Show fixed Hide fixed
@elliotCamblor elliotCamblor changed the title update LD importer to use v2 endpoints chore: update LD importer to use v2 endpoints Oct 1, 2024
@elliotCamblor elliotCamblor force-pushed the COR-3013-feature-importer-v2-endpoints branch from 61eea77 to d3f991a Compare October 4, 2024 18:26
@elliotCamblor elliotCamblor marked this pull request as ready for review October 4, 2024 18:31
@elliotCamblor elliotCamblor force-pushed the COR-3013-feature-importer-v2-endpoints branch from d3f991a to 3d5e453 Compare October 4, 2024 20:27
@elliotCamblor elliotCamblor requested a review from a team October 4, 2024 20:28
options: { throwOnError: boolean } = { throwOnError: true }
): Promise<FeatureConfiguration> {
const headers = await this.getHeaders()
const response = await fetch(
`${DVC_BASE_URL}/projects/${projectKey}/features/${featureKey}/configurations?environment=${environment}`,
`${DVC_BASE_URL_V2}/projects/${projectKey}/features/${feature.key}`,

Check warning

Code scanning / CodeQL

File data in outbound network request Medium

Outbound network request depends on
file data
.
@elliotCamblor elliotCamblor merged commit 64b3d9c into main Oct 4, 2024
4 checks passed
@elliotCamblor elliotCamblor deleted the COR-3013-feature-importer-v2-endpoints branch October 4, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants