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

upcoming: [M3-8869] - Update types for NodeBalancer UDP support #11321

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Nov 25, 2024

Description 📝

  • Updates NodeBalancer related types and schemes to support UDP 🔌

Preview 📷

Note

No UI changes

How to test 🧪

  • Check types compared to the API spec (linked in the internal ticket M3-8869)
  • Check for breaking changes in our types

As an Author, I have considered 🤔

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@bnussman-akamai bnussman-akamai added the NodeBalancers Relating to NodeBalancers label Nov 25, 2024
@bnussman-akamai bnussman-akamai self-assigned this Nov 25, 2024
@bnussman-akamai bnussman-akamai marked this pull request as ready for review December 3, 2024 15:48
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner December 3, 2024 15:48
@bnussman-akamai bnussman-akamai requested review from dwiley-akamai and hana-akamai and removed request for a team December 3, 2024 15:48
Copy link

github-actions bot commented Dec 3, 2024

Coverage Report:
Base Coverage: 86.85%
Current Coverage: 86.85%

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 462 passing tests on test run #9 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing462 Passing2 Skipped82m 37s

Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

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

Code review ✅
No regressions observed to existing flow ✅

re: mode and how it shouldn't be specified when creating a node for a UDP NodeBalancer -- should this be reflected in L54 of nodebalancers.schema.ts?

"@linode/manager": Tech Stories
---

Cleaned up NodeBalancer related types ([#11321](https://github.com/linode/manager/pull/11321))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Cleaned up NodeBalancer related types ([#11321](https://github.com/linode/manager/pull/11321))
Clean up NodeBalancer related types ([#11321](https://github.com/linode/manager/pull/11321))

Comment on lines +210 to +230
const client_conn_throttle = number()
.min(
CONNECTION_THROTTLE.MIN,
`Client Connection Throttle must be between ${CONNECTION_THROTTLE.MIN} and ${CONNECTION_THROTTLE.MAX}.`
)
.max(
CONNECTION_THROTTLE.MAX,
`Client Connection Throttle must be between ${CONNECTION_THROTTLE.MIN} and ${CONNECTION_THROTTLE.MAX}.`
)
.typeError('Client Connection Throttle must be a number.');

const client_udp_sess_throttle = number()
.min(
CONNECTION_THROTTLE.MIN,
`UDP Session Throttle must be between ${CONNECTION_THROTTLE.MIN} and ${CONNECTION_THROTTLE.MAX}.`
)
.max(
CONNECTION_THROTTLE.MAX,
`UDP Session Throttle must be between ${CONNECTION_THROTTLE.MIN} and ${CONNECTION_THROTTLE.MAX}.`
)
.typeError('UDP Session Throttle must be a number.');
Copy link
Contributor

Choose a reason for hiding this comment

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

Can put the error messages that are used twice in their own constants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NodeBalancers Relating to NodeBalancers Ready for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants