Skip to content
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

Fix date to allow commits to vault after 2020 to be transferred #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidasconsulting
Copy link

The existing code stops at Jan 1, 2020. This change will keep this project running until 2120.

It would be better to make the date dependent on current date, but it is a riskier change and not worth it in my opinion.

@@ -293,7 +293,7 @@ private int vaultPopulateInfo(string repoPath, IDictionary<long, VaultVersionInf
foreach (var i in ServerOperations.ProcessCommandVersionHistory(repoPath,
1,
VaultDateTime.Parse("2000-01-01"),
VaultDateTime.Parse("2020-01-01"),
VaultDateTime.Parse("2120-01-01"),
Copy link
Owner

Choose a reason for hiding this comment

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

What versions of Vault did you check this parsing with? Just confirming there is no max supported date in vault dlls themselves.

Copy link
Owner

Choose a reason for hiding this comment

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

To avoid extensive manual testing on all versions of Vault, please use currentDate + 2 for the second argument.

Copy link
Author

Choose a reason for hiding this comment

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

I will work on this in a few days.

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.

2 participants