Thursday, May 9th, 2024, 06:21 UTC | ||
[06:21:20] | Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d81:ed01:7a84:3cff:fedf:a99) has joined #mythtv | |
[07:25:54] | SteveGoodey (SteveGoodey!~steve@2a00:23c5:7d81:ed01:7a24:afff:fe9d:c233) has joined #mythtv | |
[08:44:36] | stuarta (stuarta!~stuarta@2a02:390:790f:1ab0:7cdf:5fff:fe38:1b59) has joined #mythtv | |
[08:44:37] | stuarta (stuarta!~stuarta@mythtv/developer/stuarta) has joined #mythtv | |
[08:44:37] | stuarta (stuarta!~stuarta@2a02:390:790f:1ab0:7cdf:5fff:fe38:1b59) has quit (Changing host) | |
[08:44:37] | Mode for #mythtv by ChanServ!ChanServ@services.libera.chat : +v stuarta | |
[08:45:01] | ** stuarta waves to everyone ** | |
[08:45:37] | stuarta: | wow. been away so long my prod setup is still on v32, and i see v35 is in development |
[09:37:14] | Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d81:ed01:7a84:3cff:fedf:a99) has quit (Quit: Konversation terminated!) | |
[09:44:11] | SteveGoodey: | stuarta: Hey, good to see you back. |
[09:45:41] | SteveGoodey: | stuarta: Time to get upgrading. |
[09:45:51] | stuarta: | hah |
[09:46:06] | stuarta: | back? it's more a flying visit |
[09:46:27] | SteveGoodey: | stuarta: Don't say that. |
[09:46:54] | SteveGoodey: | stuarta: You've been missed. :-) |
[09:48:48] | SteveGoodey: | stuart m turned up a while back as well. |
[13:15:33] | hampton: | welcome back stuarta |
[13:16:47] | mad_enz (mad_enz!~mad_enz@2607:f2c0:e241:fe84:27e6:ee9:55b8:c0a) has quit (Ping timeout: 268 seconds) | |
[13:18:14] | SteveGoodey: | hampton: How have the severs been, behaving themselves? |
[13:20:46] | hampton: | I tweaked nginx to throttle the bot load to a trickle, and things seem stable now. |
[13:20:55] | Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d81:ed01:7a84:3cff:fedf:a99) has joined #mythtv | |
[13:21:56] | hampton: | I could probably ease up a bit, but I'm waiting until after things get moved to the new VMs. |
[13:27:21] | SteveGoodey: | hampton: Thanks for you work on that. |
[13:27:55] | mad_enz (mad_enz!~mad_enz@2607:f2c0:e241:fe84:ef3e:7e06:66fb:6cf7) has joined #mythtv | |
[15:53:25] | warpme (warpme!~warpme@84-10-100-139.static.chello.pl) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) | |
[16:03:12] | warpme (warpme!~warpme@84-10-100-139.static.chello.pl) has joined #mythtv | |
[16:41:11] | warpme (warpme!~warpme@84-10-100-139.static.chello.pl) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) | |
[16:44:44] | mad_enz (mad_enz!~mad_enz@2607:f2c0:e241:fe84:ef3e:7e06:66fb:6cf7) has quit (Ping timeout: 256 seconds) | |
[16:58:05] | mad_enz (mad_enz!~mad_enz@2607:f2c0:e241:fe84:5c15:a850:406f:1f7f) has joined #mythtv | |
[19:08:33] | stuarta: | hampton: i think you emailed me about 3 months ago and i haven't even got around to reading it! |
[19:38:27] | warpme (warpme!~warpme@84-10-100-139.static.chello.pl) has joined #mythtv | |
[19:40:07] | hampton: | It was 1) a memory test to see if you can remember what databases are what, and 2) a question about sso and keycloak. |
[19:40:28] | stuarta: | i've just found an email thread about my services app |
[19:45:07] | stuarta: | which is incidentally lacking in any documentation :-p |
[19:47:14] | hampton: | I've been trying to figure that one out for the last day or so. I have it mostly working on a Fedora 39 test system, but any email/documentation would help. Especially on how the database gets loaded. Its been a crash course in Ruby on Rails for me. |
[19:48:29] | stuarta: | so RoR has a venv, a bit like python |
[19:55:38] | stuarta: | iirc there's a rake command to print the tasks available and the you can just run the task using rake. i looked into, but never got around to, some form of cron based triggering to 1) update the DB regularly 2) auto approve submissions 3) not even sure i implemented submission approval 4) never got around to a UI |
[19:57:05] | stuarta: | this is the actual task that does the heavy lifting https://github.com/MythTV/services/blob/maste . . . /picons.rake |
[19:58:23] | stuarta: | rake -T |
[19:59:28] | stuarta: | then running it is basically `rake <taskname>` although there might be some shenanigans around encrypted secrets and using the right environment |
[19:59:44] | stuarta: | like `RAILS_ENV=production rake <task>` |
[19:59:49] | Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d81:ed01:7a84:3cff:fedf:a99) has quit (Quit: Konversation terminated!) | |
[20:01:30] | stuarta: | around the DB, it autoloads the DB for the env it's running in |
[20:03:54] | stuarta: | main bits of use `config/routes.rb` maps the incoming requests to controllers |
[20:04:12] | stuarta: | always worth starting there |
[20:05:43] | stuarta: | and the app directory holds everything useful for the app, basically MVC bits, and the rest is magic pixie dust |
[20:07:30] | warpme (warpme!~warpme@84-10-100-139.static.chello.pl) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) | |
[20:07:51] | hampton: | Thanks. I'll spend some more time looking into it. I first tried copying everything from polaris and then updating the gems, which didn't go well with the delta from F35 to F39. As a test I tried starting with a new project and copying config/routes.rb and the controller code, and now have a mostly working site. I think I understand how all the MVC stuff works now, but still trying to get my head around how the model pulls from the da |
[20:07:51] | hampton: | tabase and how the database gets loaded. |
[20:07:56] | stuarta: | a lot of rails is abstracting the gory details of databases, indexes and foreign keys |
[20:08:43] | stuarta: | the model doesn't "pull" per se, that's more the abstract definition of how the data is stored, in a DB agnostic way |
[20:09:11] | hampton: | I was trying to use the Fedora packaged gems, and they have most of the ones that are used by the services site, but I that httparty is one of the few used by services that Fedora didn't package. |
[20:10:00] | stuarta: | that won't work, you need to treat it like a venv. there's a command that i can't remember off the top of my head, that's in many guides which basically sets that up |
[20:10:40] | hampton: | IIUC, the database is presented as a class of objects, and you can ignore all of the magic that happens underneath. |
[20:10:41] | stuarta: | that's what Gemfile|Gemfile.lock is for |
[20:10:48] | stuarta: | yup |
[20:12:07] | stuarta: | db/schema.db will give you the actual table definitions (still in an abstract way) and you can pretty much query against anything |
[20:12:43] | stuarta: | i find running it interactively is useful for understanding as it is quite chatty and you'll be able to see what it's doing |
[20:12:55] | stuarta: | `irb` once the venv is built |
[20:13:08] | hampton: | What gems you need, and the actual versions used. Those can be locked to either system wide Fedora installed gems, or locally installed gems in the vendor/whatever directory, but I don't think you can easily use both. You're definitely limited in gem version choices if you use the fedora packaged ones. |
[20:13:41] | stuarta: | yes, that's why it's running under a standalone username in prod |
[20:13:52] | stuarta: | "unpolluted" |
[20:14:17] | hampton: | I think its time for me to toss my current test build and start again. I've learned a lot in the last two days. |
[20:15:02] | stuarta: | this app was my second proper attempt at a ruby app, the first being smolt 2.0, which worked okay, but again had no UI |
[20:15:21] | stuarta: | or was it the other way around? |
[20:15:24] | stuarta: | can't remember |
[20:15:45] | hampton: | I haven't looked at smolt yet, other than to note the huge database size. |
[20:16:11] | stuarta: | that's still running the old hideous python code, that throws errors at the drop of a hat |
[20:17:22] | stuarta: | there's my smolt 2.0 -> https://github.com/stuarta/smolt2 |
[20:33:36] | SteveGoodey (SteveGoodey!~steve@2a00:23c5:7d81:ed01:7a24:afff:fe9d:c233) has quit (Quit: Konversation terminated!) | |
[20:36:25] | cyphrCat (cyphrCat!~ciphrCat@user/ciphrcat) has quit (Quit: outta here) | |
[20:38:30] | ciphrCat (ciphrCat!~ciphrCat@user/ciphrcat) has joined #mythtv | |
[22:03:07] | ciphrCat (ciphrCat!~ciphrCat@user/ciphrcat) has quit (Quit: outta here) | |
[22:06:58] | ciphrCat (ciphrCat!~ciphrCat@user/ciphrcat) has joined #mythtv | |
[23:11:21] | Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d81:ed01:7a84:3cff:fedf:a99) has joined #mythtv |
IRC Logs collected by
BeirdoBot.
Please use the above link to report any bugs.