Skip to content

Conversation

@AnatoliB
Copy link
Contributor

@AnatoliB AnatoliB commented Jul 24, 2019

Shorten managed dependencies snapshot folder names:

  • Remove dots and dashes.
  • Remove microseconds.
  • Use just two last digits for the year.

@AnatoliB AnatoliB changed the title Shorten snapshot names Shorten managed dependencies snapshot folder names Jul 24, 2019
Copy link
Contributor

@Francisco-Gamino Francisco-Gamino left a comment

Choose a reason for hiding this comment

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

One minor comment; otherwise, LGTM.

/// ".../20190710-1234.567890.r.i"
/// This makes it possible to enumerate all the installed snapshots by using ".../*.r" mask,
/// and all the installing snapshots by using ".../*.i" mask.
/// ".../1907101234567ri"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be 1907101234567i?

Copy link
Contributor

Choose a reason for hiding this comment

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

@AnatoliB: Please rebase your code. The unsuccessful checks should pass now :).

Copy link
Contributor Author

@AnatoliB AnatoliB Jul 30, 2019

Choose a reason for hiding this comment

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

@Francisco-Gamino

Should this be 1907101234567i?

It could, but the code will actually do 1907101234567ri, for the sake of simplifying the transformation from the "ready" name to the "installing" name. Currently, we just append i, which is a no-brainer. If we wanted to do 1907101234567i instead, we would have to do a replacement, make a decision on how to handle the situation when the original name does not end with "i". Though not very difficult, these decisions complicate the problem without a valuable reason.

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense. Thanks for the clarification @AnatoliB.

@AnatoliB AnatoliB merged commit 5b451b8 into Azure:dev Jul 30, 2019
@AnatoliB AnatoliB deleted the managed-dependencies-file-names branch July 30, 2019 06:37
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