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

Add user commands to handler map #3918

Closed
wants to merge 1 commit into from
Closed

Add user commands to handler map #3918

wants to merge 1 commit into from

Conversation

b1ron
Copy link
Contributor

@b1ron b1ron commented Jan 1, 2024

Description

Updates the handler commands map for commands that were implemented in #1491, #3866, and #3867.

Readiness checklist

  • I added/updated unit tests (and they pass).
  • I added/updated integration/compatibility tests (and they pass).
  • I added/updated comments and checked rendering.
  • I made spot refactorings.
  • I updated user documentation.
  • I ran task all, and it passed.
  • I ensured that PR title is good enough for the changelog.
  • (for maintainers only) I set Reviewers (@FerretDB/core), Milestone (Next), Labels, Project and project's Sprint fields.
  • I marked all done items in this checklist.

@b1ron b1ron added the code/chore Code maintenance improvements label Jan 1, 2024
@b1ron b1ron self-assigned this Jan 1, 2024
@b1ron b1ron requested review from a team, henvic, rumyantseva and noisersup January 1, 2024 18:52
@b1ron b1ron added this to the Next milestone Jan 1, 2024
Copy link

codecov bot commented Jan 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f8d94bd) 75.22% compared to head (251ec24) 73.83%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3918      +/-   ##
==========================================
- Coverage   75.22%   73.83%   -1.40%     
==========================================
  Files         330      330              
  Lines       25665    25677      +12     
==========================================
- Hits        19306    18958     -348     
- Misses       5210     5588     +378     
+ Partials     1149     1131      -18     
Files Coverage Δ
internal/handler/commands.go 100.00% <100.00%> (ø)

... and 26 files with indirect coverage changes

Flag Coverage Δ
filter-false ?
filter-true 70.51% <100.00%> (-1.87%) ⬇️
hana-1 ?
integration 70.51% <100.00%> (-1.90%) ⬇️
mongodb-1 5.22% <0.00%> (-0.01%) ⬇️
mysql-1 ?
postgresql-1 50.77% <100.00%> (-14.68%) ⬇️
postgresql-2 52.19% <100.00%> (+0.01%) ⬆️
postgresql-3 50.20% <100.00%> (-0.06%) ⬇️
sqlite-1 49.91% <100.00%> (-14.46%) ⬇️
sqlite-2 51.27% <100.00%> (+<0.01%) ⬆️
sqlite-3 49.33% <100.00%> (-0.03%) ⬇️
unit 30.79% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@b1ron b1ron marked this pull request as ready for review January 1, 2024 18:56
@b1ron b1ron requested a review from a team as a code owner January 1, 2024 18:56
@b1ron b1ron requested a review from AlekSi January 1, 2024 18:56
@b1ron b1ron enabled auto-merge (squash) January 1, 2024 18:56
Comment on lines +80 to +83
"createUser": {
Handler: h.MsgCreateUser,
Help: "Creates a new user on the database where you run the command.",
},
Copy link
Member

Choose a reason for hiding this comment

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

Those commands are listed down below inside of EnablenewAuth if, so I assume they should be only accessible when running FerretDB with -test-enable-new-auth, i can be wrong though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct indeed!

@b1ron
Copy link
Contributor Author

b1ron commented Jan 1, 2024

Commands exist with --test-enable-new-auth flag.

@b1ron b1ron closed this Jan 1, 2024
auto-merge was automatically disabled January 1, 2024 20:14

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/chore Code maintenance improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants