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

docs: guide on using rails migrations with hasura #1186

Open
tirumaraiselvan opened this issue Dec 11, 2018 · 17 comments
Open

docs: guide on using rails migrations with hasura #1186

tirumaraiselvan opened this issue Dec 11, 2018 · 17 comments
Labels
c/docs Related to docs c/migrations Related to migrations good first issue Good for newcomers help wanted Good candidate for contribution. Community help wanted!

Comments

@tirumaraiselvan
Copy link
Contributor

tirumaraiselvan commented Dec 11, 2018

We need docs on using Rails migrations with Hasura.

This guide can go here: https://hasura.io/docs/1.0/graphql/core/guides/integrations/index.html.

@tirumaraiselvan tirumaraiselvan added the c/docs Related to docs label Dec 11, 2018
@ecthiender ecthiender changed the title [Docs] Guide on using Rails migrations with Hasura Guide on using Rails migrations with Hasura Dec 12, 2018
@rikinsk-zz rikinsk-zz added good first issue Good for newcomers help wanted Good candidate for contribution. Community help wanted! labels Jan 18, 2019
@marionschleifer marionschleifer self-assigned this Jul 10, 2019
@marionschleifer marionschleifer added e/intermediate can be wrapped up in a week p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints labels Jul 10, 2019
@marionschleifer marionschleifer removed their assignment Jul 17, 2019
@athityakumar
Copy link

Hey there!

I've been a Rails developer for a couple years now, and would love to contribute to this issue for Hacktoberfest, and learn more about Hasura in the process. Can someone please guide me regarding how I can proceed with tackling this issue?

@tirumaraiselvan
Copy link
Contributor Author

@athityakumar Hasura has migrations and metadata. Simply speaking, migrations are sql files and metadata is configuration like track_table, permissions, remote_schemas etc (configuration for all hasura features).

So, if somebody is running a rails microservice they might be using active record migrations to do the sql migrations already. But for these migrations to work seamlessly with hasura, they will have to run the corresponding metadata API calls as well.

This issue is to give a simple technique which embeds the corresponding hasura metadata in the active record/rails migration system.

@athityakumar
Copy link

@tirumaraiselvan - Ah, got it. Is there any other similar already-documented guide/technique for other web frameworks (Django/MEAN) that I could use as reference for what is expected?

@tirumaraiselvan tirumaraiselvan self-assigned this Nov 6, 2019
@mehmetaydogduu
Copy link

I think rails have to has hasura extension that makes automatic API calls to hasura.

I not prefer use rails migrations on a new project. But when I done migrations with hasura, rails dosn't now relationships. Also rails activestroage migrations is a problem. Also if use a gem that makes migration, it is not comfortable. If anybody want to work about this topics, I want to work too.

@mehmetaydogduu
Copy link

I can work on this issue if anyone suggest me an example about how to make metadata API calls to Hasura. Thank you.

@tirumaraiselvan
Copy link
Contributor Author

@FastEngineer Thanks for your help. But, we have already finished work on this and just need to put it out.

@r3trosteve
Copy link

Is this out yet?

@tirumaraiselvan
Copy link
Contributor Author

@rikinsk Can we pls publish this in the docs?

@mehmetaydogduu
Copy link

Waiting the docs.

@ashishra0
Copy link
Contributor

@tirumaraiselvan Should I create a PR and reference this issue?

@tirumaraiselvan
Copy link
Contributor Author

@ashishra0 Pls go for it.

@joelrojo
Copy link

Any update on this?

@mazaira
Copy link

mazaira commented Jun 16, 2020

+1

@marionschleifer marionschleifer changed the title Guide on using Rails migrations with Hasura docs: guide on using rails migrations with hasura Dec 8, 2020
@marionschleifer marionschleifer removed e/intermediate can be wrapped up in a week hacktoberfest labels Dec 8, 2020
@marionschleifer marionschleifer added c/migrations Related to migrations and removed p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints labels Dec 8, 2020
@heberuriegas
Copy link

+1

@mjonas87
Copy link

mjonas87 commented Feb 10, 2022

@tirumaraiselvan @ashishra0 Is there a timeline for getting this out? Been looking at what a migration path from Rails to Hasura would look like and this is definitely a gap for me. Are the current state of the docs available somewhere I could review even if they're not finalized?

Happy to help here, if there's anything I can do.

@drush
Copy link

drush commented Jun 23, 2022

+1

@vfonic
Copy link

vfonic commented Jun 8, 2023

@tirumaraiselvan @rikinsk @ashishra0 what's going on?

As stated by @tirumaraiselvan in January 2020, this functionality has been implemented, but only the docs haven't been published about it. Does it take three and a half years to publish docs for such a functionality?

@FastEngineer Thanks for your help. But, we have already finished work on this and just need to put it out.

What's the latest status of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/docs Related to docs c/migrations Related to migrations good first issue Good for newcomers help wanted Good candidate for contribution. Community help wanted!
Projects
None yet
Development

No branches or pull requests