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

Migrate to adonis 5 #39

Conversation

RodolfoSilva
Copy link

@RodolfoSilva RodolfoSilva commented Sep 6, 2020

  • Update project configs to be more like adonis providers
  • Make sure the provider works with adonis 5
  • Remove human-interval
  • Update tests
  • Update docs
  • Update coverage

@RodolfoSilva RodolfoSilva changed the title WIP: Migrate to adonis 5 Migrate to adonis 5 Sep 6, 2020
@RodolfoSilva RodolfoSilva marked this pull request as ready for review September 6, 2020 22:03
@RodolfoSilva
Copy link
Author

@HigoRibeiro @diego3g @pellizzetti

I don't know why, but the coveralls keep sending this message:

yarn run v1.22.5
$ nyc npm test && nyc report --reporter=text-lcov | coveralls
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1599444753514-0.44342638581364535/node but npm is using /opt/hostedtoolcache/node/12.18.3/x64/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> @rocketseat/adonis-bull@0.2.2 pretest /home/runner/work/adonis-bull/adonis-bull
> npm run lint

npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1599444753514-0.44342638581364535/node but npm is using /opt/hostedtoolcache/node/12.18.3/x64/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> @rocketseat/adonis-bull@0.2.2 lint /home/runner/work/adonis-bull/adonis-bull
> eslint . --ext=.ts


> @rocketseat/adonis-bull@0.2.2 test /home/runner/work/adonis-bull/adonis-bull
> node japaFile.js



Provider
  ✓ BullProvider (70ms)

Bull
  ✓ should add a new job (13ms)
  ✓ should add a new job with events inside Job class (1ms)
  ✓ should schedule a new job (9ms)
  ✓ shouldn't schedule when time is invalid (1ms)

 PASSED 

total         : 5
passed        : 5
duration      : 96ms
-----------------------|---------|----------|---------|---------|-------------------
File                   | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-----------------------|---------|----------|---------|---------|-------------------
All files              |   75.81 |    56.52 |      50 |   79.66 |                   
 adonis-bull           |     100 |      100 |     100 |     100 |                   
  japaFile.js          |     100 |      100 |     100 |     100 |                   
 adonis-bull/providers |   90.91 |    66.67 |   66.67 |   90.91 |                   
  BullProvider.ts      |   90.91 |    66.67 |   66.67 |   90.91 | 30                
 adonis-bull/src       |   70.21 |    52.94 |   44.44 |      75 |                   
  BullManager.ts       |   70.21 |    52.94 |   44.44 |      75 | 60-77,97,113      
-----------------------|---------|----------|---------|---------|-------------------

/home/runner/work/adonis-bull/adonis-bull/node_modules/coveralls/bin/coveralls.js:19
      throw err;
      ^
Bad response: 422 {"message":"Couldn't find a repository matching this job.","error":true}
(Use `node --trace-uncaught ...` to show where the exception was thrown)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
##[error]Process completed with exit code 1.

Can anyone help me with this? I think may need to adjust some settings.

.editorconfig Outdated Show resolved Hide resolved
@HigoRibeiro
Copy link
Contributor

First, thanks @RodolfoSilva for your contribution.

I'll look at this throughout the week. 🚀

@RodolfoSilva
Copy link
Author

Thanks @HigoRibeiro

@LeCoupa
Copy link
Contributor

LeCoupa commented Nov 9, 2020

Do we have an ETA to merge this? 🙂

@waldandrade
Copy link

@RodolfoSilva falta muito para disponibilizar essa adaptação? rsrsrs

@RodolfoSilva
Copy link
Author

@waldandrade eu acredito que a Rocketseet abandonou esse projeto, ou tem andado bastante ocupada com outras demandas e não tem sobrado tempo para olhar a lib(Mais provável).

Ae agora só eles para te responder mesmo.

@waldandrade
Copy link

@RodolfoSilva obrigado pela resposta rápida! :D Conhece alguma outra opção de scheduler para AdonisV5?

@RodolfoSilva
Copy link
Author

@waldandrade eu acabei criando um provider dentro do projeto com o Bull mesmo. Mas vc pode criar um arquivo na pasta start, utilizando o comando node ace make:prldfile scheduler e utilizar o node-cron nele se for algo simples.

@HigoRibeiro
Copy link
Contributor

Fala galera, beleza?
Cara não abandonamos o projeto não!

Um pouco de várias coisas contribuíram para ainda não dar o merge!!
@RodolfoSilva será que conseguimos conversar no Discord? Higo Ribeiro#5513

Se não for possível eu te mando um e-mail, abraços

@waldandrade
Copy link

@HigoRibeiro que bom! Espero que dê tudo certo.

@waldandrade
Copy link

@RodolfoSilva realmente estou precisando utilizar algumas funções coisas mais complexas. Teria como me ensinar como configurar esta lib no Adonis5?

@RodolfoSilva
Copy link
Author

@waldandrade bom dia, conversei com @HigoRibeiro ontem. Alinhamos algumas coisas, acredito que nos próximos dias teremos uma release. Só preciso conseguir um tempo aqui para fazer esses ajustes.

@LeCoupa
Copy link
Contributor

LeCoupa commented Nov 24, 2020

Great @RodolfoSilva waiting for the release :)

@rubenmoya
Copy link

Is there anything missing to have this merged? How can I help?

@ammezie
Copy link

ammezie commented Dec 29, 2020

Any ETA as to when this can be merged?

},
"files": [
"./node_modules/@adonisjs/core/build/adonis-typings/index.d.ts",
"./node_modules/@adonisjs/redis/build/adonis-typings/index.d.ts",

Choose a reason for hiding this comment

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

Should this be excluded after this? eaaaecd

@ashokgelal
Copy link

ashokgelal commented Jan 18, 2021

I needed this package in one of the apps I'm working on and published it as a separate npm package as a stop gap solution. If you are in the same situation, please help yourself: https://www.npmjs.com/package/@ashokgelal/adonis-bull

I'll remove the package once this merge gets approved and published. Thanks a lot to @RodolfoSilva for this migration. You are a hero :)

@LeCoupa
Copy link
Contributor

LeCoupa commented Jan 19, 2021

Thanks @ashokgelal, I will use your package. Any ETA for this PR to be merged? Many companies rely on it. :/

@RodolfoSilva
Copy link
Author

Thanks @ashokgelal 👍🏽

@fhugoduarte
Copy link

Hi @RodolfoSilva 🤗

First thx for the contrib! We are reviewing this PR, but we have some problems to make it work, as soon as we finish.
We are doing our best to make the merger happen as soon as possible

@fhugoduarte fhugoduarte changed the base branch from master to feature/adonis5-alpha January 19, 2021 20:55
@HigoRibeiro HigoRibeiro mentioned this pull request Jan 19, 2021
5 tasks
@fhugoduarte
Copy link

The work done so far has been very nice!
We need to make some small adjustments to launch the alpha version, we will publish soon.

So, we will need your help to test this new version when it becomes available. You can follow the progress on this issue: #50

@fhugoduarte fhugoduarte merged commit 1b06205 into Rocketseat:feature/adonis5-alpha Jan 19, 2021
@RodolfoSilva RodolfoSilva deleted the feature/migrate-to-adonis-5 branch January 19, 2021 21:19
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.

None yet

9 participants