Code Monkey home page Code Monkey logo

deep-framework's People

Contributors

alexanderc avatar ascripnic avatar avozicov avatar ccristi avatar chris-covali avatar dragosh1011 avatar eistrati avatar gcaraman avatar grigoreme avatar mgoria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deep-framework's Issues

Refactoring unit test for deep-kernel module

Refactoring unit tests for deep-kernel module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

On local login identityId is null

I'm uing this code:

var deepSecurity = DeepFramework.Kernel.container.get('security');
deepSecurity.login('www.amazon.com', profile.identities[0].access_token, profile.user_id, (error, securityToken)=> {
]);

I'm getting this response:
image

Refactoring unit test for deep-log module

Refactoring unit tests for deep-log module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

IdentityId for local and aws environment are different cases.

IdentityId for local and aws environment are different cases. For local environment it IdentityId and for aws environmentidentityId.

Error stack trace:

LoadCredentialsException: Error on loading security credentials in deep-resource -> request. SynchronizeCognitoDatasetExceptio…
  at Request.emit(/js/lib/deep-framework.js:25:21898)
  at Request.emit(/js/lib/deep-framework.js:25:29882)
  at Request.callListeners(/js/lib/deep-framework.js:25:30423)
  at Request.<anonymous>(/js/lib/deep-framework.js:25:18895)
  at Response.AWS.CognitoSyncManager.RemoteStorage.CognitoSyncRemoteStorage.listUpdates.response(/js/lib/deep-framework.js:35:8600)
  at ? (/js/lib/deep-framework.js:34:16940)
  at Object.onFailure(/js/lib/deep-framework.js:33:11552)
  at ? (/js/lib/deep-framework.js:33:10303)
  at ? (/js/lib/deep-framework.js:34:5580)
  at ? (/js/lib/deep-framework.js:23:9821)

Fix "LoadCredentialsException: Error on loading security credentials in deep-resource -> request"

LoadCredentialsException: Error on loading security credentials in deep-resource -> request. AuthException: Error on authentic…
  at ? (/js/lib/deep-framework.js:26:25026)
  at AcceptorStateMachine.runTo(/js/lib/deep-framework.js:26:24701)
  at Request.transition(/js/lib/deep-framework.js:25:17220)
  at Request.emit(/js/lib/deep-framework.js:25:22007)
  at Request.emit(/js/lib/deep-framework.js:25:29991)
  at Request.callListeners(/js/lib/deep-framework.js:25:30532)
  at Request.<anonymous>(/js/lib/deep-framework.js:25:19004)
  at Response.<anonymous>(/js/lib/deep-framework.js:23:25810)
  at ? (/js/lib/deep-framework.js:34:5363)
  at ? (/js/lib/deep-framework.js:23:9902)

Refactoring unit test for deep-validation module

Refactoring unit tests for deep-validation module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

Refactoring unit test for deep-cache module

Refactoring unit tests for deep-cache module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

Update roadmap

  • Update roadmap priorities
  • Add short description for each feature

Refactoring unit test for deep-core module

Refactoring unit tests for deep-core module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

invokeAsync() method is not working on aws environment

When trying to make an async call to another lambda using invokeAsync() method i'm getting this error:

AccessDeniedException: User: arn:aws:sts::accountid:assumed-role/LambdaName/awslambda_959_20151123081502137 is not authorized to perform: lambda:InvokeFunction on resource: arn:aws:lambda:us-east-1:accountid:function:lambdaname]
var lambdaResource = resources.get('@microserviceIdentifie:resource:action');
lambdaResource.request(payload).invokeAsync().send((response) => {
      return callback(null, response);
    });

Refactoring unit test for deep-db module

Refactoring unit tests for deep-db module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

Refactoring unit test for deep-fs module

Refactoring unit tests for deep-fs module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

Refactoring unit test for deep-resource module

Refactoring unit tests for deep-resource module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

Benchmark Lambdas performance

Manual benchmarking (10 runs each step, min/avg/max):

  • Run with/out babel-polyfill
  • Run different lambda sizes (with some unused garbages) [x5 sizes]
  • Run different lambda sizes (use the included code) [x5 sizes]
  • Run Dynamo+S3 write with/out deep-framework

Fix "DescribeIdentityException: Error on describing cognito identity" error

DescribeIdentityException: Error on describing cognito identity us-east-1:d24896da-1658-479c-8623-69ace60acef0. AccessDeniedExc…
  at Request.<anonymous>(/js/lib/deep-framework.js:33:196)
  at Request.<anonymous>(/js/lib/deep-framework.js:32:27554)
  at ? (/js/lib/deep-framework.js:34:3149)
  at AcceptorStateMachine.runTo(/js/lib/deep-framework.js:34:2824)
  at Request.transition(/js/lib/deep-framework.js:32:27269)
  at Request.emit(/js/lib/deep-framework.js:33:121)
  at Request.emit(/js/lib/deep-framework.js:33:8100)
  at Request.callListeners(/js/lib/deep-framework.js:33:8641)
  at Request.<anonymous>(/js/lib/deep-framework.js:32:29120)
  at Response.<anonymous>(/js/lib/deep-framework.js:30:23653)

Fix "Cannot read property 'StatusCode' of null" sentry error

