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: config acl #4522

Merged
merged 3 commits into from
Mar 15, 2024
Merged

fix: config acl #4522

merged 3 commits into from
Mar 15, 2024

Conversation

jiefenghuang
Copy link
Contributor

No description provided.

Signed-off-by: jiefenghuang <[email protected]>
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 35.67%. Comparing base (05a8015) to head (004ae68).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4522       +/-   ##
===========================================
- Coverage   55.69%   35.67%   -20.02%     
===========================================
  Files         157      122       -35     
  Lines       42593    33428     -9165     
===========================================
- Hits        23722    11927    -11795     
- Misses      16234    20287     +4053     
+ Partials     2637     1214     -1423     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cmd/config.go Outdated
format.EnableACL = true
format.MinClientVersion = "1.2.0-A"
} else {
fmt.Println("cannot disable acl")
Copy link
Contributor

Choose a reason for hiding this comment

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

better return an error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think this is enough, print msg and nothing changed.

image

cmd/config.go Outdated
if enableACL := ctx.Bool(flag); enableACL != format.EnableACL {
if enableACL {
msg.WriteString(fmt.Sprintf("%s: %v -> %v\n", flag, format.EnableACL, true))
msg.WriteString(fmt.Sprintf("%s: %s -> %v\n", "min-client-version", format.MinClientVersion, "1.2.0-A"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
msg.WriteString(fmt.Sprintf("%s: %s -> %v\n", "min-client-version", format.MinClientVersion, "1.2.0-A"))
msg.WriteString(fmt.Sprintf("%s: %s -> %s\n", "min-client-version", format.MinClientVersion, "1.2.0-A"))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: jiefenghuang <[email protected]>
@jiefenghuang jiefenghuang marked this pull request as ready for review March 15, 2024 07:59
@davies davies merged commit 6db75cc into juicedata:main Mar 15, 2024
31 checks passed
@jiefenghuang jiefenghuang deleted the fix/acl-config branch April 15, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants