-
Notifications
You must be signed in to change notification settings - Fork 542
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
feat: added default values & missing fields to Upstream #1764
Conversation
Deploy preview for apisix-dashboard ready! Built with commit 1890dc7 |
Codecov Report
@@ Coverage Diff @@
## master #1764 +/- ##
==========================================
- Coverage 71.55% 62.32% -9.24%
==========================================
Files 47 47
Lines 3129 3129
==========================================
- Hits 2239 1950 -289
- Misses 646 866 +220
- Partials 244 313 +69
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
…ix-dashboard into juzhiyuan/upstream-fields
CI passes on local |
@juzhiyuan please use a better title of this PR |
required | ||
rules={[{ required: true, message: "" }, { max: 64 * 1024 }, { min: 128 }]} | ||
> | ||
<Input.TextArea disabled={readonly} minLength={128} maxLength={64 * 1024} rows={5} placeholder="请输入客户端证书" /> |
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.
@juzhiyuan The text of placeholder
seems no i18n here. As expected?
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.
No, same as your last comment.
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.
Due to CI will take a long time to run, I would prefer to remove them in the new PR.
required | ||
rules={[{ required: true, message: "" }, { max: 64 * 1024 }, { min: 128 }]} | ||
> | ||
<Input.TextArea disabled={readonly} minLength={128} maxLength={64 * 1024} rows={5} placeholder="请输入客户端私钥" /> |
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.
ditto here.
web/cypress/fixtures/selector.json
Outdated
"deleteAlert": ".ant-modal-body" | ||
} | ||
} |
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.
new line please.
if (targetData) { | ||
form.setFieldsValue(transformUpstreamDataFromRequest(targetData)); | ||
} else { | ||
// TODO: 提示 upstream_id 找不到想要的数据 |
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.
remove Chinese comment.
required | ||
rules={[{ required: true, message: "" }, { max: 64 * 1024 }, { min: 128 }]} | ||
> | ||
<Input.TextArea disabled={readonly} minLength={128} maxLength={64 * 1024} rows={5} placeholder="请输入客户端证书" /> |
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.
ditto
required | ||
rules={[{ required: true, message: "" }, { max: 64 * 1024 }, { min: 128 }]} | ||
> | ||
<Input.TextArea disabled={readonly} minLength={128} maxLength={64 * 1024} rows={5} placeholder="请输入客户端私钥" /> |
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.
ditto
</Form.Item> | ||
) | ||
} | ||
|
||
export default PassiveCheckTypeComponent | ||
export default ActiveCheckTypeComponent |
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.
wrong name.
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.
/lgtm
Thanks @juzhiyuan .
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
Hi, this PR aims to add the missing fields to Upstream Form, according to schema_def. (https://github.com/apache/apisix/blob/master/apisix/schema_def.lua#L114) And all default value are added.
fix #1770
Checklist: