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

#21: Refactored repo for consistency #24

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

rishavvajpayee
Copy link
Contributor

Task List

  • Use the word DiceDB and not Dice everywhere. There are variable and config places where the word Dice is used.

  • Rename config REQUEST_LIMIT to REQUEST_LIMIT_PER_MIN.

  • Rename config REQUEST_WINDOW to REQUEST_WINDOW_SEC.

  • Remove package internals/cmds, and move the struct to httpServer.go.

    Was facing cyclic imports issue so moved inside util/cmds/cmds.go for now.

  • Rename the endpoint /cli to /shell/exec. (will make the change in the FE repo too.)

  • Standardize all error messages with respect to casing. Change all to lowercase.

  • Change filename: server/httpServer.go -> server/http.go.

  • Update the errorResponse function to use JSON marshalling instead of string formatting.

  • Use slog everywhere instead of a mix of log and slog.

  • Rename file pkg/util/helpers.go -> util/httpHelper.go.

Copy link
Contributor

@lucifercr07 lucifercr07 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for contributing.

@lucifercr07 lucifercr07 merged commit b42d332 into DiceDB:master Oct 4, 2024
2 checks passed
@lucifercr07 lucifercr07 mentioned this pull request Oct 5, 2024
10 tasks
yashbudhia pushed a commit to yashbudhia/playground-mono that referenced this pull request Oct 6, 2024
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.

2 participants