| 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 | |
| thomasboimah | Hello resl and smohamud_ | 15:02 |
|---|---|---|
| smohamud_ | Hi thomas | 15:14 |
| smohamud_ | How's it going? | 15:14 |
| thomasboimah | I am good smohamud_ and you? | 15:15 |
| smohamud_ | Good | 15:17 |
| smohamud_ | what you working on today? | 15:17 |
| thomasboimah | helping 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_ | nice | 15:19 |
| smohamud_ | are you discussing in person or chatting about it on IRC later? | 15:19 |
| thomasboimah | in person | 15:19 |
| smohamud_ | If it's not too much trouble, I would love to join on IRC and learn the process too. | 15:20 |
| thomasboimah | sure I can explain to you | 15:28 |
| thomasboimah | So 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 |
| thomasboimah | That's because all box data lives in one big data.json file that doesn't change when we switch branches. | 15:31 |
| thomasboimah | Now to fix this: We dump only the box content for each partner into a separate .json file (e.g., secosol_data.json). | 15:33 |
| thomasboimah | Then when we load a branch, we load only that partner's content. | 15:33 |
| thomasboimah | let say i am on the sjcompute branch | 15:33 |
| thomasboimah | and using the box feature | 15:34 |
| thomasboimah | For 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 |
| thomasboimah | to load it we will run: python manage.py loaddata secosol_data.json | 15:35 |
| thomasboimah | to load it we will run: python manage.py loaddata sjcompute.json | 15:36 |
| thomasboimah | Now the question I have to yet dump data how will I load it? | 15:36 |
| thomasboimah | *is | 15:36 |
| thomasboimah | So before loading data it need to be dump | 15:37 |
| thomasboimah | In 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 |
| thomasboimah | In libreOrganize, boxes are what hold homepage content like text | 15:38 |
| thomasboimah | Yes! | 15:39 |
| thomasboimah | That's it | 15:39 |
| thomasboimah | And 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.json | 15:41 |
| thomasboimah | the --indent 2 makes the JSON file human-readable | 15: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 |
| thomasboimah | No, this is NOT only an issue when coding. It affects the live website too. | 15:44 |
| thomasboimah | the 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 |
| thomasboimah | I don't know if i am answer you question the right way. If I am off track please let me know. | 15:46 |
| thomasboimah | *answering | 15:46 |
| thomasboimah | *your | 15: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 |
| thomasboimah | Yep | 15:48 |
| smohamud_ has quit (Ping timeout: 480 seconds) | 15:55 | |
| thomasboimah | Okay smohamud I am going pick up something in-town I will be back | 15:56 |
| thomasboimah | *to | 15: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/!