profile
viewpoint
Kelvin Stinghen kelvinst @Teamweek Curitiba - PR - Brazil

ateliware/triplex 316

Database multitenancy for Elixir applications!

chicks/devise_aes_encryptable 24

Adds AES encryption to Devise

aramisf/caravan 2

Aplicação da nossa caravana da consciência financeira

kelvinst/24pullrequests 1

Giving back little gifts of code for Christmas

kelvinst/agile-rails-tutorial 1

Tutorials projects from Agile Web Develpmento With Rails - 4th Edition

kelvinst/ant4eclipse 1

ant4eclipse

kelvinst/anteater 1

Programming ant builds with js!

kelvinst/anteater-belly 1

Convert scripts from ant to anteater.

startedburrito-elixir/burrito

started time in a month

push eventkelvinst/dotfiles

kelvinst

commit sha 06d5f91cb5a9b87f1d8f44eabdccc91c7d14ca54

Removing useless files and documenting

view details

push time in a month

issue commentexercism/elixir

Forth exercise is not unlocking

Actually took the liberty and already opened it, hope that's ok 😁

kelvinst

comment created time in 2 months

PR opened exercism/elixir

Removing dynamic-dispatch from the list of prerequisites for forth

Fixes #951

The dynamic dispatch exercise is still a WIP, so we can make it a prerequisite for the forth exercise.

+1 -2

0 comment

1 changed file

pr created time in 2 months

push eventkelvinst/elixir-1

Kelvin Stinghen

commit sha c2d4f7547726394c1281bd915f22375262e2e379

Removing dynamic-dispatch from the list of prerequisites for forth Fixes #951 The dynamic dispatch exercise is still a WIP, so we can make it a prerequisite for the forth exercise.

view details

push time in 2 months

fork kelvinst/elixir-1

Exercism exercises in Elixir.

https://exercism.org/tracks/elixir

fork in 2 months

issue commentexercism/elixir

Forth exercise is not unlocking

BTW, I can open a PR for that if you want.

kelvinst

comment created time in 2 months

issue commentexercism/elixir

Forth exercise is not unlocking

Cool! Thanks for all the work maintaining this @angelikatyborska, you guys rock!

kelvinst

comment created time in 2 months

issue openedexercism/elixir

Forth exercise is not unlocking

Not sure if this is a track specific bug or a platform one, but I checked 3 times already and it looks like even though I completed all exercises required to unlock the forth exercise, it still says I didn't unlock it.

Screen Shot 2021-10-06 at 07 52 11

created time in 2 months

issue commentateliware/triplex

Running tenant migrations without Mix for apps deployed via mix release

@haizop definitely! A PR with a guide for that is totally welcome. Will leave this issue open to remember to do exactly that.

haizop

comment created time in 2 months

issue commentateliware/triplex

Running tenant migrations without Mix for apps deployed via mix release

Thanks for the report @haizop! Here are your answers:

Is it possible to migrate tenants using Triplex via eval on a release?

Should be possible, as it is basically doing pretty much the same that is done on your migrate function, with some extra options to run the migrations on the tenant prefixes.

Is there a known root cause for this issue?

By looking at the error, looks like the Repo is not started by the time Triplex.all is called, so it might be something to do with that. My guess is that your migrate function works because all the code that actually do something to DB is inside the Ecto.Migrator.with_repo, and by looking at that function you can see that they forcefully start the repo there. My suggestion is that you do the same manually like it's done there: https://github.com/elixir-ecto/ecto_sql/blob/master/lib/ecto/migrator.ex#L125

Is there a recommended approach for using Triplex with Mix releases in general?

There is nothing really specific to Triplex, the thing is that you kinda need to know some of the inner workings of ecto to actually make it work correctly, and that's an Ecto thing, not just specific to Triplex.

haizop

comment created time in 2 months

issue commentateliware/triplex

Triplex.create is too slow for tests

Besides the open issues, do you have a roadmap for future versions somewhere?

Nope, the open issues are the roadmap basically. But I'm planning to get some time this quarter to build a new major release for triplex, as there are multiple breaking changes that we want to release (not promising anything though).

So if you manage to have any idea of how to solve this problem that you want to try out, let's discuss it here, and maybe work on a PR for that.

I want to try out the dump/load strategy that I mentioned a couple years ago too. Let's see if I get any free time someday, but if you have other ideas or want to try that out as well, feel free to do so!

dustinfarris

comment created time in 2 months

issue commentateliware/triplex

Triplex.create is too slow for tests

Hello @thiagomajesk. There is no plan for this in the near future. But feel free to investigate it further and suggest options for it here.

One option for TenantCase would be to seed the database with some tenants before the whole test suite and use those on your tests.

dustinfarris

comment created time in 2 months

PR opened marciol/inspector

Changing the `i` macro to a function

This way users don't have to require Inspector to use it, just straight put Inspector.i and be happy

As a bonus, I added the stacktrace to the options printed

+12 -21

0 comment

1 changed file

pr created time in 2 months

push eventkelvinst/inspector

Kelvin Stinghen

commit sha f8a77856249e2b746cb9e0c9a29774e26160d5cd

Changing the `i` macro to a function This way users don't have to `require Inspector` to use it, just straight put `Inspector.i` and be happy As a bonus, I added the `stacktrace` to the options printed

view details

push time in 2 months

fork kelvinst/inspector

A simple tool to manage inspect debugger

fork in 2 months

issue commentrrrene/credo

Function with cond is "too complex"

Also worth mentioning that you could use # credo:disable-for-next-line Credo.Check.Refactor.CyclomaticComplexity before the function head and Credo will disable this specific check there.

fchabouis

comment created time in 2 months

more