Conversation
9823081 to
3b7b712
Compare
17571f8 to
9b001ce
Compare
ui/src/components/chorus/add-routing-policies/i18nAddRoutingPolicy.ts
Outdated
Show resolved
Hide resolved
ui/src/pages/ChorusAddRoutingPolicyPage/ChorusAddRoutingPolicyPage.vue
Outdated
Show resolved
Hide resolved
ui/src/pages/ChorusAddRoutingPolicyPage/ChorusAddRoutingPolicyPage.vue
Outdated
Show resolved
Hide resolved
...ts/chorus/routing-policies/RoutingPoliciesFilterByStorage/RoutingPoliciesFilterByStorage.vue
Outdated
Show resolved
Hide resolved
...mponents/chorus/routing-policies/RoutingPoliciesFilterByUser/RoutingPoliciesFilterByUser.vue
Outdated
Show resolved
Hide resolved
.../chorus/add-routing-policies/AddRoutingPolicyConfirmDialog/AddRoutingPolicyConfirmDialog.vue
Outdated
Show resolved
Hide resolved
9b001ce to
632e3bf
Compare
|
Thank you for your review @mzymta 🙂 I addressed all your comments and/or added replies. Could you please take another look? Thank you! |
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
632e3bf to
bf41456
Compare
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Move the notificiation creation and removal into a composable for easier re-use. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Create a separate component for the list of user cards. So that it can be used for the creation of replications as well as routing policies. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
If no replications exist at all, the map function will throw an error because res.replications is undefined. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
The default storage provider (0 -> S3) may not be retuned by the API. We'll have to set a default value to deal with the situation. Otherwise the value will stay undefined. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Add missing translations for the add replication page. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Use the CDashboardPage instead of the div in order to apply the correct styling without additional css classes. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
bf41456 to
2e52a02
Compare
|
Hey @mzymta, I addressed your comments and created two additional issue we talked about:
How do we want to continue? |
2e52a02 to
b025c69
Compare
| if (!!props.to || !props.isSelectable || props.isDisabled) { | ||
| return; | ||
| } | ||
|
|
||
| if (props.isSelected) { | ||
| if (props.isDeselectable) { | ||
| emit('deselect'); | ||
| } |
There was a problem hiding this comment.
too many ifs, looks a bit confusing. Also lets not use !!
How about?
function handleClick() {
if (props.to || !props.isSelectable || props.isDisabled) {
return;
}
if (!props.isSelected) {
emit('select');
return;
}
if (props.isDeselectable) {
emit('deselect');
}
}
| routingPolicy: RoutingPolicy; | ||
| }>(); | ||
|
|
||
| const disableTooltip = props.routingPolicy.bucket !== '*'; |
There was a problem hiding this comment.
We are working with reactive states on the ui and even if we know that something won't change, it still could technically change (e.g. the store updates rows with splice when you block/unblock, so the prop can change. Without computed() it won't update).
So we should always deal with reactive values on the ui
ui/src/components/chorus/add-routing-policies/BucketSelection/BucketSelection.vue
Show resolved
Hide resolved
b025c69 to
d2fd678
Compare
|
Thank you for the second review @mzymta . I updated the PR accordingly. |
| } | ||
|
|
||
| emit('select'); | ||
| if (props.isSelected) { |
There was a problem hiding this comment.
it should be if (!props.isSelected) {
| type="primary" | ||
| size="medium" | ||
| ghost | ||
| class="add-replication-button" |
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Add the user selection to the routing policy creation form. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Add the bucket selection to the routing policy creation form. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Add the storage selection to the routing policy creation form. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Add the status selection to the routing policy creation form. Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com> On-behalf-of: SAP t.dehler@sap.com
d2fd678 to
5a94c03
Compare
Pull Request
Description
Related Issue
Link to the GitHub issue (if applicable): #[issue number]
Checklist
Signed-off-byline to certify agreement with the Developer Certificate of Origin (DCO).make testpassingNote: By submitting this PR, you agree to license your contributions under the Apache 2.0 License and follow our Code of Conduct.