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

refactor(api): expose dataplanes api v4alpha #4704

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Jan 8, 2025

What this PR changes/adds

Exposes /dataplanes v4alpha without v3 deprecated fields

Why it does that

prepare for new version, get rid of deprecated stuff

Further notes

  • the deprecated field will be removed after v2 will be removed

Linked Issue(s)

Part of #4659

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added refactoring Cleaning up code and dependencies api Feature related to the (REST) api labels Jan 8, 2025
@ndr-brt ndr-brt requested review from wolf4ood and jimmarino January 8, 2025 13:34
@ndr-brt ndr-brt force-pushed the dataplane-instance-v4alpha branch from 09459be to 2724fee Compare January 8, 2025 13:38
.add(TYPE, DataPlaneInstance.DATAPLANE_INSTANCE_TYPE)
.add(URL, dataPlaneInstance.getUrl().toString())
.add(LAST_ACTIVE, dataPlaneInstance.getLastActive())
.add(TURN_COUNT, dataPlaneInstance.getTurnCount());

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
DataPlaneInstance.getTurnCount
should be avoided because it has been deprecated.
var srcBldr = jsonFactory.createArrayBuilder(dataPlaneInstance.getAllowedSourceTypes());
builder.add(ALLOWED_SOURCE_TYPES, srcBldr);

var dstBldr = jsonFactory.createArrayBuilder(dataPlaneInstance.getAllowedDestTypes());

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
DataPlaneInstance.getAllowedDestTypes
should be avoided because it has been deprecated.
@ndr-brt ndr-brt force-pushed the dataplane-instance-v4alpha branch from 2724fee to f43032a Compare January 8, 2025 14:00
@ndr-brt ndr-brt requested a review from bscholtes1A as a code owner January 8, 2025 14:00
@ndr-brt ndr-brt force-pushed the dataplane-instance-v4alpha branch from f43032a to a257c96 Compare January 8, 2025 16:22
@ndr-brt ndr-brt force-pushed the dataplane-instance-v4alpha branch from a257c96 to d82f132 Compare January 8, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Feature related to the (REST) api refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant