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

Handle create and drop commands in Hana handler #2458

Merged
merged 6 commits into from Apr 26, 2023

Conversation

polyal
Copy link
Contributor

@polyal polyal commented Apr 17, 2023

Description

Closes #{issue_number}.

Readiness checklist

  • I added/updated unit tests.
  • I added/updated integration/compatibility tests.
  • 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), Labels, Project and project's Sprint fields.
  • I marked all done items in this checklist.

@CLAassistant
Copy link

CLAassistant commented Apr 17, 2023

CLA assistant check
All committers have signed the CLA.

@mergify mergify bot assigned polyal Apr 17, 2023
@polyal polyal marked this pull request as ready for review April 17, 2023 19:17
@polyal polyal requested a review from AlekSi as a code owner April 17, 2023 19:17
@polyal polyal changed the title Create Delete Hana Impl Implemented Create and Delete handlers for Hana Apr 17, 2023
@AlekSi AlekSi added the trust PRs that can access Actions secrets label Apr 17, 2023
@AlekSi AlekSi added this to the v1.1.0 milestone Apr 18, 2023
@AlekSi
Copy link
Member

AlekSi commented Apr 18, 2023

@polyal Please sign our CLA by clicking a button in that comment: #2458 (comment)

@AlekSi AlekSi changed the title Implemented Create and Delete handlers for Hana Handle create and drop commands in Hana handler Apr 18, 2023
Copy link
Member

@AlekSi AlekSi left a comment

Choose a reason for hiding this comment

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

LGTM overall, just a few comments

internal/handlers/hana/hanadb/collections.go Outdated Show resolved Hide resolved
internal/handlers/hana/hanadb/collections.go Outdated Show resolved Hide resolved
internal/handlers/hana/hanadb/databases.go Outdated Show resolved Hide resolved
internal/handlers/hana/hanadb/hanadb.go Show resolved Hide resolved
@polyal polyal requested a review from AlekSi April 19, 2023 15:08
@AlekSi AlekSi enabled auto-merge (squash) April 21, 2023 19:43
AlekSi
AlekSi previously approved these changes Apr 21, 2023
@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

Merging #2458 (6d7166f) into main (4c80783) will increase coverage by 0.93%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2458      +/-   ##
==========================================
+ Coverage   25.70%   26.64%   +0.93%     
==========================================
  Files         388      403      +15     
  Lines       18688    19955    +1267     
==========================================
+ Hits         4804     5317     +513     
- Misses      13347    14073     +726     
- Partials      537      565      +28     
Impacted Files Coverage Δ
internal/handlers/hana/hanadb/collections.go 0.00% <0.00%> (ø)
internal/handlers/hana/hanadb/databases.go 0.00% <0.00%> (ø)
internal/handlers/hana/hanadb/hanadb.go 0.00% <0.00%> (ø)
internal/handlers/hana/msg_create.go 0.00% <0.00%> (ø)
internal/handlers/hana/msg_drop.go 0.00% <0.00%> (ø)
internal/handlers/hana/msg_dropdatabase.go 0.00% <0.00%> (ø)

... and 24 files with indirect coverage changes

Flag Coverage Δ
integration 5.07% <0.00%> (?)
mongodb 5.07% <0.00%> (?)
unit 25.23% <0.00%> (-0.47%) ⬇️

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

Copy link
Contributor

@chilagrow chilagrow left a comment

Choose a reason for hiding this comment

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

Great work.

I'm seeing linter warning, could you fix that please 🤗

bin/task lint
task: [lint] bin/golangci-lint run --config=.golangci.yml
Error: internal/handlers/hana/hanadb/hanadb.go:58:96: Comment should end in a period (godot)
task: Failed to run task "lint": exit status 1
task: Failed to run task "lint": exit status 1
// Returns one of the errors above or the original error if the formatted version doesn't exist
                                                                                               ^
Error: Process completed with exit code 201.

auto-merge was automatically disabled April 24, 2023 16:33

Head branch was pushed to by a user without write access

@polyal polyal requested a review from chilagrow April 24, 2023 16:34
@polyal polyal requested a review from AlekSi April 24, 2023 16:34
@chilagrow chilagrow enabled auto-merge (squash) April 25, 2023 03:12
Copy link
Contributor

@w84thesun w84thesun left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@rumyantseva rumyantseva left a comment

Choose a reason for hiding this comment

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

LGTM

@chilagrow chilagrow merged commit 438fcea into FerretDB:main Apr 26, 2023
21 of 25 checks passed
@rumyantseva rumyantseva added the code/feature Some user-visible feature is not implemented yet label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/feature Some user-visible feature is not implemented yet trust PRs that can access Actions secrets
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

8 participants