Closed chrisiacovella closed 7 months ago
Yep, this is over-zealous use of the cache. I was expecting some of these issues to pop up.
I think we should always work under the assumption that we can fetch all the names of the entries and all the specifications without too much issue, even for large datasets.
I will add this to #816 for a 0.54.1 release tomorrow
Describe the bug The CI in one of my repos started grabbing v0.54 of qcportal, rather than 0.53, causing some failures, related to grabbing the list of entries in a database.
Basically, if you only iterate over a subset of the entries, the second time you access
entry_names
in the dataset, it only contains those that have already been fetched, unless you first issuefetch_entry_names()
To Reproduce
The output from this:
Expected behavior I would expect that calling
ds.entry_names
would get all of the names on the server, as this was the prior behavior. Maybe there just needs to be two different variables/functions to make it clearer e.g., instead ofentry_names
we have something likeentry_names_local
andentry_names_server