Re: [Django] #30190: json lines (jsonl) serializer

2020-06-17 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by GitHub ):

 In [changeset:"78c811334c9e5477b86fd113fa2c4a261e167d15" 78c81133]:
 {{{
 #!CommitTicketReference repository=""
 revision="78c811334c9e5477b86fd113fa2c4a261e167d15"
 Refs #30190 -- Minor edits to JSONL serializer.

 Follow up to e29637681be07606674cdccb47d1e53acb930f5b.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.88cd0b34a6aa5fc25afe8a8d577feef8%40djangoproject.com.


Re: [Django] #30190: json lines (jsonl) serializer

2020-06-16 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by GitHub ):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"e29637681be07606674cdccb47d1e53acb930f5b" e2963768]:
 {{{
 #!CommitTicketReference repository=""
 revision="e29637681be07606674cdccb47d1e53acb930f5b"
 Fixed #30190 -- Added JSONL serializer.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.cff01b7eaeedb93e31f7a07e78d558e0%40djangoproject.com.


Re: [Django] #30190: json lines (jsonl) serializer

2020-06-16 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Carlton Gibson):

 * stage:  Accepted => Ready for checkin


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.3e55e9e834bf46f2e2a5a23eb89957da%40djangoproject.com.


Re: [Django] #30190: json lines (jsonl) serializer

2020-05-26 Thread Django
#30190: json lines (jsonl) serializer
--+
 Reporter:  aliva |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Core (Serialization)  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by Carlton Gibson):

 * stage:  Unreviewed => Accepted


Comment:

 OK, thanks for updating the ticket here.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.84f64e72eed156242b687f1b4d397d4e%40djangoproject.com.


Re: [Django] #30190: json lines (jsonl) serializer

2020-01-16 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by aliva):

 Hi!

 I have talked about it on [https://groups.google.com/forum/#!topic/django-
 developers/MMm1AGS2Ibg mailing list] and here is my
 [https://code.djangoproject.com/ticket/30190 PR]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.8243f1c4f6e011becaf0f3433d4a5d49%40djangoproject.com.


Re: [Django] #30190: json lines (jsonl) serializer

2019-11-26 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by felixxm):

 * status:  new => closed
 * resolution:   => needsinfo
 * type:  Bug => New feature


Comment:

 Please don't reopen closed ticket. This ticket should be discussed in the
 DevelopersMailingList before reopening. We can reconsider it when we reach
 a strong consensus on the mailing list.

 Also please try to be more polite, your comment sounds like a demand. This
 is not a good way to be heard.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.30ec00188f47f42b1dcd3b8488d3f9c8%40djangoproject.com.


Re: [Django] #30190: json lines (jsonl) serializer

2019-11-26 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Francisco Javier):

 * cc: Francisco Javier (added)
 * type:  New feature => Bug
 * status:  closed => new
 * resolution:  needsinfo =>
 * needs_tests:  0 => 1


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.0587c62e60c6dde49ec4c7c7f3571307%40djangoproject.com.


Re: [Django] #30190: json lines (jsonl) serializer

2019-11-26 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Francisco Javier):

 The Django Core MUST solve his own things by himself, and not relaying to
 a third party solution.

 If dumpdata/loaddata is broken for very big datasets, the issue must be
 addresed and solved as soon as posible.

 In my particular case, I have a Sqlite3 DataBase of 800MB, and want to
 migrate to PostgreSQL. The Dumpdata/Loaddata combo is the only straight
 way to do it.

 If the django-mljson (or the patch submited in the ticket) solves the
 MemoryError of Loaddata in big datasets, Django-Core must integrate the
 mljson (or the patch submited) as the default serializer/deserializer for
 dumpdata/loaddata process.

 Actually, my issue is solved by using django-mljson, but lost 2 days
 figuring 'what the heck' was going wrong.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.1e4ff14c119c3d2bb91337ea78c88541%40djangoproject.com.


Re: [Django] #30190: json lines (jsonl) serializer

2019-03-06 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by aliva):

 * Attachment "patch-2-wip.diff" added.

 patch 2 WIP

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.378387880006548a87495dd1574a789a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30190: json lines (jsonl) serializer

2019-03-06 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by aliva):

 Hi

 I have started writing tests for jsonl, (I simply copied `test_json` to
 `test_jsonl`) and trying to fix issues. there is a problem I'm facing,
 when using jsonl output lines can be very long, so what is the preferred
 way to pass flake for test data?

 * should I add `NOQA: E501` for these lines?
 * use this style

 {{{
 a = """{"key": value",""" \
 key2": value"}"""
 }}}

 * use this style

 {{{
 a = """{
   "key": "value"
   "ley2: "value2",
 }.replace("\n", "")
 }}}

 also I have added patch 2 which is a work in progress and some tests fail


 as a sample here is a sample test data from test_json.py

 {{{
 mapping_ordering_str = """[
 {
   "model": "serializers.article",
   "pk": %(article_pk)s,
   "fields": {
 "author": %(author_pk)s,
 "headline": "Poker has no place on ESPN",
 "pub_date": "2006-06-16T11:00:00",
 "categories": [
   %(first_category_pk)s,
   %(second_category_pk)s
 ],
 "meta_data": []
   }
 }
 ]
 }}}

 It should be like this for jsonl

 {{{
 mapping_ordering_str = """{"model": "serializers.article", "pk":
 %(article_pk)s, fields": {"author": %(author_pk)s, "headline": "Poker has
 no place on ESPN", pub_date": "2006-06-16T11:00:00", categories":
 [%(first_category_pk)s, %(second_category_pk)s], "meta_data": []}}\n"""
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.6555b473a4c2a0556c2ab20734a4e9e6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30190: json lines (jsonl) serializer

2019-03-05 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Adam (Chainz) Johnson):

 +1 to add to core from me too.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.11dae038b3b677695d4e1880fbcf9f06%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30190: json lines (jsonl) serializer

2019-03-05 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Ian Foote):

 I've been using the library linked in the other ticket with good success.
 I'd be in favour of adding something to core.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.d46c406154171f215f5e7a6cb4b825e1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30190: json lines (jsonl) serializer

2019-02-18 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Claude Paroz):

 See #22259 where you'll find a link to an existing third-party library.

 Personally I would be open to integrate this into Django, as several
 tickets were open in the past wrt memory issues with big files. However,
 this should indeed be discussed on the django-developers mailing list
 first.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.572972fffae8b84de20ab3626f745427%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30190: json lines (jsonl) serializer

2019-02-18 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 Hi. Thanks for the report.

 This seems like a reasonable idea for a serializer. It also though seems
 perfectly suited to be wrapped up as a third-party application. In general
 we tend to prefer those, rather than increasing the surface area of the
 code in the core framework. As such, we'd need to see if there was a
 consensus on mailing list to add the code. I wouldn't be surprised if a
 third-party app didn't already exist, so we should look into that too.

 You'd need to add test cases as well as docs. I'd suggest putting that
 together as a third-party app on GitHub say, and then seeing if there was
 a willingness to move that into core, if that's what you want to do at
 that point.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.f076f2de3cd716ff5b5a06a55363%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30190: json lines (jsonl) serializer

2019-02-17 Thread Django
#30190: json lines (jsonl) serializer
-+-
 Reporter:  aliva|Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Core |  Version:  master
  (Serialization)|
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by aliva):

 * Attachment "patch.diff" added.

 patch 1

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.7bf02d77c2e4e3513acbecc1c88d4b22%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.