-
Notifications
You must be signed in to change notification settings - Fork 486
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
NAS-129639 / 25.04 / Remove unused API endpoints #14576
base: master
Are you sure you want to change the base?
Conversation
2826848
to
94f45bf
Compare
94f45bf
to
856dcd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a quick pass at crypto/kmip/vm plugins
@@ -47,17 +47,6 @@ async def ec_curve_choices(self): | |||
""" | |||
return {k: k for k in EC_CURVES} | |||
|
|||
@accepts() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we certain UI is not using these ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, no removed endpoints are used by the UI. @undsoft are those just hardcoded?
*[Dict(profile, additional_attrs=True) for profile in CSR_PROFILES], | ||
example=CSR_PROFILES, | ||
)) | ||
async def certificate_signing_requests_profiles(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI should be using this for CSR profiles, seems like they are using the wrong endpoint atm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@undsoft it is strange that the UI does not use this
@@ -9,22 +8,6 @@ class Config: | |||
namespace = 'system.advanced' | |||
cli_namespace = 'system.advanced' | |||
|
|||
@accepts(roles=['SYSTEM_ADVANCED_READ']) | |||
@returns(Dict(additional_attrs=True)) | |||
def get_gpu_pci_choices(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is being used by UI as well iirc, @Qubad786 can you confirm ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems UI is using device.get_info
right now but it should be using this endpoint instead and i think we already have a ticket for UI to use this endpoint
No description provided.