Skip to content

Conversation

@zeusongit
Copy link
Contributor

Purpose

Changed the default backup interval from 1 minute (60000ms) to 5 minutes (300000ms). Added logic to migrate existing settings using the old interval to the new default value.

Declarations

Check these if you believe they are true

  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB
  • This PR introduces new feature code involve network connecting and is tested with no-network mode.

Release Notes

Changed the default backup interval from 1 minute (60000ms) to 5 minutes (300000ms). Added logic to migrate existing settings using the old interval to the new default value.

Reviewers

(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)

(FILL ME IN, optional) Any additional notes to reviewers or testers.

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

Changed the default backup interval from 1 minute (60000ms) to 5 minutes (300000ms). Added logic to migrate existing settings using the old interval to the new default value.
@zeusongit zeusongit requested review from a team and Copilot July 9, 2025 05:48
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-9093

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the default backup interval from 1 minute to 5 minutes and adds logic to migrate any existing setting still using the old interval.

  • Changed DefaultBackupInterval constant from 60000ms to 300000ms.
  • Added migration code to reset saved intervals of 60000ms to the new default.
Comments suppressed due to low confidence (2)

src/DynamoCore/Configuration/PreferenceSettings.cs:1114

  • [nitpick] The variable name savedBackUpInterval uses inconsistent casing for "Up"; consider renaming to savedBackupInterval to follow normal camelCase conventions.
                    var savedBackUpInterval = settings?.BackupInterval;

src/DynamoCore/Configuration/PreferenceSettings.cs:1113

  • There’s no accompanying unit test to verify that a saved interval of 60000ms is correctly migrated to the new default. Consider adding a test for this migration scenario.
                    // If the backup interval is set to 60000ms (1 minute) - old backup interval, reset it to the new default value.

zeusongit and others added 3 commits July 9, 2025 10:43
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zeusongit zeusongit merged commit fb169e6 into DynamoDS:master Jul 9, 2025
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants