IRC log of #novawebdev for Monday, 2026-05-11

jelkner has quit (Quit: Leaving)11:43
thomasboimah has quit (Read error: Connection reset by peer)12:53
smohamud has quit (Ping timeout: 480 seconds)14:28
smohamud_ has quit (Quit: Leaving)14:39
smohamud has quit (Ping timeout: 480 seconds)14:57
thomasboimahHello resl and smohamud_ 15:02
smohamud_Hi thomas15:14
smohamud_How's it going?15:14
thomasboimahI am good smohamud_ and you?15:15
smohamud_Good15:17
smohamud_what you working on today?15:17
thomasboimahhelping gabriel_jetro understand the LiberOrganize .json file dump and load process. I will also delete the mdlatino server later, since they have moved to WordPress now and are no longer with us.15:18
smohamud_nice15:19
smohamud_are you discussing in person or chatting about it on IRC later?15:19
thomasboimahin person15:19
smohamud_If it's not too much trouble, I would love to join on IRC and learn the process too.15:20
thomasboimahsure I can explain to you 15:28
thomasboimahSo right now, when we switch from secosol branch to sjcompute or other branch, the Secosol box content still shows up in our local site.15:30
thomasboimahThat's because all box data lives in one big data.json file that doesn't change when we switch branches.15:31
thomasboimahNow to fix this: We dump only the box content for each partner into a separate .json file (e.g., secosol_data.json).15:33
thomasboimahThen when we load a branch, we load only that partner's content.15:33
thomasboimahlet say i am on the sjcompute branch15:33
thomasboimahand using the box feature15:34
thomasboimahFor the content of the sjcompute to show/display we need to load the .json. maybe let say we name the json for sjcompute "sjcompute.json"15:35
thomasboimahto load it we will run: python manage.py loaddata secosol_data.json15:35
thomasboimahto load it we will run: python manage.py loaddata sjcompute.json15:36
thomasboimahNow the question I have to yet dump data how will I load it?15:36
thomasboimah*is15:36
thomasboimahSo before loading data it need to be dump15:37
thomasboimahIn LiberOrgainze when we are dumping we only dump the theme box content 15:38
smohamud_Ok, so instead of a single big JSON, we now have several indivdual JSON files?15:38
thomasboimahIn libreOrganize, boxes are what hold homepage content like text15:38
thomasboimahYes!15:39
thomasboimahThat's it15:39
thomasboimahAnd to dump the box data into a JSON file we run this command, let say we are dumping secosol box data: python manage.py dumpdata --indent 2 boxes.Box > secosol_data.json15:41
thomasboimahthe --indent 2 makes the JSON file human-readable15:41
smohamud_Ok, is this only an issue when coding?15:41
smohamud_Back when the big JSON file was there, as long as someone fixed the boxes, the customers never had an issue?15:42
thomasboimahNo, this is NOT only an issue when coding. It affects the live website too.15:44
thomasboimahthe customer never had an issue, but we as developers did, and we wants us to fix it now so our messy setup doesn't eventually become their problem.15:45
thomasboimahI don't know if i am answer you question the right way. If I am off track please let me know.15:46
thomasboimah*answering15:46
thomasboimah*your15:46
smohamud_You answered it and my instinct was correct --- it's a problem with the development workflow that could spillover to customers if we're not careful. 15:47
smohamud_So, we'd better remove that possibliity..15:47
thomasboimahYep15:48
smohamud_ has quit (Ping timeout: 480 seconds)15:55
thomasboimahOkay smohamud I am going pick up something in-town I will be back15:56
thomasboimah*to15:57
thomasboimah has quit (Quit: Leaving)15:57
smohamud__ has quit (Ping timeout: 480 seconds)15:58
smohamud has quit (Ping timeout: 480 seconds)16:09
resl has quit (Quit: resl)16:44
freena has quit (Quit: Connection closed for inactivity)18:37
smohamud has quit (Remote host closed the connection)22:22

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!