Skip to content
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

Combine scenario list from different sources #629

Merged
merged 2 commits into from
May 10, 2022
Merged

Combine scenario list from different sources #629

merged 2 commits into from
May 10, 2022

Conversation

jenhagg
Copy link
Collaborator

@jenhagg jenhagg commented May 7, 2022

Purpose

Fix the issue where a user won't get a scenario list with existing local scenarios if not connected to the server.

What the code is doing

Best effort to download and use any possible copies of scenario or execute list csv. The local copies are updated with the latest version if possible (always for blob storage, and server copy if connected). Then the results are combined, since we might as well handle a case where the local copy hasn't been updated since the last time we add scenarios to blob storage.

Unrelated: noticed that the .copy() data access method is only used in one place, so removed it from the interface.

Testing

Manual testing: load Scenario(824) which is not in blob storage, but is in my local ScenarioList.csv. If not connected to the server, it will load as much as possible but fails since I don't have the grid.mat, as expected.

Time estimate

10 min

@jenhagg jenhagg self-assigned this May 7, 2022
@jenhagg jenhagg added the bug Something isn't working label May 7, 2022
Copy link
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

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

LGTM

@jenhagg jenhagg merged commit 5682629 into develop May 10, 2022
@jenhagg jenhagg deleted the jon/csv branch May 10, 2022 20:27
@jenhagg jenhagg mentioned this pull request May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants