GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/b5a29506-4a41-43a5-9ce0-2a91c02becfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Michal Petrucha-4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Tue, Apr 02, 2019 at 04:41:36AM -0700, Sage M.A. wrote:
> Hello, everyone! My name is Sage. I'm a 19-year-old computer science
> student from Indonesia. I'm planning to join the Google Summer of Code
> (GSoC) this year, and I want to contribute to Django. I have written a
> draft for my proposal in this gist
> <https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5>. I
> have submitted two small patches for Django, and I hope to contribute more
> in the future. Feedbacks are much appreciated, thanks!

Hi Sage,

I'm curious about your intention to implement ArrayField and
HStoreField for other databases – you don't really go into any detail
about those. Are those types even supported by other SQL databases
than Postgres? I can't find any hstore or array type for mysql, for
instance, let alone sqlite, and it's been my understanding that these
types are pretty specific to Postgres.

Could you explain in more detail why and how you want to port those
field types?

Michal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJco09GAAoJEHA7T/IPM/klB6oP/2I1TaEFG/SzRh5ArjTEzH60
Nd46at1133iJEL/QEz1SzFFkoXT7uRe+71aJroW8NE4KUEXN4giOO/jjhAYB74cv
Rzxay45r03g7Io+labwe0ZBIMhfhKRbk+8W4QVyHY8yfZklazwiswRy/3zJENoA4
GqML3yQ/0oq72pQtHHbhALp5FCcE5kILadCoYMqJ3BrqQEt5aWi3oQWoIYBCqkXF
zV3aM8cH4xsLVHG28646Eu10o5vsf06poYxOpQpF7OwfMy0k2mAjQyfVCeZ6qJzX
2aQpimgjiICBD21Asme4kBUEBmxdGiAiz15zQlnZBW+JeXzQsCFqUf+/T6PqTeyU
0uiX4O8/LhW+4PRG/aXLszcgqsDGOwFk3OstcrI3d+BlJ39ZCM0Kv7Y6L8H5DYKm
g9IfMeqD2c+/QECG3tEMhtJwhrvMsxod3Upq+6DhtK3G7xxemlRHjEvOIr/EmV8X
I9HRAU5ZmbE1piwZx45oTOD9ZCI2HsQtHuJ6jVsF2mwgdL3FdRGrLqCb2TPV/61x
0P1ehjukYU5fBcdua/2sgD1nRjzQBw54yhlwaTiUoL82JmLoW8tzKCG6mycMfbtY
TfXG9wP7Ig+mWYcRdINoM83NSaVQG+Fi98KxJoW/3BFpk3mz4QGrMBLFbs6P3ANc
9+IFrRA/wvJW2+jjBtqo
=8GaE
-----END PGP SIGNATURE-----

--
You received this message because you are subscribed to the Google Groups "Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/20190402120214.GV10973%40koniiiik.org.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

sagar ninave
In reply to this post by Sage M.A.
I appreciate Sage

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAA6pdZ_rKjn%3Dyv8ZoTWpOEtnokbDEiXKYyM5uwSE59CQo8b3Mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
In reply to this post by Michal Petrucha-4
Hi Michal,
From what I know,
SQLite and MySQL have the json_array() function which can be used to store arrays.
https://www.sqlite.org/json1.html#jarray
https://dev.mysql.com/doc/refman/8.0/en/json-creation-functions.html#function_json-array
Meanwhile, Oracle Database stores JSON as a VARCHAR with IS JSON constraint, and arrays are a valid JSON value.

About HStore, yes, it's not widely used but it's basically just a flat (not nested) JSON.

As to why I want to port those field types, to be honest, I don't really think it's necessary, but they're nice to have.
However, the idea listed on Django's GSoC 2019 page says that those fields would be desirable.
Those two fields would not be my main priority, and I guess maybe their implementations could be optional.


On Tuesday, 2 April 2019 19:26:28 UTC+7, Michal Petrucha wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Tue, Apr 02, 2019 at 04:41:36AM -0700, Sage M.A. wrote:
> Hello, everyone! My name is Sage. I'm a 19-year-old computer science
> student from Indonesia. I'm planning to join the Google Summer of Code
> (GSoC) this year, and I want to contribute to Django. I have written a
> draft for my proposal in this gist
> <<a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5>. I
> have submitted two small patches for Django, and I hope to contribute more
> in the future. Feedbacks are much appreciated, thanks!

Hi Sage,

I'm curious about your intention to implement ArrayField and
HStoreField for other databases – you don't really go into any detail
about those. Are those types even supported by other SQL databases
than Postgres? I can't find any hstore or array type for mysql, for
instance, let alone sqlite, and it's been my understanding that these
types are pretty specific to Postgres.

Could you explain in more detail why and how you want to port those
field types?

Michal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJco09GAAoJEHA7T/IPM/klB6oP/2I1TaEFG/SzRh5ArjTEzH60
Nd46at1133iJEL/QEz1SzFFkoXT7uRe+71aJroW8NE4KUEXN4giOO/jjhAYB74cv
Rzxay45r03g7Io+labwe0ZBIMhfhKRbk+8W4QVyHY8yfZklazwiswRy/3zJENoA4
GqML3yQ/0oq72pQtHHbhALp5FCcE5kILadCoYMqJ3BrqQEt5aWi3oQWoIYBCqkXF
zV3aM8cH4xsLVHG28646Eu10o5vsf06poYxOpQpF7OwfMy0k2mAjQyfVCeZ6qJzX
2aQpimgjiICBD21Asme4kBUEBmxdGiAiz15zQlnZBW+JeXzQsCFqUf+/T6PqTeyU
0uiX4O8/LhW+4PRG/aXLszcgqsDGOwFk3OstcrI3d+BlJ39ZCM0Kv7Y6L8H5DYKm
g9IfMeqD2c+/QECG3tEMhtJwhrvMsxod3Upq+6DhtK3G7xxemlRHjEvOIr/EmV8X
I9HRAU5ZmbE1piwZx45oTOD9ZCI2HsQtHuJ6jVsF2mwgdL3FdRGrLqCb2TPV/61x
0P1ehjukYU5fBcdua/2sgD1nRjzQBw54yhlwaTiUoL82JmLoW8tzKCG6mycMfbtY
TfXG9wP7Ig+mWYcRdINoM83NSaVQG+Fi98KxJoW/3BFpk3mz4QGrMBLFbs6P3ANc
9+IFrRA/wvJW2+jjBtqo
=8GaE
-----END PGP SIGNATURE-----

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/011a381d-4cfd-4c15-953c-0aff65daf987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
In reply to this post by sagar ninave
Thank you.

On Tuesday, 2 April 2019 19:26:29 UTC+7, sagar ninave wrote:
I appreciate Sage

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

sagar ninave
by the way how much you know django

On Tue, Apr 2, 2019 at 8:52 PM Sage M.A. <[hidden email]> wrote:
Thank you.

On Tuesday, 2 April 2019 19:26:29 UTC+7, sagar ninave wrote:
I appreciate Sage

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAA6pdZ9f2SyrV1Hn%3DQrmkreVhKH4LWSNOrBqXmV%3DymgTqfppGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
Hi Sagar, 
I started using Django last year. I've been studying the codebase lately, and I'm still trying to understand the mixins and stuff for the database backends. I have submitted patches for two tickets (#30294 and #30295), and I'm looking to contribute more in the future.

On Wednesday, 3 April 2019 04:12:52 UTC+7, sagar ninave wrote:
by the way how much you know django

On Tue, Apr 2, 2019 at 8:52 PM Sage M.A. <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="HWbBKtlrBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">laym...@...> wrote:
Thank you.

On Tuesday, 2 April 2019 19:26:29 UTC+7, sagar ninave wrote:
I appreciate Sage

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="HWbBKtlrBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-d...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="HWbBKtlrBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-d...@googlegroups.com.
Visit this group at <a href="https://groups.google.com/group/django-developers" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/django-developers&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/django-developers&#39;;return true;">https://groups.google.com/group/django-developers.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/3737f569-263d-4d09-acb2-2fdc1e2bebf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

sagar ninave
same bro i am too, actually i have learned python in last semester and using djnago build a small project and trying to get more about django. if you dont mind can i ask question when i will stuck somewhere about django and you may ask to me if you will not getting we will try to understand what matter will be

On Wed, Apr 3, 2019 at 8:16 AM Sage M.A. <[hidden email]> wrote:
Hi Sagar, 
I started using Django last year. I've been studying the codebase lately, and I'm still trying to understand the mixins and stuff for the database backends. I have submitted patches for two tickets (#30294 and #30295), and I'm looking to contribute more in the future.

On Wednesday, 3 April 2019 04:12:52 UTC+7, sagar ninave wrote:
by the way how much you know django

On Tue, Apr 2, 2019 at 8:52 PM Sage M.A. <[hidden email]> wrote:
Thank you.

On Tuesday, 2 April 2019 19:26:29 UTC+7, sagar ninave wrote:
I appreciate Sage

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/3737f569-263d-4d09-acb2-2fdc1e2bebf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAA6pdZ-eYMBOaVscN-xrEbfCe_fWXbARDJ1%3D77aa-fzwwDW_qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
Hi Sagar,
That's cool! However, I am not quite sure what you meant. If you meant to ask questions on how to use Django,
I think it's best to ask them in the django-users forum or the #django channel on IRC. I'm sure the community
will be able to help you. I also join those rooms when I can. If you actually meant to ask questions about Django
itself, then I guess you could ask your questions by posting a new topic in this django-developers forum instead
of this topic. This topic is meant to be a place for me to gather feedbacks for my GSoC proposal.
Thank you for your interest :)

On Wednesday, 3 April 2019 18:32:03 UTC+7, sagar ninave wrote:
same bro i am too, actually i have learned python in last semester and using djnago build a small project and trying to get more about django. if you dont mind can i ask question when i will stuck somewhere about django and you may ask to me if you will not getting we will try to understand what matter will be

On Wed, Apr 3, 2019 at 8:16 AM Sage M.A. <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6vFw1LuaBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">laym...@...> wrote:
Hi Sagar, 
I started using Django last year. I've been studying the codebase lately, and I'm still trying to understand the mixins and stuff for the database backends. I have submitted patches for two tickets (<a href="https://code.djangoproject.com/ticket/30294" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F30294\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHvwaqXrdpkdmpAzrplNWKH1fznCg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F30294\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHvwaqXrdpkdmpAzrplNWKH1fznCg&#39;;return true;">#30294 and <a href="https://code.djangoproject.com/ticket/30295" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F30295\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGEq2qd9AM7zK4Opu-SVrNXy5JtQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F30295\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGEq2qd9AM7zK4Opu-SVrNXy5JtQ&#39;;return true;">#30295), and I'm looking to contribute more in the future.

On Wednesday, 3 April 2019 04:12:52 UTC+7, sagar ninave wrote:
by the way how much you know django

On Tue, Apr 2, 2019 at 8:52 PM Sage M.A. <[hidden email]> wrote:
Thank you.

On Tuesday, 2 April 2019 19:26:29 UTC+7, sagar ninave wrote:
I appreciate Sage

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at <a href="https://groups.google.com/group/django-developers" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/group/django-developers&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/django-developers&#39;;return true;">https://groups.google.com/group/django-developers.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-developers/b02ac6c4-7db3-4d3a-ae08-d1fa848b4b68%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6vFw1LuaBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-d...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6vFw1LuaBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-d...@googlegroups.com.
Visit this group at <a href="https://groups.google.com/group/django-developers" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/django-developers&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/django-developers&#39;;return true;">https://groups.google.com/group/django-developers.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-developers/3737f569-263d-4d09-acb2-2fdc1e2bebf8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-developers/3737f569-263d-4d09-acb2-2fdc1e2bebf8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-developers/3737f569-263d-4d09-acb2-2fdc1e2bebf8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-developers/3737f569-263d-4d09-acb2-2fdc1e2bebf8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/a3684f5b-265e-430f-b18f-77f26450716f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Carlton Gibson-3
In reply to this post by Sage M.A.
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/622f8f17-3d52-4ca8-864a-baaa064d1485%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
Hi, Carlton.

Thanks a lot for the feedback!
Ah, yes, looks like I missed that Oracle implementation. I've updated my proposal accordingly.
To summarize:
  • Added info about Oracle implementation (see 1.1)
  • Replaced 1 week of research with 1 week of writing tests and docs for POC SQLite JSONField (see 3.1.1 and 3.1.2)
  • Replaced the idea of implementing HStoreField with writing documentation for ArrayField, migration path, and SQLite+JSON1 (see 3.3.2)
  • Took half a week from the merging process into writing the aforementioned docs.
  • Wrote about the possibility of merging the first and second milestones so the final milestone would not be so big to merge. (see 3.1.2 and 3.2.2)
  • Wrote about the possibility of finishing the project early (see 3.4)
About #29548, it seems interesting to me but I'm not quite sure what's left to be done.

Regards,
Sage

On Wednesday, 3 April 2019 21:40:09 UTC+7, Carlton Gibson wrote:
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: <a href="https://code.djangoproject.com/ticket/29821" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;">https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/f4565ae9-8dc7-4e2d-a0ac-8ea6ce5d0d76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Asif Saif Uddin
Sage, regarding MariaDB, I have a little suggestion with you. If you could setup a latest version of mariadb locally and try to run Django test suits with that, you might have some ideas of remaining issues analyzing the test failures initially.

On Thursday, April 4, 2019 at 11:30:48 AM UTC+6, Sage M.A. wrote:
Hi, Carlton.

Thanks a lot for the feedback!
Ah, yes, looks like I missed that Oracle implementation. I've updated my proposal accordingly.
To summarize:
  • Added info about Oracle implementation (see 1.1)
  • Replaced 1 week of research with 1 week of writing tests and docs for POC SQLite JSONField (see 3.1.1 and 3.1.2)
  • Replaced the idea of implementing HStoreField with writing documentation for ArrayField, migration path, and SQLite+JSON1 (see 3.3.2)
  • Took half a week from the merging process into writing the aforementioned docs.
  • Wrote about the possibility of merging the first and second milestones so the final milestone would not be so big to merge. (see 3.1.2 and 3.2.2)
  • Wrote about the possibility of finishing the project early (see 3.4)
About <a href="https://code.djangoproject.com/ticket/29548" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;">#29548, it seems interesting to me but I'm not quite sure what's left to be done.

Regards,
Sage

On Wednesday, 3 April 2019 21:40:09 UTC+7, Carlton Gibson wrote:
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: <a href="https://code.djangoproject.com/ticket/29821" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;">https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/7b4ec564-82ef-4c38-a5b8-8b2ba1e1a938%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
Hi Asif,
That's a good idea! I've installed the latest stable release of MariaDB (10.3.14) on my machine and ran Django test suits with it.
The results (I've truncated them to only contain the failures and errors) show 19 failures and 15 errors, all of which seem to be
related to datetime functions. I suppose that'll be enough for me to work on if my GSoC project finishes early. I'll also need to
write docs about the new support for MariaDB.

On a side note, setting up and destroying the database for the test took hours on my machine. Is that normal? I had to use
verbosity=2 to find out that it was not freezing, just really slow.

On Saturday, 6 April 2019 22:32:53 UTC+7, Asif Saif Uddin wrote:
Sage, regarding MariaDB, I have a little suggestion with you. If you could setup a latest version of mariadb locally and try to run Django test suits with that, you might have some ideas of remaining issues analyzing the test failures initially.

On Thursday, April 4, 2019 at 11:30:48 AM UTC+6, Sage M.A. wrote:
Hi, Carlton.

Thanks a lot for the feedback!
Ah, yes, looks like I missed that Oracle implementation. I've updated my proposal accordingly.
To summarize:
  • Added info about Oracle implementation (see 1.1)
  • Replaced 1 week of research with 1 week of writing tests and docs for POC SQLite JSONField (see 3.1.1 and 3.1.2)
  • Replaced the idea of implementing HStoreField with writing documentation for ArrayField, migration path, and SQLite+JSON1 (see 3.3.2)
  • Took half a week from the merging process into writing the aforementioned docs.
  • Wrote about the possibility of merging the first and second milestones so the final milestone would not be so big to merge. (see 3.1.2 and 3.2.2)
  • Wrote about the possibility of finishing the project early (see 3.4)
About <a href="https://code.djangoproject.com/ticket/29548" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;">#29548, it seems interesting to me but I'm not quite sure what's left to be done.

Regards,
Sage

On Wednesday, 3 April 2019 21:40:09 UTC+7, Carlton Gibson wrote:
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: <a href="https://code.djangoproject.com/ticket/29821" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;">https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/f8467086-201f-4cab-b844-b06ca303660d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
Oh, I forgot, one of them is not related to datetime functions: test_unsupported_backend.

On Sunday, 7 April 2019 13:26:10 UTC+7, Sage M.A. wrote:
Hi Asif,
That's a good idea! I've installed the latest stable release of MariaDB (10.3.14) on my machine and ran Django test suits with it.
<a href="https://gist.github.com/laymonage/a6beb3ec49b2633a508e40d2862ce875" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;">The results (I've truncated them to only contain the failures and errors) show 19 failures and 15 errors, all of which seem to be
related to datetime functions. I suppose that'll be enough for me to work on if my GSoC project finishes early. I'll also need to
write docs about the new support for MariaDB.

On a side note, setting up and destroying the database for the test took hours on my machine. Is that normal? I had to use
verbosity=2 to find out that it was not freezing, just really slow.

On Saturday, 6 April 2019 22:32:53 UTC+7, Asif Saif Uddin wrote:
Sage, regarding MariaDB, I have a little suggestion with you. If you could setup a latest version of mariadb locally and try to run Django test suits with that, you might have some ideas of remaining issues analyzing the test failures initially.

On Thursday, April 4, 2019 at 11:30:48 AM UTC+6, Sage M.A. wrote:
Hi, Carlton.

Thanks a lot for the feedback!
Ah, yes, looks like I missed that Oracle implementation. I've updated my proposal accordingly.
To summarize:
  • Added info about Oracle implementation (see 1.1)
  • Replaced 1 week of research with 1 week of writing tests and docs for POC SQLite JSONField (see 3.1.1 and 3.1.2)
  • Replaced the idea of implementing HStoreField with writing documentation for ArrayField, migration path, and SQLite+JSON1 (see 3.3.2)
  • Took half a week from the merging process into writing the aforementioned docs.
  • Wrote about the possibility of merging the first and second milestones so the final milestone would not be so big to merge. (see 3.1.2 and 3.2.2)
  • Wrote about the possibility of finishing the project early (see 3.4)
About <a href="https://code.djangoproject.com/ticket/29548" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;">#29548, it seems interesting to me but I'm not quite sure what's left to be done.

Regards,
Sage

On Wednesday, 3 April 2019 21:40:09 UTC+7, Carlton Gibson wrote:
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: <a href="https://code.djangoproject.com/ticket/29821" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;">https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/f99fc482-b8a8-4170-a31d-fa0717780471%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Asif Saif Uddin
You can open a work in progress pr to fix them one by one gradually and trying to fix some of them will give you a much better understanding of django orm internals as it is considered the most complex part of the framework. This will also improve your chance to represent yourself as a much stronger candidate and you will be able to interact with the community in a very meaningful way. Just my 2 cents. 

On Sunday, April 7, 2019 at 12:27:51 PM UTC+6, Sage M.A. wrote:
Oh, I forgot, one of them is not related to datetime functions: test_unsupported_backend.

On Sunday, 7 April 2019 13:26:10 UTC+7, Sage M.A. wrote:
Hi Asif,
That's a good idea! I've installed the latest stable release of MariaDB (10.3.14) on my machine and ran Django test suits with it.
<a href="https://gist.github.com/laymonage/a6beb3ec49b2633a508e40d2862ce875" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;">The results (I've truncated them to only contain the failures and errors) show 19 failures and 15 errors, all of which seem to be
related to datetime functions. I suppose that'll be enough for me to work on if my GSoC project finishes early. I'll also need to
write docs about the new support for MariaDB.

On a side note, setting up and destroying the database for the test took hours on my machine. Is that normal? I had to use
verbosity=2 to find out that it was not freezing, just really slow.

On Saturday, 6 April 2019 22:32:53 UTC+7, Asif Saif Uddin wrote:
Sage, regarding MariaDB, I have a little suggestion with you. If you could setup a latest version of mariadb locally and try to run Django test suits with that, you might have some ideas of remaining issues analyzing the test failures initially.

On Thursday, April 4, 2019 at 11:30:48 AM UTC+6, Sage M.A. wrote:
Hi, Carlton.

Thanks a lot for the feedback!
Ah, yes, looks like I missed that Oracle implementation. I've updated my proposal accordingly.
To summarize:
  • Added info about Oracle implementation (see 1.1)
  • Replaced 1 week of research with 1 week of writing tests and docs for POC SQLite JSONField (see 3.1.1 and 3.1.2)
  • Replaced the idea of implementing HStoreField with writing documentation for ArrayField, migration path, and SQLite+JSON1 (see 3.3.2)
  • Took half a week from the merging process into writing the aforementioned docs.
  • Wrote about the possibility of merging the first and second milestones so the final milestone would not be so big to merge. (see 3.1.2 and 3.2.2)
  • Wrote about the possibility of finishing the project early (see 3.4)
About <a href="https://code.djangoproject.com/ticket/29548" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;">#29548, it seems interesting to me but I'm not quite sure what's left to be done.

Regards,
Sage

On Wednesday, 3 April 2019 21:40:09 UTC+7, Carlton Gibson wrote:
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: <a href="https://code.djangoproject.com/ticket/29821" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;">https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/731ebfc4-5dfc-4685-8ed0-aff28e6255ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Tim Graham-2
MariaDB is supported (see https://code.djangoproject.com/ticket/29548). The test failures are (as the error message says) because you haven't installed the timezone definitions.

On Sunday, April 7, 2019 at 3:03:14 AM UTC-4, Asif Saif Uddin wrote:
You can open a work in progress pr to fix them one by one gradually and trying to fix some of them will give you a much better understanding of django orm internals as it is considered the most complex part of the framework. This will also improve your chance to represent yourself as a much stronger candidate and you will be able to interact with the community in a very meaningful way. Just my 2 cents. 

On Sunday, April 7, 2019 at 12:27:51 PM UTC+6, Sage M.A. wrote:
Oh, I forgot, one of them is not related to datetime functions: test_unsupported_backend.

On Sunday, 7 April 2019 13:26:10 UTC+7, Sage M.A. wrote:
Hi Asif,
That's a good idea! I've installed the latest stable release of MariaDB (10.3.14) on my machine and ran Django test suits with it.
<a href="https://gist.github.com/laymonage/a6beb3ec49b2633a508e40d2862ce875" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;">The results (I've truncated them to only contain the failures and errors) show 19 failures and 15 errors, all of which seem to be
related to datetime functions. I suppose that'll be enough for me to work on if my GSoC project finishes early. I'll also need to
write docs about the new support for MariaDB.

On a side note, setting up and destroying the database for the test took hours on my machine. Is that normal? I had to use
verbosity=2 to find out that it was not freezing, just really slow.

On Saturday, 6 April 2019 22:32:53 UTC+7, Asif Saif Uddin wrote:
Sage, regarding MariaDB, I have a little suggestion with you. If you could setup a latest version of mariadb locally and try to run Django test suits with that, you might have some ideas of remaining issues analyzing the test failures initially.

On Thursday, April 4, 2019 at 11:30:48 AM UTC+6, Sage M.A. wrote:
Hi, Carlton.

Thanks a lot for the feedback!
Ah, yes, looks like I missed that Oracle implementation. I've updated my proposal accordingly.
To summarize:
  • Added info about Oracle implementation (see 1.1)
  • Replaced 1 week of research with 1 week of writing tests and docs for POC SQLite JSONField (see 3.1.1 and 3.1.2)
  • Replaced the idea of implementing HStoreField with writing documentation for ArrayField, migration path, and SQLite+JSON1 (see 3.3.2)
  • Took half a week from the merging process into writing the aforementioned docs.
  • Wrote about the possibility of merging the first and second milestones so the final milestone would not be so big to merge. (see 3.1.2 and 3.2.2)
  • Wrote about the possibility of finishing the project early (see 3.4)
About <a href="https://code.djangoproject.com/ticket/29548" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;">#29548, it seems interesting to me but I'm not quite sure what's left to be done.

Regards,
Sage

On Wednesday, 3 April 2019 21:40:09 UTC+7, Carlton Gibson wrote:
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: <a href="https://code.djangoproject.com/ticket/29821" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;">https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/b03b9794-8057-40f7-b4ca-ff22a8adb190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
In reply to this post by Asif Saif Uddin
Thanks for the information Asif, but it turns out Django already supports MariaDB.

On Sunday, 7 April 2019 14:03:14 UTC+7, Asif Saif Uddin wrote:
You can open a work in progress pr to fix them one by one gradually and trying to fix some of them will give you a much better understanding of django orm internals as it is considered the most complex part of the framework. This will also improve your chance to represent yourself as a much stronger candidate and you will be able to interact with the community in a very meaningful way. Just my 2 cents. 

On Sunday, April 7, 2019 at 12:27:51 PM UTC+6, Sage M.A. wrote:
Oh, I forgot, one of them is not related to datetime functions: test_unsupported_backend.

On Sunday, 7 April 2019 13:26:10 UTC+7, Sage M.A. wrote:
Hi Asif,
That's a good idea! I've installed the latest stable release of MariaDB (10.3.14) on my machine and ran Django test suits with it.
<a href="https://gist.github.com/laymonage/a6beb3ec49b2633a508e40d2862ce875" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;">The results (I've truncated them to only contain the failures and errors) show 19 failures and 15 errors, all of which seem to be
related to datetime functions. I suppose that'll be enough for me to work on if my GSoC project finishes early. I'll also need to
write docs about the new support for MariaDB.

On a side note, setting up and destroying the database for the test took hours on my machine. Is that normal? I had to use
verbosity=2 to find out that it was not freezing, just really slow.

On Saturday, 6 April 2019 22:32:53 UTC+7, Asif Saif Uddin wrote:
Sage, regarding MariaDB, I have a little suggestion with you. If you could setup a latest version of mariadb locally and try to run Django test suits with that, you might have some ideas of remaining issues analyzing the test failures initially.

On Thursday, April 4, 2019 at 11:30:48 AM UTC+6, Sage M.A. wrote:
Hi, Carlton.

Thanks a lot for the feedback!
Ah, yes, looks like I missed that Oracle implementation. I've updated my proposal accordingly.
To summarize:
  • Added info about Oracle implementation (see 1.1)
  • Replaced 1 week of research with 1 week of writing tests and docs for POC SQLite JSONField (see 3.1.1 and 3.1.2)
  • Replaced the idea of implementing HStoreField with writing documentation for ArrayField, migration path, and SQLite+JSON1 (see 3.3.2)
  • Took half a week from the merging process into writing the aforementioned docs.
  • Wrote about the possibility of merging the first and second milestones so the final milestone would not be so big to merge. (see 3.1.2 and 3.2.2)
  • Wrote about the possibility of finishing the project early (see 3.4)
About <a href="https://code.djangoproject.com/ticket/29548" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;">#29548, it seems interesting to me but I'm not quite sure what's left to be done.

Regards,
Sage

On Wednesday, 3 April 2019 21:40:09 UTC+7, Carlton Gibson wrote:
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: <a href="https://code.djangoproject.com/ticket/29821" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;">https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/865eb99d-1a6e-4a96-856e-7bf49eb7bd23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
In reply to this post by Tim Graham-2
I see, thanks for the info! Why is the ticket still open, though? Also, I still found one failing window test case..

On Sunday, 7 April 2019 16:20:13 UTC+7, Tim Graham wrote:
MariaDB is supported (see <a href="https://code.djangoproject.com/ticket/29548" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;">https://code.djangoproject.com/ticket/29548). The test failures are (as the error message says) because you haven't installed the timezone definitions.

On Sunday, April 7, 2019 at 3:03:14 AM UTC-4, Asif Saif Uddin wrote:
You can open a work in progress pr to fix them one by one gradually and trying to fix some of them will give you a much better understanding of django orm internals as it is considered the most complex part of the framework. This will also improve your chance to represent yourself as a much stronger candidate and you will be able to interact with the community in a very meaningful way. Just my 2 cents. 

On Sunday, April 7, 2019 at 12:27:51 PM UTC+6, Sage M.A. wrote:
Oh, I forgot, one of them is not related to datetime functions: test_unsupported_backend.

On Sunday, 7 April 2019 13:26:10 UTC+7, Sage M.A. wrote:
Hi Asif,
That's a good idea! I've installed the latest stable release of MariaDB (10.3.14) on my machine and ran Django test suits with it.
<a href="https://gist.github.com/laymonage/a6beb3ec49b2633a508e40d2862ce875" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fa6beb3ec49b2633a508e40d2862ce875\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNyKMSJOTKma_PyffF_ObiSfqkjw&#39;;return true;">The results (I've truncated them to only contain the failures and errors) show 19 failures and 15 errors, all of which seem to be
related to datetime functions. I suppose that'll be enough for me to work on if my GSoC project finishes early. I'll also need to
write docs about the new support for MariaDB.

On a side note, setting up and destroying the database for the test took hours on my machine. Is that normal? I had to use
verbosity=2 to find out that it was not freezing, just really slow.

On Saturday, 6 April 2019 22:32:53 UTC+7, Asif Saif Uddin wrote:
Sage, regarding MariaDB, I have a little suggestion with you. If you could setup a latest version of mariadb locally and try to run Django test suits with that, you might have some ideas of remaining issues analyzing the test failures initially.

On Thursday, April 4, 2019 at 11:30:48 AM UTC+6, Sage M.A. wrote:
Hi, Carlton.

Thanks a lot for the feedback!
Ah, yes, looks like I missed that Oracle implementation. I've updated my proposal accordingly.
To summarize:
  • Added info about Oracle implementation (see 1.1)
  • Replaced 1 week of research with 1 week of writing tests and docs for POC SQLite JSONField (see 3.1.1 and 3.1.2)
  • Replaced the idea of implementing HStoreField with writing documentation for ArrayField, migration path, and SQLite+JSON1 (see 3.3.2)
  • Took half a week from the merging process into writing the aforementioned docs.
  • Wrote about the possibility of merging the first and second milestones so the final milestone would not be so big to merge. (see 3.1.2 and 3.2.2)
  • Wrote about the possibility of finishing the project early (see 3.4)
About <a href="https://code.djangoproject.com/ticket/29548" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29548\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzHlwkv_hZ-pQ1UwDqqa2dpPyxQg&#39;;return true;">#29548, it seems interesting to me but I'm not quite sure what's left to be done.

Regards,
Sage

On Wednesday, 3 April 2019 21:40:09 UTC+7, Carlton Gibson wrote:
Hi Sage. 

Thanks for the proposal. It's looking OK. Couple of points: 

  • There IS an Oracle implementation. See the ticket here: <a href="https://code.djangoproject.com/ticket/29821" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.djangoproject.com%2Fticket%2F29821\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFYrm0gdU7XB41bl89MHEVmrZSe5w&#39;;return true;">https://code.djangoproject.com/ticket/29821
  • Something that looks like an ArrayField, yes. HStore... not so sure it's worth mimicking. 
  • On the timeline: I think you've spread the coding bit too thin and not allocated enough for Documenting.
    • I think you if you want full-guns at the SQLite PoC in week 1 and 2 you'd have something in place quite quickly. 
      • The base field should be simple enough™
      • The SQLite only lookups shouldn't be too complicated. 
    • As I commented on the other thread on this topic, we'll need to advise on getting people set up with SQLite with the JSON extension. 
      • There's more in this that you think I'd guess. No harm in putting time in the schedule for it. 
    • Allow for the possibility you complete early and have time to work on other things...
    • This stuff is difficult to get right. It's more balance that exact times: 
      • The actual timeline won't match the plan ever. 
      • you don't need to worry about two days off for holiday 🙂
Your contributions so far have been super. Thank you. 

Kind Regards,

Carlton


On Tuesday, 2 April 2019 13:41:37 UTC+2, Sage M.A. wrote:
Hello, everyone! My name is Sage. I'm a 19-year-old computer science student from Indonesia. I'm planning to join the Google Summer of Code (GSoC) this year, and I want to contribute to Django. I have written a draft for my proposal in <a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">this gist. I have submitted two small patches for Django, and I hope to contribute more in the future. Feedbacks are much appreciated, thanks!

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/415dbb68-d1a8-4642-8908-e6414dde1ad0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Raphael Michel
In reply to this post by Sage M.A.
Hi Sage, Hi everyone,

I lacked the time to read this mailing list in the past months, and
someone at DjangoCon Europe just pointed me to this thread, so just for
reference, I want to add some prior work that I did to the list:

At DjangoCon US and thereafter, I developed a third-party
implementation that does a little more than the ones that are more
well-known and mentioned in the proposal:

https://github.com/raphaelm/django-jsonfallback

django-jsonfallback supports native JSON fields on PostgreSQL, MariaDB
*and* MySQL (which are quite different in that regard). On all other
databases, it falls back to the behaviour of just storing strings in
text fields. Therefore, it's still different from what is being
proposed here, and also the implementation is quite unclean in the
sense that it needs to check for database backends on the level of
database fields. When implemented in core, this could be done much more
nicely.

Still, it might be an interesting thing to look at when doing this, if
only for the test cases and the weird MySQL/MariaDB things. I'd love to
see this in core and are happy to help wherever I can with my expertise.

Best
Raphael

Am Tue, 2 Apr 2019 04:41:36 -0700 (PDT)
schrieb "Sage M.A." <[hidden email]>:

> Hello, everyone! My name is Sage. I'm a 19-year-old computer science
> student from Indonesia. I'm planning to join the Google Summer of
> Code (GSoC) this year, and I want to contribute to Django. I have
> written a draft for my proposal in this gist
> <https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5>.
> I have submitted two small patches for Django, and I hope to
> contribute more in the future. Feedbacks are much appreciated, thanks!
>

--
You received this message because you are subscribed to the Google Groups "Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/20190416114408.35c8afa4%40kvothe.
For more options, visit https://groups.google.com/d/optout.

attachment0 (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: GSoC Proposal: Add Cross-DB JSONField, ArrayField, and HStoreField

Sage M.A.
Hi, Raphael.
Ah, yes, I have seen your project, but I guess I forgot to link it in my proposal.
It is very interesting, and I believe it will be helpful for anyone who wants to implement
this. Let's hope we can make this happen. Thanks for the feedback!

Regards,
Sage

On Tuesday, 16 April 2019 16:44:18 UTC+7, Raphael Michel wrote:
Hi Sage, Hi everyone,

I lacked the time to read this mailing list in the past months, and
someone at DjangoCon Europe just pointed me to this thread, so just for
reference, I want to add some prior work that I did to the list:

At DjangoCon US and thereafter, I developed a third-party
implementation that does a little more than the ones that are more
well-known and mentioned in the proposal:

<a href="https://github.com/raphaelm/django-jsonfallback" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fraphaelm%2Fdjango-jsonfallback\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGXItQ9yXFnomXHuX8bhTJb1iT5Jw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fraphaelm%2Fdjango-jsonfallback\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGXItQ9yXFnomXHuX8bhTJb1iT5Jw&#39;;return true;">https://github.com/raphaelm/django-jsonfallback

django-jsonfallback supports native JSON fields on PostgreSQL, MariaDB
*and* MySQL (which are quite different in that regard). On all other
databases, it falls back to the behaviour of just storing strings in
text fields. Therefore, it's still different from what is being
proposed here, and also the implementation is quite unclean in the
sense that it needs to check for database backends on the level of
database fields. When implemented in core, this could be done much more
nicely.

Still, it might be an interesting thing to look at when doing this, if
only for the test cases and the weird MySQL/MariaDB things. I'd love to
see this in core and are happy to help wherever I can with my expertise.

Best
Raphael

Am Tue, 2 Apr 2019 04:41:36 -0700 (PDT)
schrieb "Sage M.A." <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PCS-68TcBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">laym...@...>:

> Hello, everyone! My name is Sage. I'm a 19-year-old computer science
> student from Indonesia. I'm planning to join the Google Summer of
> Code (GSoC) this year, and I want to contribute to Django. I have
> written a draft for my proposal in this gist
> <<a href="https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Flaymonage%2Fb53a1acbbab36b77776cd526b48fd2a5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhPuQI9zYryf_dV1jSfn4fF7a-xQ&#39;;return true;">https://gist.github.com/laymonage/b53a1acbbab36b77776cd526b48fd2a5>.
> I have submitted two small patches for Django, and I hope to
> contribute more in the future. Feedbacks are much appreciated, thanks!
>

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/588ca222-8d7f-4c34-8c4e-cffde8f35b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
12