-
Notifications
You must be signed in to change notification settings - Fork 47
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
Improve connector names returned by connector search #648
Improve connector names returned by connector search #648
Conversation
d0d0b0e
to
8172296
Compare
...r-core/src/main/java/io/ballerina/flowmodelgenerator/core/search/ConnectorSearchCommand.java
Outdated
Show resolved
Hide resolved
@@ -168,7 +168,7 @@ | |||
}, | |||
{ | |||
"metadata": { | |||
"label": "Persist.redis RedisClient", | |||
"label": "Redis RedisClient", |
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.
is this correct? :)
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, we need to keep "persist" in the name. However, also thought of removing "persist" from the search since we're not supporting persistence in the GA.
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.
But in that case we'll end up displaying similar names for 2 modules right? (ballerinax/persist.redis
and ballerinax/redis
).
if we're not supporting persistence in the GA, one option would be to remove all the persist related modules from the palette and the search itself (and add after the GA)
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.
+1
@@ -264,7 +264,7 @@ | |||
}, | |||
{ | |||
"metadata": { | |||
"label": "Zoho.crm.rest Client", | |||
"label": "Rest Client", |
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.
IMO having only the last part of the package name hierarchy may look ambiguous in many cases.
As an example, something like Zoho CRM Rest Client
would be a better option for the above scenario.
Can't we improve our name generation logic accordingly (probably will have to extend the CONNECTOR_NAME_MAP
)
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.
@hasithaa thoughts?
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.
Shall we make only the common one for now? Ideally this info should come from the library (or from the library team).
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.
Also, the package name appears under the label, so the information is still presented (not the best way tho).
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.
Shall we make only the common one for now? Ideally this info should come from the library (or from the library team).
Yes, getting display names from the packages themselves would be ideal.
Until we get there, wouldn’t it be better to add custom mappings for other modules too? (+1 to doing it in a separate PR).
The main reason is that while pro-code users understand package names better, low-code users may find them (especially hierarchical ones) hard to grasp
Purpose
This is done by: