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

fix: compatibility for lifecycle filter of Endpoint #2691

Merged

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Sep 5, 2024

TL;DR

Added support for endpoint lifecycle stage filtering based on server version compatibility.

What changed?

  • Introduced a new feature flag 'endpoint-lifecycle-stage-filter' in the backend client for version 24.03.10 and above.
  • Modified the EndpointListPage to conditionally render the lifecycle stage filter Radio.Group based on server support.
  • Adjusted the API request to include the lifecycle stage filter only when supported by the server.

How to test?

  1. Ensure you're using a backend server version 24.03.10 or higher.
  2. Navigate to the Endpoint List Page.
  3. Verify that the lifecycle stage filter (Active/Destroyed) is visible.
  4. Test the filter by selecting different options and confirm that the endpoint list updates accordingly.
  5. Check that the API requests include the lifecycle stage filter parameter.

Why make this change?

This change enables more granular filtering of endpoints based on their lifecycle stage, improving user experience and efficiency when managing endpoints. By making this feature version-dependent, it ensures compatibility with older server versions while allowing newer versions to take advantage of the enhanced filtering capabilities.

Copy link
Member Author

yomybaby commented Sep 5, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @yomybaby and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added area:lib Library and SDK related issue. size:M 30~100 LoC labels Sep 5, 2024
@yomybaby yomybaby marked this pull request as ready for review September 5, 2024 03:14
Copy link

github-actions bot commented Sep 5, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.48% (-0% 🔻)
337/6149
🔴 Branches
5.07% (-0% 🔻)
214/4222
🔴 Functions 3.12% 63/2021
🔴 Lines
5.38% (-0% 🔻)
323/6005

Test suite run success

85 tests passing in 11 suites.

Report generated by 🧪jest coverage report action from 6b90dcf

Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Sep 5, 2024

Merge activity

### TL;DR

Added support for endpoint lifecycle stage filtering based on server version compatibility.

### What changed?

- Introduced a new feature flag 'endpoint-lifecycle-stage-filter' in the backend client for version 24.03.10 and above.
- Modified the EndpointListPage to conditionally render the lifecycle stage filter Radio.Group based on server support.
- Adjusted the API request to include the lifecycle stage filter only when supported by the server.

### How to test?

1. Ensure you're using a backend server version 24.03.10 or higher.
2. Navigate to the Endpoint List Page.
3. Verify that the lifecycle stage filter (Active/Destroyed) is visible.
4. Test the filter by selecting different options and confirm that the endpoint list updates accordingly.
5. Check that the API requests include the lifecycle stage filter parameter.

### Why make this change?

This change enables more granular filtering of endpoints based on their lifecycle stage, improving user experience and efficiency when managing endpoints. By making this feature version-dependent, it ensures compatibility with older server versions while allowing newer versions to take advantage of the enhanced filtering capabilities.
@yomybaby yomybaby force-pushed the fix/compatibility-for-lifecycle-filter-of-endpoint branch from d9227f7 to 6b90dcf Compare September 5, 2024 07:18
@graphite-app graphite-app bot merged commit 6b90dcf into main Sep 5, 2024
8 checks passed
@graphite-app graphite-app bot deleted the fix/compatibility-for-lifecycle-filter-of-endpoint branch September 5, 2024 07:23
Copy link

graphite-app bot commented Sep 5, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:lib Library and SDK related issue. size:M 30~100 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants