Skip to content

#775 | Add the backup functionality for Sitecore 9 and later#793

Open
ElenaBovdui wants to merge 1 commit intodevelopfrom
feature/775-Add_the_backup_functionality_for_Sitecore_9_and_later
Open

#775 | Add the backup functionality for Sitecore 9 and later#793
ElenaBovdui wants to merge 1 commit intodevelopfrom
feature/775-Add_the_backup_functionality_for_Sitecore_9_and_later

Conversation

@ElenaBovdui
Copy link
Collaborator

No description provided.

@ElenaBovdui ElenaBovdui self-assigned this Feb 12, 2025
Copy link
Collaborator

@DmitryKolinchuk DmitryKolinchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional points:

  1. SIM is hanging when the Restore or Clear button is pressed.
    Can we add a long running task dialog for better user experience?
  2. When using these buttons and no backups exist, can we display a small dialog notifying a user about backups absence instead of loading empty main dialogs?
  3. It is impossible to go back to the previous step in the following dialog window:
    image
  4. The same window may hang when clicking the Backup button.
    Should we also add a long running task dialog for better user experience?
  5. Can we display the same info in the Clear dialog as in Restore since the last one contains more clear details what is include to the backup and its creation date?
  6. The empty backups folder still exists in the root folder of the Sitecore environment after clearing all backups.
    Can it be removed when all backups are removed?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic of this class is same as in BackupProcessor, but only type of args is different. Can we update BackupProcessor to use an interface for args?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic of this class is same as in BackupFiles, but only type of args is different. Can we update BackupFiles to use an interface for args?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic of this class is similar to BackupArgs. Can we extend BackupArgs instead of creating this new class or inherit it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not use regions (#region and #endregion) since they are considered as anti-patterns.
I would suggest removing them from each class.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic of this class is similar to BackupDatabases. Can we extend BackupDatabases instead of creating this new class or inherit it?

SelectedBackups = backups;
Instance = instance;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove additional empty line

@@ -0,0 +1,61 @@
namespace SIM.Tool.Windows.UserControls.Backup
{
using SIM.Core.Common;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following usings can be removed since they are not used:

using SIM.Core.Common;
using SIM.FileSystem;
using SIM.IO.Real;
using SIM.Pipelines.Backup;
using SIM.Pipelines.Restore;
using SIM.Tool.Base.Profiles;
using System.Data.SqlClient;
using Profile = Core.Common.Profile;

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" d:DesignHeight="205" d:DesignWidth="443">
<Grid>
<ListBox IsManipulationEnabled="True" Name="backups" Padding="0,5,0,0" SelectedIndex="0" Grid.ColumnSpan="2">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change backups to Backups.

</steps>
</backup>

<backup9AndLater title=""Backing up the {InstanceName} instance"" startButton=""Backup""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the same formatting like in the backup section, pay attention to spaces and empty lines.

/*Restore*/
"RestoreInstanceButton",
"ClearBackupsInstance9AndLaterButton",

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line.

"RefreshButton",
"BackupInstanceButton",
"BackupInstance9AndLaterButton",

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line.

public BackupFileName()
{
InitializeComponent();
BackupName.Text = string.Format("{0:yyyy-MM-dd} at {0:hh-mm-ss}", DateTime.Now);
Copy link
Collaborator

@DmitryKolinchuk DmitryKolinchuk Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's maybe use name like SitecoreBackup instead since we still display date and time in the Restore and Clear dialogs.

@github-project-automation github-project-automation bot moved this to To be triaged in Main SIM project Mar 6, 2025
@DmitryKolinchuk DmitryKolinchuk linked an issue Mar 6, 2025 that may be closed by this pull request
@DmitryKolinchuk DmitryKolinchuk moved this from To be triaged to To do: milestone 2025Q1 in Main SIM project Apr 14, 2025
@DmitryKolinchuk DmitryKolinchuk moved this from To do: milestone 2025Q1 to In Progress: 2025Q1 in Main SIM project Apr 14, 2025
@DmitryKolinchuk DmitryKolinchuk added this to the 2025Q2 milestone Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress: 2025Q4

Development

Successfully merging this pull request may close these issues.

Add the backup functionality for Sitecore 9 and later

3 participants