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

Fix: not save non interactive user properties #488

Conversation

Romazes
Copy link
Contributor

@Romazes Romazes commented Aug 15, 2024

Description

This PR addresses an issue where the configuration parameter passed in non-interactive mode, such as --tradier-environment paper, is not saved in the lean.json file. The fix ensures that these parameters are properly recorded, regardless of whether Lean is run in interactive or non-interactive mode.

Related Issue

Closes #461

Motivation and Context

The issue was identified when running Lean in non-interactive mode. Users who passed configuration parameters, like --tradier-environment paper, noticed that these were not being saved in the lean.json file. This behavior was inconsistent with the expected functionality, as in interactive mode, parameters were saved correctly.

This PR corrects the behavior, ensuring that configuration parameters are consistently saved across both interactive and non-interactive modes. This change improves the user experience by maintaining consistency and ensuring that user preferences are retained for future use.

How Has This Been Tested?

run in 2 ways:

  1. interactive -> lean live deploy mynewalgo -> save in configuration file;
  2. non_interactive -> lean live deploy mynewalgo --data-provider-live tradier --tradier-environment live -> save in configuration file.

@Romazes Romazes added the bug Something isn't working label Aug 15, 2024
@Romazes Romazes self-assigned this Aug 15, 2024
@Martin-Molinero
Copy link
Member

Not for now

@Romazes Romazes deleted the fix-461-not-save-non-interactive-parameter-in-lean-json branch September 17, 2024 21:27
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.

Lean CLI not using sandbox server for tradier paper trading account
2 participants