profile
viewpoint

grp/XNAnimation 6

(very) early experiment in animations

jasonprado/freewheel 3

A funny way to embed functionality in easily shareable media

jasonprado/coopcycle-app 0

CoopCycle native app

jasonprado/kubpractice 0

Kubernetes practice explorations

jasonprado/PixelDriver 0

The Pixel Heart Driver

jasonprado/strapi 0

🚀 Open source Node.js Headless CMS to easily build customisable APIs

push eventthelocalselma/coopcycle-web

Jason Prado

commit sha 9e1128611fe2514ae55eba48435c7d4f3861b88d

Allow configuring S3 client by env

view details

Jason Prado

commit sha 69ebde6d241a96f3be45c7402eb0402ef9a70e84

gitignore .env.local

view details

Jason Prado

commit sha f82f4c9b985248c76f09f7577f203fa539e88e72

Hack container startup

view details

Jason Prado

commit sha b800d6f678c1bacbe9673f6033ab8231837836f3

Add Tiltfile for working with tilt.dev

view details

push time in 3 days

push eventthelocalselma/coopcycle-web

Jason Prado

commit sha e5dcb1778804d22cdeac41314c44c1aac527cae6

Add create-schema.sh script

view details

push time in 6 days

push eventthelocalselma/coopcycle-web

Jason Prado

commit sha 3fb41efe97c80389fd8b4e695bb2ad1dfb78c876

Combine with local development server

view details

push time in 8 days

push eventthelocalselma/coopcycle-web

Jason Prado

commit sha 61425843b42b1f7e0d2391b2c75596c0466c93b8

Exploration into deploying resources

view details

push time in 10 days

issue commentstrapi/strapi

Multiple image uploads to Media Library consuming huge memory results in Server restarts on DEV/UAT

On a related note, I think strapi.plugins["upload"].services["upload"].uploadFileAndPersist should support streams as well as buffers. I have an endpoint that fetches a 100mb file from a remote server and right now it has to be pulled into a Buffer, which I believe has to be in-memory.

Should a Stream API for uploads be a separate issue or should the discussion stay here?

vinod77

comment created time in 24 days

issue commentstrapi/strapi

Error log is suppressed in unit test when following unit testing guide

Thanks for looking. I'm using a custom JestEnvironment to set up the Strapi object, so there's space to set up the logger if it needs to be configured.

jasonprado

comment created time in 24 days

issue commentstrapi/strapi

Error log is suppressed in unit test when following unit testing guide

A console.log appears with the jest boilerplate around it:

  ● Console

    console.log
      <the message appears here>
jasonprado

comment created time in 25 days

issue openedstrapi/strapi

Can't place test files in paths under api/

Describe the bug When you place a test file, e.g. my-object.test.js, in the application source tree at a location like api/my-object/services/__tests__/my-object.test.js, the code in my-object.test.js is loaded when Strapi server starts.

One example of a glob that loads all JS files, including in directories called __tests__ is here: https://github.com/strapi/strapi/blob/master/packages/strapi/lib/core/load-apis.js#L18

