-
Notifications
You must be signed in to change notification settings - Fork 190
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
refactor(sozo): change priority order for arguments #1358
Conversation
de748c2
to
9cff026
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1358 +/- ##
==========================================
+ Coverage 65.95% 67.13% +1.17%
==========================================
Files 228 231 +3
Lines 19841 20858 +1017
==========================================
+ Hits 13087 14003 +916
- Misses 6754 6855 +101 ☔ View full report in Codecov by Sentry. |
✔️ Agree on this priority list.
|
I initially did But I think having I'm open on changing the priority order if it make sense from user perspective. |
Also I think env variables are very commonly used to alter the behavior of a program while keeping the configuration private. Which can't be done using the scarb manifest. So having the priority changed can allow one to keep dev/frequent config inside the scarb manifest which automatically configures the project for someone that pulls the code and doesn't have to setup any other thing. And the env takes precedence on CI/deploy where more sensible information should be hidden. Does this make sense to you too guys? It could be great to have a poll somewhere or a way to have a feedback from users on that. |
Yeah i think the reasoning makes sense |
My vote is for |
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.
Lgtm.
Do you mind following this up with a PR for adding tests to AccountOptions
similar to the one we have for StarknetOptions
?
Make sense, I agree. |
Sure. I had a suggestion regarding the tests in we can just have one tests which verifies that environment variables are been read, and for all other tests we can pass the arguments directly to wdyt? |
though we can do that change in follow up PR along with addition of tests in |
Thanks!
Yeah, I think as long as we can check that it'll fallback to |
fix: #1336
to be consistent with what we did for torii: #800, i think we should follow this priority, wdyt?