-
Notifications
You must be signed in to change notification settings - Fork 4
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
Searching through Vector{IndexEntry}
#46
base: main
Are you sure you want to change the base?
Conversation
…ion for selection entries by fullname or deprecated name.
Codecov Report
@@ Coverage Diff @@
## main #46 +/- ##
==========================================
- Coverage 96.20% 95.28% -0.92%
==========================================
Files 5 5
Lines 158 191 +33
==========================================
+ Hits 152 182 +30
- Misses 6 9 +3
|
TestPkg.qux(a, b) | ||
|
||
index = index_checkpoint_files(path) | ||
entry= only(index) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entry= only(index) | |
entry = only(index) |
|
||
|
||
# Utility function for generating a checkpoint name lookup table from the current registry | ||
function _depnames_lookup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The amount of added complexity here makes me wonder if we're accounting for deprecations in the correct way. I'm not sure we should allow a deprecation to point to another deprecation.
end | ||
|
||
function IndexEntry(filepath::AbstractPath, base_dir) | ||
function IndexEntry(filepath::AbstractPath, base_dir, depnames_lookup=_depnames_lookup()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we're passing this in rather than calling it in the function?
Based off #45, we may want to support storing deprecated checkpoint information in the index and add some minimal search functionality to make working with collections of
IndexEntry
types easier.