Steps to reproduce the behavior

  1. Create a collection type called my-object
  2. Place a test file at ``api/my-object/services/tests/my-object.test.js`

Expected behavior The test file is ignored by the production server

System

  • Node.js version: v12
  • Strapi version: 3.0.5
  • Database: N/A
  • Operating system: N/A

created time in a month

PR opened strapi/strapi

Add sqlite details to unit testing guide

Description of what you did:

Added sqlite3 to the list of modules to install for testing, as the guide assumes it is there. In the configuration I also dropped the pool size to 1; I was consistently hitting sqlite3 database lock errors until I did this.

+5 -3

0 comment

1 changed file

pr created time in a month

create barnchjasonprado/strapi

branch : unit-test-guide

created branch time in a month

push eventjasonprado/strapi

soupette

commit sha 3809d057be3fc1f9b8175ecf81de9ac8d6b28153

Improve delete asset workflow Signed-off-by: soupette <cyril.lpz@gmail.com>

view details

soupette

commit sha fa46dd4f4cda7283fba160144d2fec2f91f65137

Merge branch 'master' of github.com:strapi/strapi into chore/ml-delete-assets

view details

soupette

commit sha cf762e9bf8205b3890d1b06bf38b4fd5763b3a50

Fixes #7108 Signed-off-by: soupette <cyril.lpz@gmail.com>

view details

DMehaffy

commit sha 28b66d284f6ef3caa6aeb818f8ae25082b13fef2

Add more information about the parser middleware configuration (#7253) * Add more information about the parser middleware configuration Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com> * fix integer case Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>

view details

Marius Wallin

commit sha d8a39da12bbdf76cedd4512056d60557e643dc92

Update digitalocean-one-click.md (#7255) Based on what is created in version 3.1 from the Droplet the default folder is strapi-development and the .env is in the root of this folder

view details

Derrick Mehaffy

commit sha 34c90c9658b83fe05a13d87061453842fa364731

Remove session options from docs that no longer work Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com> https://github.com/strapi/strapi/issues/6421

view details

Jim LAURIE

commit sha b047dbfb79c32f45588bbd08639e00d2adf518c2

Merge pull request #7300 from strapi/docs/sessionClean Remove session options from docs that no longer work

view details

Derrick Mehaffy

commit sha 39e76716d22a26f7694960dcecefa26cc05c9e93

fix typo Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>

view details

Darshan Gada

commit sha 862f2c386b43a87d8e4c1d32b9928d89a3d499cf

FIX: Broken links to email configurations & middlewares Signed-off-by: Darshan Gada <gadadarshan@gmail.com>

view details

Jim LAURIE

commit sha 4db3d1a9c048d50c32f49f053fad9356aa62f7e7

Merge pull request #7342 from strapi/docs/admin/7322 Fix custom admin guide typo

view details

Rémi de Juvigny

commit sha dbaf04286acd2d7b65cd322f601abc12a6fb2960

Fix local upload provider docs

view details

DMehaffy

commit sha f179a1cae9de0bbc5794551fe71abd523d94ab70

Fix docs for loading ORM plugins (#7356) Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>

view details

Rémi de Juvigny

commit sha 5fcbcaa2f5b7cd73647328acba07eea803b2ec61

Merge branch 'master' into local-upload-readme

view details

ScottAgirs

commit sha c3efac898d2915d43c72644d8546e86bddda4ab2

[update README] Signed-off-by: ScottAgirs <scott@ijs.to>

view details

ScottAgirs

commit sha e06f3647ff4936264a9a7b6c895cd71a74974c28

[update] package description Signed-off-by: ScottAgirs <scott@ijs.to>

view details

Diego Albitres

commit sha 617df05d6bbebf33d1a8c67a25df4c869357d7ec

Fix favicon link in docs Signed-off-by: Diego Albitres <diego.albitres@gmail.com>

view details

dependabot[bot]

commit sha 7113ebd170966300f7b5f9460e37c0c42a49f14b

Bump rollup-plugin-svg from 1.0.1 to 2.0.0 Bumps [rollup-plugin-svg](https://github.com/antony/rollup-plugin-svg) from 1.0.1 to 2.0.0. - [Release notes](https://github.com/antony/rollup-plugin-svg/releases) - [Commits](https://github.com/antony/rollup-plugin-svg/compare/v1.0.1...v2.0.0) Signed-off-by: dependabot[bot] <support@github.com>

view details

Alexandre BODIN

commit sha 0b8bd2c98f34b82b0a774985ea856fce005e9763

Merge pull request #7373 from remi2j/local-upload-readme Fix strapi-provider-upload-local readme

view details

Jim LAURIE

commit sha 95d3f426104ba5e5f662640e120f1705360d1c9d

Merge pull request #7368 from dr5hn/patch-2 FIX: Broken links to email configurations & middlewares

view details

Jim LAURIE

commit sha 980fbc4198855df3ba1f649fd4c578d5f75bae53

Merge pull request #7394 from dalbitresb12/docs/fix-favicon Fix favicon link in docs

view details

push time in a month

issue openedstrapi/strapi

Error log is suppressed in unit test when following unit testing guide

Describe the bug I’m following the unit testing guide and I hit an error because I didn’t have sqlite3 installed. No error was printed at the command line and I had to console.log from inside the framework to see what was wrong.

Steps to reproduce the behavior

  1. Follow the unit testing guide. Add a database.json for the test env that references the sqlite client.
  2. Do not install the npm module sqlite3
  3. Copy in the test helper and the app test outlined in the guide.
  4. yarn run test

Expected behavior These lines in the framework are executing, thus an error should be printed:

        strapi.log.error('The client `' + connection.settings.client + '` is not installed.');
        strapi.log.error(
          'You can install it with `$ npm install ' + connection.settings.client + ' --save`.'
        );

Actual behavior A callstack referencing knex.js is printed but the log messages are not visible.

Code snippets The line in strapi code that I expect an error from: https://github.com/strapi/strapi/blob/master/packages/strapi-connector-bookshelf/lib/knex.js#L79.

System

  • Node.js version: v12.8.1
  • NPM version: yarn 1.22.4
  • Strapi version: 3.0.5
  • Database: sqlite
  • Operating system: Debian linux (running in docker desktop on macOS)

Additional context I don't know if jest is swallowing the error or if strapi.log.error isn't emitting it. I followed the guide so I'd expect it to work. Also the guide should probably mention installing sqlite3. Thanks!

created time in a month

startedstrapi/strapi

started time in a month

push eventjasonprado/kubpractice

Jason Prado

commit sha a26e353e4e4905f691b2155c388174318efafb7d

Update README

view details

push time in a month

push eventjasonprado/kubpractice

Jason Prado

commit sha c344f30c3c563dc1a67515c1290a7c5a9c0f2374

Add kubsymfony example

view details

push time in a month

push eventjasonprado/kubpractice

Jason Prado

commit sha 6fd14cdb5f2fa3fa15c435de745afb94d8e6e627

Clean up kubphp docker-compose

view details

push time in a month

push eventjasonprado/kubpractice

Jason Prado

commit sha 9fad3c532f74cac07ef3eefcb4cfc60c6941c39e

Change devcontainer base to php Note that after this change, the username for working in the container will be `vscode` not `node`

view details

push time in a month

push eventjasonprado/kubpractice

Jason Prado

commit sha 04a94c55c8dfe9d60110938b8b63855bdd899c7f

Serve static resources through nginx

view details

push time in a month

push eventjasonprado/kubpractice

Jason Prado

commit sha 2fc81dcf754355cb985060fc46afff00a0585fe0

Root README

view details

push time in a month

push eventjasonprado/kubpractice

Jason Prado

commit sha be879a7e92702f5d9223579f0b556bf562b4a686

Root README

view details

push time in a month

create barnchjasonprado/kubpractice

branch : master

created branch time in a month

created repositoryjasonprado/kubpractice

Kubernetes practice explorations

created time in a month

push eventthelocalselma/coopcycle-web

Jason Prado

commit sha 2e878288c17f45d6ed9fa6848b3cf6f6f6f49e3f

Unstupid omni.properties

view details

Jason Prado

commit sha 1f56273ad88b50b96240a54f1cc8e1025e5bf80c

HACK: Comment out .env loading in PHP

view details

push time in a month

create barnchthelocalselma/coopcycle-web

branch : deployment_exploration

created branch time in a month

push eventjasonprado/strapi

Jason Prado

commit sha 95841162f25df5bcd409a1317b2270d6ad8f605b

Show error.message || error on failed command Some exceptions, like module inclusion errors, don't generate nice Error objects with message defined. This causes hard-to-debug failures. When encountering an error with no message, show the whole Error object. Signed-off-by: Jason Prado <jason.prado@gmail.com>

view details

push time in a month

PR opened strapi/strapi

Show error.message || error on failed command

Some exceptions, like module inclusion errors, don't generate nice Error objects with message defined. This causes hard-to-debug failures. When encountering an error with no message, show the whole Error object.

<!-- Hello 👋 Thank you for submitting a pull request.

To help us merge your PR, make sure to follow the instructions below:

  • Create or update the documentation. (Should be made against the documentation branch)
  • Create or update the tests.
  • Refer to the issue you are closing in the PR description - fix #issue
  • Specify if the PR is in WIP (work in progress) state or ready to be merged

Please ensure you read through the Contributing Guide: https://github.com/strapi/strapi/blob/docs/contribguide/CONTRIBUTING.md -->

Description of what you did:

In the strapi executable if a subcommand throws an error the driver prints error.message. But some errors don't have a message and this leads to a bad error message in the console. I print error.message || error instead.

+1 -1

0 comment

1 changed file

pr created time in a month

create barnchjasonprado/strapi

branch : command_error_stack

created branch time in a month

fork jasonprado/strapi

🚀 Open source Node.js Headless CMS to easily build customisable APIs

https://strapi.io

fork in a month

PR opened coopcycle/coopcycle-app

Update README.md directions

I was confused by a few steps of the initial build process so I clarified them a bit.

+24 -11

0 comment

1 changed file

pr created time in 2 months

create barnchjasonprado/coopcycle-app

branch : update_readme

created branch time in 2 months

push eventjasonprado/canvas-browserify

Jason Prado

commit sha c1ac3922b7d007c1d5bcd162c3b7471c6a1a20a5

updating to canvas@2.6.1

view details

push time in 2 months

create barnchjasonprado/canvas-browserify

branch : upgrade_canvas

created branch time in 2 months

more