-
Notifications
You must be signed in to change notification settings - Fork 237
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
Small corrections to repo syncing and the behaviour of some gridview rows #3252
Small corrections to repo syncing and the behaviour of some gridview rows #3252
Conversation
… messages. Signed-off-by: Konstantina Chremmou <[email protected]>
- Removed call of virtual member Enabled in constructor. - Removed override of Enabled, because the method the setter called does nothing related to the row's enabled state. - Minor syntax updates. Signed-off-by: Konstantina Chremmou <[email protected]>
…ncWithCdnAction). Signed-off-by: Konstantina Chremmou <[email protected]>
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.
I'm approving because in general the PR can go in like this, my only comment is more of a nit-picky question so feel free to ignore
var syncAction = new SyncWithCdnAction(pool); | ||
syncAction.Completed += a => | ||
{ | ||
if (a.Succeeded) | ||
CheckForCdnUpdates(a.Connection); | ||
}; | ||
return syncAction; |
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 there an instance whereby we sync and not check for updates? Since we always run CheckForCdnUpdates
after SyncWithCdnAction
, should we just be adding CheckForCdnUpdatesAction
in SyncWithCdnAction:Run
, or is that a side effect?
Usually I'd be against having one action do two things, but I don't see why we'd run sync without the check afterwards, so it sort of is the same action.
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.
The only reason is that SyncWithCdnAction
has to call CheckForCdnUpdates
, not CheckForCdnUpdatesAction
, and the former uses concepts (the Registry) which belong to XenAdmin, not XenModel, and it is not straight forward, if feasible, to move it because it blurrs the interface between business and UI logic (which is already not very clean in some areas).
Please review each commit separately.