minimart icon indicating copy to clipboard operation
minimart copied to clipboard

"Added to MiniMart on" date is date of last minimart upload for every cookbook

Open edwardbartholomew opened this issue 9 years ago • 5 comments

The date displayed in the app next to every cookbook shows the date I have last uploaded cookbooks. Not sure if this is issue with minimart, sync script, or user error?

edwardbartholomew avatar May 27 '15 20:05 edwardbartholomew

This date: Added to MiniMart on May 27, 2015, What date would you expect @edwardbartholomew ? I will look into updating to display what you think it should display.

tapickell avatar May 28 '15 00:05 tapickell

This date should be the date that you downloaded the cookbook using Minimart. It would be found in the .minimart.json file in the directory of that specific cookbook.

richardardrichard avatar May 28 '15 12:05 richardardrichard

Thanks for reply guys ... @richardardrichard do you mean download via the "Download" button or when we sync them? We're using a script like the "Example Jenkins Script" in the README. Every cookbook displays the date we last sync'ed ... regardless if cookbook was changed or not.

edwardbartholomew avatar May 28 '15 13:05 edwardbartholomew

Yes, the timestamp should be when it was last synced... Just to clarify the folder in that directory is not being changed between runs, but the timestamp is being updated? If you were doing something like blowing away the directory of synced cookbooks every run, then this would be expected, otherwise this is a bug.

richardardrichard avatar May 28 '15 13:05 richardardrichard

The example in the README, does have the cookbooks being deleted each run. Using --size-only option in the aws s3 sync command, will ignore timestamp and only update changed cookbooks. I have submitted a PR 11 to update the README. Thoughts?

edwardbartholomew avatar May 30 '15 18:05 edwardbartholomew