-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Actions] Expose config value for preconfigured connectors for GET all api/actions/connectors #119696
Comments
I believe we wanted to keep the |
PeterS was in favor of hiding config for pre-configured connectors. Personally, I always felt like we overloaded pre-configured with an aspect of "hidden" - feels like "pre-configured" and "config is hidden" should be separate things. But I guess "config is hidden" wouldn't be useful outside of pre-configured connectors ... What is the case for needing this info though ...
Where do we do this? Is it when determining if we need to display the "warning" icon in the connector list? I'm wondering if we could add an API somewhere, that could have access to the fields, without exposing them in the GET calls ... |
Yep, we access the connector's Yuliia also found a bug within Cases that was causing the UI to crash because we thought the To guard against that I'm forcing the type within Cases to have I'm happy to do something different though. Would it be better to mark cc: @cnasikas |
If we really want to keep pre-configured config hidden, then I think we'd need to provide an API that can take an actionId and return whether it should have the "warning" icon displayed. We'd probably want to make it more general,
Clearly that's a bug on our part. Thanks for the PR! Would it be simpler to return an empty object instead of null/undefined in that case? Sometimes optional properties are a PITA to deal with. OTOH, it could be kind nice to leave null/undefined to mean "you're not allowed to see it", because otherwise you'd need to check the isPreconfigured. Six one, half dozen the other? |
Yeah no worries!
Either sounds good to me, the change to check for an undefined What do you think @cnasikas ? |
Same for me. Whatever is the easiest to change. Returning an empty object seems simpler to me. Btw, I really like the idea of |
I've taken this on to unblock a customer ask. Instead I am moving the deprecation check into the server side. |
Should we return an |
Yup, that's exactly what I ended up doing: #130541
That can be a follow up if you want. For now I've just moved the existing logic to the server. |
@cnasikas - I'm going to merge the PR above into 8.3, so feel free to build on it. |
Given the fix above I'm going to close this issue as not going to do, as we solved this from a different direction. |
Before we didn't have a requirement for returning
config
values forgetAll
actions API ofr preconfigured connectors, because we didn't use it in the UI.Currently we have a problem with identifying deprecated ServiceNow connectors if it is preconfigured, because it is possible only if we have
config
values:usesTableApi
.This functionality could be a blocker for this PR #115287
The text was updated successfully, but these errors were encountered: