-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: restore port to overload type hint and json schema #5501
Conversation
docs/concepts/flow/executor-args.md
Outdated
@@ -7,14 +7,14 @@ | |||
| `quiet_error` | If set, then exception stack information will not be added to the log | `boolean` | `False` | | |||
| `timeout_ctrl` | The timeout in milliseconds of the control request, -1 for waiting forever | `number` | `60` | | |||
| `polling` | The polling strategy of the Deployment and its endpoints (when `shards>1`).<br> Can be defined for all endpoints of a Deployment or by endpoint.<br> Define per Deployment:<br> - ANY: only one (whoever is idle) Pod polls the message<br> - ALL: all Pods poll the message (like a broadcast)<br> Define per Endpoint:<br> JSON dict, {endpoint: PollingType}<br> {'/custom': 'ALL', '/search': 'ANY', '*': 'ANY'} | `string` | `ANY` | | |||
| `shards` | The number of shards in the deployment running at the same time. For more details check https://docs.jina.ai/concepts/flow/create-flow/#complex-flow-topologies | `number` | `1` | | |||
| `shards` | The number of shards in the deployment running at the same time. For more details check https://docs.jina.ai/fundamentals/flow/create-flow/#complex-flow-topologies | `number` | `1` | |
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 shoukd be concepts now
📝 Docs are deployed on https://fix-port-protocol-type-hint--jina-docs.netlify.app 🎉 |
Codecov Report
@@ Coverage Diff @@
## master #5501 +/- ##
==========================================
+ Coverage 74.87% 84.81% +9.94%
==========================================
Files 99 101 +2
Lines 6678 6724 +46
==========================================
+ Hits 5000 5703 +703
+ Misses 1678 1021 -657
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
As multi port and protocol feature was added, the port argument accepts a CastToIntAction.
Parsing arguments depends on knowing which action is attached to the argument.
Therefore, json schema and inject-cli-overload failed to show the port argument.
This PR fixes this issue and makes the port argument detectable when generating json schema and injecting CLI overload.