Code Monkey home page Code Monkey logo

bfs.rb's People

Contributors

ajn avatar andyborn avatar dependabot[bot] avatar dim avatar mxmcherry avatar vrih avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bfs.rb's Issues

AWS file uploads are never abandoned when local writing fails

When writing a file for upload to S3 exceptions in the file writing process are ignored, causing incomplete files to be uploaded to S3. Unless specifically requested otherwise, e.g. for a stream writer where getting some data up is better than no data, any exception in the Tempwriter should cause feed upload to be abandoned.

https://github.com/bsm/bfs.rb/blob/master/s3/lib/bfs/bucket/s3.rb#L94

There is also similar logic in FeedX so it may be that this needs to be fixed in 2 places.

S3 - softer options: make it be able to consume ENV instead of every param passed in query

https://github.com/bsm/bfs.rb/blob/master/s3/lib/bfs/bucket/s3.rb#L159

BFS.register('s3') do |url|
  params = CGI.parse(url.query.to_s)

  BFS::Bucket::S3.new url.host,
    region: params.key?('region') ? params['region'].first : nil,
    sse: params.key?('sse') ? params['sse'].first : nil,
    access_key_id: params.key?('access_key_id') ? params['access_key_id'].first : nil,
    secret_access_key: params.key?('secret_access_key') ? params['secret_access_key'].first : nil,
    acl: params.key?('acl') ? params['acl'].first : nil,
    storage_class: params.key?('storage_class') ? params['storage_class'].first : nil
end

I'd say, let's do smth like attrs.compact there?

This way, it will be consistent with AWS gem(s), which can accept ENV vars like access/secret key.

I can PR it (but without the .compact method unless activesupport is included here), should I?

SCP.ls returning erroneous results on large responses

When stdout returns a large amount of data it may be split into multiple on_data responses. When that happens a line may be split between 2 on_data calls. We're processing each of these blocks individually, which causes us to have unexpected data at the boundaries. We will likely need to buffer the data and only process based on newline boundaries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.