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

Fixing Linters and tests in file-stores (ftp, sftp, s3) #1262

Closed
wants to merge 17 commits into from

Conversation

coolwednesday
Copy link
Contributor

@coolwednesday coolwednesday commented Dec 3, 2024

  • prequisite to closing Fix Pipeline for external datasources #964
  • Some methods previously included required a running container for validation. These methods have been temporarily removed and, if needed, their mocking will be addressed separately in a future PRs.

Checklist:

  • I have formatted my code using goimport and golangci-lint.
  • All new code is covered by unit tests.
  • This PR does not decrease the overall code coverage.
  • I have reviewed the code comments and documentation for clarity.

Thank you for your contribution!

Umang01-hash
Umang01-hash previously approved these changes Dec 4, 2024
pkg/gofr/datasource/file/ftp/fs.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/file/ftp/fs_test.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/file/s3/file.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/file/s3/file_parse.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/file/s3/fs.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/file/s3/fs_dir.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/file/s3/fs_dir.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/file/s3/fs_dir.go Show resolved Hide resolved
pkg/gofr/datasource/file/s3/interface.go Outdated Show resolved Hide resolved
Copy link
Member

@aryanmehrotra aryanmehrotra left a comment

Choose a reason for hiding this comment

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

Lets create 3 different PRs.

@@ -80,7 +84,7 @@ func (f *fileSystem) Connect() {
var status string

ftpBuckets := []float64{.05, .075, .1, .125, .15, .2, .3, .5, .75, 1, 2, 3, 4, 5, 7.5, 10}
f.metrics.NewHistogram(appFtpStats, "Response time of File System operations in milliseconds.", ftpBuckets...)
f.metrics.NewHistogram(appFTPStats, "Response time of File System operations in milliseconds.", ftpBuckets...)
Copy link
Member

Choose a reason for hiding this comment

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

time should be in microseconds as we are exporting time in microseconds

Copy link
Member

@aryanmehrotra aryanmehrotra left a comment

Choose a reason for hiding this comment

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

Lets create 3 different PRs.

@@ -20,9 +18,23 @@ import (
file "gofr.dev/pkg/gofr/datasource/file"
)

const (
TypeFile = "file"
Copy link
Member

Choose a reason for hiding this comment

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

why exported?

@aryanmehrotra
Copy link
Member

Closing as separated PRs are being created.

@ccoVeille
Copy link
Contributor

ccoVeille commented Dec 5, 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.

5 participants