Skip to content

Conversation

@krivard
Copy link
Contributor

@krivard krivard commented Jan 31, 2022

Description

Type of change (bug fix, new feature, etc), brief description, and motivation for these changes.

Make it easier for a human to browse the input_cache folder. Asset IDs are essentially hash strings, and aren't meant to be ordered. Filenames (modulo some irregularities in the choice of delimiter) are orderable, so we should put them first. That way, input_cache will list in roughly date order, making it easier to see what the most recent file is, and whether the file named for a particular date is present.

Changelog

Itemize code/test/documentation changes and files added/removed.

  • pull.py:as_cached_filename() - flip the order of filename and assetid, plus some string manipulation to make sure the file extension goes in the right place.

Fixes

  • Fixes likely future debugging headaches

Make it easier for a human to browse the input_cache folder
@krivard krivard merged commit ff5557a into main Feb 2, 2022
@krivard krivard deleted the krivard/flip-input-cache-order branch February 2, 2022 14:58
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