TypeError: Cannot read property 'StatusCode' of null
  at ? (/js/lib/deep-framework.js:26:30810)
  at AcceptorStateMachine.runTo(/js/lib/deep-framework.js:26:30485)
  at Request.transition(/js/lib/deep-framework.js:25:22908)
  at Request.emit(/js/lib/deep-framework.js:25:27762)
  at Request.emit(/js/lib/deep-framework.js:26:3737)
  at Request.callListeners(/js/lib/deep-framework.js:26:4278)
  at Request.<anonymous>(/js/lib/deep-framework.js:25:24759)
  at Response.<anonymous>(/js/lib/deep-framework.js:23:13236)
  at new LambdaResponse(/js/lib/deep-framework.js:22:31272)
  at LambdaResponse._fillStatusCode(/js/lib/deep-framework.js:23:100)

Refactoring unit test for deep-asset module

Refactoring unit tests for deep-asset module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

Running s3fs.readdirp() on local machine does not works recursively

When i'm trying to run s3fs.readdirp('/dir/') on local server i'm getting only /dir files and folders:

[ '1', '2', '3', '4']

but when i run this command on aws, i'm getting all files and folders recursively:

[
  "1/",
  "1/1.1/",
  "1/1.1/file1",
  "1/1.2/",
  "1/1.2/1.2.1/",
  "1/1.2/1.2.1/file2",
  "2/",
  "2/2.1/",
  "2/2.1/file3",
  "3/",
  "4/"
]

Refactoring unit test for deep-security module

Refactoring unit tests for deep-security module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

Refactoring unit test for deep-di module

Refactoring unit tests for deep-di module to have the same approach to create Kernel instance from config file.
Loading all services by Kernel.get(). Update/create mocks to have the same approach for all modules.

deep-fs, readdirp method is not working the right way

when i run code on local server:

let fs = this.kernel.get('fs').system;
this.fs.readdirp('/').then((files) => {
      console.log(files);
      return this.createResponse(null).send();
    }, (reason) => {
      console.log(reason);
    });

i'm getting:

[ '/tmp/system.folder/microservice.identifier/1',
  '/tmp/system.folder/microservice.identifier/1/1.1',
  '/tmp/system.folder/microservice.identifier/1/1.1/123.txt',
  '/tmp/system.folder/microservice.identifier/2',
  '/tmp/system.folder/microservice.identifier/3',
  '/tmp/system.folder/microservice.identifier/4' ]

expected:

[ '/1',
  '/1/1.1',
  '/1/1.1/123.txt',
  '/2',
  '/3',
  '/4' ]

Fix "TypeError: Cannot read property 'hasOwnProperty' of null"

  • Login to DEEP Marketplace
  • Add 'ToDo application' to Cart
  • Input valid data into 'Billing Management and AWS Credentials fields'
  • Click on 'Checkout' button and deploy the application
  • Go to 'Account' page after finishing the deploy
  • Click on 'Account'
  • Click on 'Billing Management'
  • Click in 'Payment Receipts'

BUG :

Cannot read property 'hasOwnProperty' of null error while clicking on Payment Receipts

TypeError: Cannot read property 'hasOwnProperty' of null
  at ? (/js/lib/deep-framework.js:34:3149)
  at AcceptorStateMachine.runTo(/js/lib/deep-framework.js:34:2824)
  at Request.transition(/js/lib/deep-framework.js:32:27269)
  at Request.emit(/js/lib/deep-framework.js:33:121)
  at Request.emit(/js/lib/deep-framework.js:33:8100)
  at Request.callListeners(/js/lib/deep-framework.js:33:8641)
  at Request.<anonymous>(/js/lib/deep-framework.js:32:29120)
  at Response.<anonymous>(/js/lib/deep-framework.js:23:31572)
  at new LambdaResponse(/js/lib/deep-framework.js:23:17543)
  at LambdaResponse._decodePayload(/js/lib/deep-framework.js:23:18554)

Unit tests are failing in travis without providing a detailed error output

Please refer to this PR: https://travis-ci.org/MitocGroup/deep-framework/builds/98650579

> [email protected] test /home/travis/build/MitocGroup/deep-framework/src/deep-security
> babel-node `which isparta` cover --include 'lib/**/*.js' _mocha -- 'test/**/*.js' --reporter spec --ui tdd
npm ERR! Linux 3.13.0-40-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v0.12.9/bin/node" "/home/travis/.nvm/versions/node/v0.12.9/bin/npm" "run" "test"
npm ERR! node v0.12.9
npm ERR! npm  v2.14.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test: `babel-node `which isparta` cover --include 'lib/**/*.js' _mocha -- 'test/**/*.js' --reporter spec --ui tdd`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] test script 'babel-node `which isparta` cover --include 'lib/**/*.js' _mocha -- 'test/**/*.js' --reporter spec --ui tdd'.
npm ERR! This is most likely a problem with the deep-security package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel-node `which isparta` cover --include 'lib/**/*.js' _mocha -- 'test/**/*.js' --reporter spec --ui tdd
npm ERR! You can get their info via:
npm ERR!     npm owner ls deep-security
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/MitocGroup/deep-framework/src/deep-security/npm-debug.log
[FAILED] npm run test
npm ERR! Test failed.  See above for more details.

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.