-
Notifications
You must be signed in to change notification settings - Fork 491
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
Conversation
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?
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, this is hardcoded. We can call an endpoint if we feel like that would be beneficial.
*[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
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.
We call webui.crypto.certificate_profiles
.
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.
That is not accurate and UI should be using this endpoint instead, i'll make a ticket
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.
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.
We missed specifying CSR profiles in that ticket, created a ticket for that https://ixsystems.atlassian.net/browse/NAS-131460
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.
Please rename that function and also put it under webui namespace. webui.crypto.csr_profiles
@@ -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
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.
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.
Let's please remove the endpoints which UI is going to consume, apart from that LGTM
This PR has been merged and conversations have been locked. |
time 20:00 |
Time tracking added. |
No description provided.