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

Contributions #29

Open
ishanarora04 opened this issue Jan 7, 2021 · 3 comments
Open

Contributions #29

ishanarora04 opened this issue Jan 7, 2021 · 3 comments

Comments

@ishanarora04
Copy link

Hey @kindermax
Are you accepting PRs? Can we have a formal issue list to pick? I am currently reading the code and fixing a few things based on your TODO comments in the code. So where should I start?

@kindermax
Copy link
Owner

kindermax commented Jan 7, 2021 via email

@kindermax
Copy link
Owner

kindermax commented Jan 7, 2021

First issue is a design issue. According to the example, we have to declare two sets of fields in document class, one - static, for query building and second for data population. This pattern is very convenient in python because in this case class attributes and instance attributes are interchangeable, but not in js. My proposition is somehow to separate query building and data population. We can use pattern called data mapper. In this case, query builder is responsible for query building and data fetching, and another class will be used to populate it with data fetched using query builder.

@ishanarora04
Copy link
Author

Thanks for replying. I can start fixing the design thingy. Let me also checkout the python elasticmagic, it will give a closer look at the vision of the project.

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

No branches or pull requests

2 participants