- Podcasts
- CodingCat.dev Podcast
- Code with CodingCat.dev: GitHub CMS
Code with CodingCat.dev: GitHub CMS
CodingCat.dev Podcast
- June 30, 2024
- 1 h 42 min
- Episode 4
About this episodehttps://codingcat.dev/podcast/github-cms
Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Code with CodingCat.dev: GitHub CMS
Welcome perfect beeps to code with coding cat. My faithful host Brittany Postman is on vacation so I'm having to do this one all alone. So if, if, if anyone wants to join me on the learn, learn build, teach discord, LBT, feel free. I put the stream yard link out there. Just join backstage and happy to jump on with you. In the in the past couple rounds, what we've been doing is building out svelte kit.
So we're, we're trying to embrace at Coding Gap, we're trying to embrace open source even more. So we're investing a little bit more into it and trying to support creators. I think one of the one of the hardest things in web development or just development in general is the learning side of it and staying up to date on on everything. And so we're trying to figure out how to best try to run a site kind of like free code camp, but yet be able to pay back our authors and things like that. One of the struggles as we're kind of rebuilding this out with spell Kit is that we want to be as open as possible about that. So we might change up sponsorship. How we do that, like maybe go through GitHub sponsorships. And what was the other thing I was thinking, oh, instead of doing like Stripe memberships where you actually have to pay to join directly on our site, we would just take that away and see if we can just allow it completely free, like free code Camp, but then like work on that
sponsorship piece even more. So no worries, No worries, Anthony. We can talk offline for sure. I, I thought it was a hot, hot deal. That's why I picked it up. But we can definitely talk about creating more content for sure. OK, So what I want to do with all of that said is kind of do some research live on air and show you how I would mentally go about researching some of this stuff and then probably build an API using, I think GitHub issues. At this point, I'm still trying to wrap my head around how we would actually lay out the content for courses and actually have sections and lessons and all that stuff still in there. So we're going to take a look together, going to build it live, and I'll show you the site that we've currently been working on, even though it's not that far into it. Let's do this for now.
She's got all kinds of stuff out on spell sirens. Yeah, so that's why we're kind of going down the spelt route. I love kind of learning this new language, not language framework for me, it's been really interesting, especially as I fight through some of the React things last night on I'm trying to create our back end a little more fully.
So we have that out and we are actually serving that right now. So let me grab that. Maybe as you can tell, it's Friday. Hope everyone's having a good time. Yes, thank you. It is. Is it a language? I keep thinking it's a framework. That's interesting. That's a really good point. I guess it compiles out of the way.
So yeah, what do you call it? OK, spelled language. Thank you. Thank you for the correction. OK, so as we're out here looking at this, let's take a look at the site. So this is all it is currently. It brings up the index and then on that index, it also hits our Notion back end for our development back end.
So we're actually getting all of the different podcasts out here. We did build this giant page apparently, oh, this is supposed to be our card section as well. So once we hit a page, it's actually looking up the cover. This all works fine for like the stream and things like that, and I think we could easily put this in mark down and put it into the setup.
If we go look at our coding cat site, it's a little more complicated than that. So on our coding cat site we do have simple items like that with tutorials and podcasts and the blog. Those are very straightforward when we get into them. The more difficult item is on the spell is I'm just going to put that up.
That's great. Thank you. Thank you for the correction. It's a language because it has a compiler spelled kid is a framework. OK, good. So I I might have said the wrong word, but spell kid is framework. OK. And just this was the comment before that spell is a language. Perfect. Anthony is always on top of it. And thank you for watching.
I really appreciate it live on a Friday. So once we dive into this, there is this courses piece, though courses get a little more complex because there's certain things that we like to share in a course. So for instance, let's say we have this intro to Svelt and we want to do our svelt set up every single time.
So like we might want an intro and then a set up. We need to be able to capture that through multiple different courses. So that's why we have courses separated from lessons. So let me show you kind of what I've been working on for our current next GS site and show you what that looks like. Let's see Mark Huggins, he's telling me that he's he's in a meeting till 11.
Let's see. OK, so with all of that said, let me show you the Notion back end and how this kind of lines up to our front end. So currently we have this all in Notion and the way that this breaks down, which is really cool. And so like with Anthony possibly doing some more like videos for us and coursework and things like that. Maybe not coursework, I'm probably putting words in your mouth, a video for something that we're working on. What I would do with Anthony is I would come into our courses and I would look at, for instance, I'm working on our JavaScript for a 10 year old right now. I would then say, OK, well, JavaScript for a 10 year old has specific sections I need lessons on. So if I go look at my section and let's let's open that up completely so you can kind of see what this breaks down like so in sections, why can I do that, right? This is what I'm looking for.
So in sections, it actually breaks it down a little further. So when I was kind of giving that example, if we wanted to reuse JavaScript for a 10 year old and like we have types and you want to use this lesson about types in any other JavaScript tutorial or anytime you want to talk about strings, you can just use this specific lesson within a different section on a different course. So it's very reusable, which is awesome. Let's see here.
So as we, as we kind of build that out and we're kind of thinking about, OK, how would we transition all of these sections into GitHub issues, we still kind of need to correlate those together. So my thought right now is we'll dive into the GitHub API and kind of check out what the difference is and set one up and see if we can just jump into the the API and start pulling different data in and just check it out from there. So what we are going to do now is break off our current branch. So I am going to show you how I would do that visually. Some people love doing this on the command line. I actually just put up a Twitter pull out there. I'm kind of curious how other people do this often. So let's say I want to create a new branch and I'm just going to call it feature.
And then I don't know, like GitHub server. So now we're we're working on a a separate a separate branch than our main branch. So we can do some other things like we could completely pull out this service called Notion server and instead implement our GitHub server. So let's go ahead and jump out to GitHub and take a look.
So we basically created 2 files. One is the git file and the other is the read me. So let's go ahead and open that up in code as well. So code on the command line, we'll just open up VS Code in a new window for us. The only thing out here right now is going to be the read me. If you like using the command line, there is a GitHub CLI itself, so you can do GitHub. I believe it's repo view and then W for web and it'll open that up.
So fun little tips on the GitHub repo and sweet. Yeah, both with git and then GitHub CLI. Nice. I always forget commands. And so honestly, the visual piece for me is is also a big one. Yeah, that's the same the the diffs and stuff like that is is kind of key for me as well. So when I'm when I'm out here, let's say I have our full repo open like this. The cool part is this kind of view. So I can see like all the different branches and like what's going on in our main repo like this, which is why I really like it.
So if you haven't used this, this is Mishko who created Angular, created this little plug in extension. I should say you can just put a little emojis in. And then of course, once you're done, you can always do a, a squash so you can get rid of those. But anyways, complete tangent. So when we're in here, we now have a repo that we can work out of with the svelte kit back in.
So I've seen people do like all their courses and a lot of their docs and things like that and mark down out here in files, but that's a little more challenging when we have to do things like set up that whole complicated connection between lessons and things like that. So what I was kind of thinking of, and maybe this won't work, but either checking out issues or the wiki even to try to put this together.
Also, I'm going to do a wiki kind of the same way. So this will be our wiki page called course one. And the reason that I love the idea of using get Hub as our back end is because you get a lot of things right out of the the bat with this. So if I wanted to say, take a picture, I can immediately just paste that in and look, it's already got my PNG set to go. I believe these are behind a pretty decent CDN already. Or we could run a little command to load those up to cloud and area like we've been doing with our Notion pages. Let's see.
Maybe not, maybe not. I think there's something else going on there. Anyways, so now we've got a a page that we have in our wiki, I believe that you can create kind of some paged items relating to other ones. So how we have home and course, I think within course we can actually create sub items. Oh man, it's been a minute.
So it's create a new repo, set the remote and push to main all in a single command. Nice. That is a good one. I I would have to alias this for sure though. That's a lot of that's too much typing for me and dude, it is the name of the repo. Of course it is awesome. Nice. OK, so let's dive into some APIs and see what we can do with this. So let's go to GitHub APIs and here's our REST API. So I did notice they have this thing called code something. Let me see if I can find it.
Let's see what else we have. Node 10 and below, Node 12 plus sweet Dino. I really probably need to get on this whole Dino train. If everyone saw the new fresh framework that came out, Framework hopefully is the right term. So basically you're running Dino at the edge and then doing SSR at the edge, which is it's kind of intriguing to me. So I'll definitely have to check that out sometime. I'll put it on the back burner for the task list. Sounds like Apprite might be interested in in checking that out.
So you could host Apprite and then connect to it on the Dino side through our node JS SDK. So very interesting. Oh, sweet, you talked with Luca. That's awesome. Very cool. You should you should pass on my way for the podcast. We we always have to like share these people around, right? So for the Oxy Kit API, let's check out how we do this. So we're gonna need a personal access token. I don't know if these are hidden right away or not, so I'm gonna go check that out first.
That's awesome. Needs to update that. Yes, Remix conf is over. OK, so where we're at, we've got Octikit installed. Yes, personal token. So let me jump over to my personal token real quick. Settings. This is not something I do all the time. Passwords, SSH, gotta be getting close here and now. Google right settings, personal access. Oh, it's in developer settings.
OK, so let's go back there. If you can't see this, let me know. Try to make it a little bigger. OK, So what we're doing now is finding a token so that we can tap into get hubs APIs. So we'll go into the personal access tokens. Apparently I have oh, steps and steps and still in here. Somebody might know that one.
Let's see here. So we're going to generate a new token and we'll call this CCD spelt kit back end. I don't know how long we're going to work on that. So we'll just now expire. Maybe, maybe there's a really long time. No, we're just going to do that because I don't know how long we're going to need this for.
So we're going to select scopes. Definitely need repo, but probably just read only. Let's see here. I don't even know if we need that. Let's see, right? Definitely don't need admin, I don't think. Right, Right. Read discussion. Read discussion. Might be interesting. We might be able to use discussions on this for threaded stuff.
Reproject. I don't know if that matters. Full control of private repositories? No, I think it's just this. I guess we'll find out. I think that's it. OK. I hope we don't use this in the future 'cause now you've all seen it done, done, done. All right, so we have that new token. Let's go ahead and check this out. So we're going to do new Octa kit auth personal token. I don't want to type that, so we'll put that in that in this. All right, So I think we're sitting OK now with this REST users get authenticated.
Let's do. We'll put that into a request, and for now, we'll do this. OK, so if we were to add this into our felt page, let's just stick it in to add index. Nope, let's put it right here. Let's put it right here. So instead of getting our perfect stream, we're gonna switch this over to issues and then we need to import our issues. And yeah, for now I think we are already console logging. So we basically are trying to grab all the issues and see if this works.
So theoretically, that should have called. Did I not put that at the right spot so we're in podcasts index, or did I put it in the slug? Oops, I meant to put that in the other spot. No complete side like notes and like maybe this is complaining. I don't know why in in TypeScript they didn't do import and then like the area to import from and then the packages or the exports.
I don't know if that's the data or if I console log something weird. Probably, yeah, that's this that we were messing with last week. Clean that up. Clean that up. All right, so it looks like our request is coming back empty, but I don't know if that is a issue with our protections. So let's go find out what it takes for our GitHub API to access issues.
It probably has no clue what this is. Hey, there's Mark. What's going on? What up Mark? Hey, how's it going? Thanks for joining. No worries. How was your Friday? I love, I love having another person on here. Otherwise I feel like I'm talking on screen. Yeah, I know. Friday's today's good. It's a light meeting day.
I had one, one meeting. I got some stuff to do after lunch, but I figured I would take 1/2 hour 45 minutes or so and see what's going on. I really appreciate it. Yeah. So I don't know if you've been watching, but we are, we're kind of messing around with our transitioning coding cat over to spelt Kit.
And also like currently we're running off a Notion back end. We've been trying to like talk about like how to open source our whole platform more. And so the thought being that maybe we'll use GitHub instead of Notion to like put everything out there. And I know like traditionally that might be through like markdown files and stuff like that. Yeah.
Am I just completely blind? Let. Me see if I can. Find. Oh, jeez, yes, I am. It's just down here. OK, let's get down here. Discussions. Sweet. Let's set up discussions. Right 'cause these feel more wiki like than an issue kind of would. Yeah, I actually like brought up the wiki thing too. And I'm like, man, can you only create like one page or can you do like embedded pages?
What's that look like? So this is kind of cool. Yeah, I think it's like one page. So let's see if we yeah, sure, let's, let's put a announcement out there. Woo Hoo, gotta love that. I don't know why whoever creates that we should probably sponsor and send some money back. OK, so we have a discussion.
So what? What do you think like setting up course would look like if we just do like a new category called Course? Yeah, what I mean, and it feels like it would be. Open-ended discussion. Or would it be an announcement, like if you're announcing a new course? Maybe, but I'm thinking like the course content itself could come out of here, right?
Right now I think these support like the full markdown just like issues. Yes. I'm kind of like, I'm still like stuck a little bit on the OK, like we could start that and other people could join it, right? Yeah. And then like so is is that on? Is this an open GitHub? Yeah, yeah, yeah, for sure. Let me if you want me to.
OK, so I just added a comment. Interesting. So how would we go about writing? So I guess, I guess realistically like we could have a course. That has all the. Comment could be a lesson within that course. It might be kind of interesting. The problem I would have is like sorting and stuff you'd almost have to use like up votes.
Yeah, or create like, I don't know all the like, you're just trying to take this and then turn it into a page on the site. Yeah. So essentially what we're trying to replicate is here's our Notion back end. And on Notion we have, so we have our basic stuff like a tutorial we could easily do, right, because it's a single page. We could do like one discussion or one whatever out there and you can put it in and we could have our like front matter. What is yeah, front matter, I guess whatever you want to call it, like metadata and then just write our posts like all is good.
Terrific part that we get into is we have somewhat of a complicated way that we do courses. Courses have sections and the reason they have sections is because we then can use any lesson that we create. We can reuse it in another courses like section, lesson line. Later on. Later on, yeah. I wonder like.
So I wonder if we also have to do like multi repo like every course would get its own repo. No. What if you created labels for courses? And then? GitHub labels and you can create like a a course, you know course colon the name and a section colon the thing right and use some labels to that you you would have to curate the list of labels that people could pick from. Sure, but no, I love that idea.
That's really cool. We use it a lot. We use GitHub projects, so we use a lot of labeling to kind of manage issues. That would that could be another way we could even do this probably I would think like well. Yeah, 'cause you can sort of. So the the problem is, is they don't really allow you to group them. So we do like a like, there's no like epics kind of thing, at least in the classics.
Cool. So I don't know if the new like the project's beta, if that supports like an epic kind of workflow 'cause then you could create an epic that is the course and then individual tickets that are the sections or something, right? Yeah, Does this Go projects go all the way up to your top level, go to your profile and create a new project. Wow, really?
Yeah. And then you when you create the project, you then link it. You can link it to a a repo. That's kind of cool 'cause then like we really could probably even do multi like repo for each course. Both. Yeah. And then just pull them into the project and then reference the project. So many ways to skin this cat.
Yeah, and I think you have to link it to a repo to then start creating issues. OK, cool. Maybe at least on the old one, you kind of had to link it. Let's. Try that and I can add any column I want. Sweet. Yeah, I don't know. Oh, and then we can link a pull request, so that could even be how we tie that in.
Or a repo. Yeah, so I think you have to link it. Well, if you want to show up in a repository, you have to link the repository. OK cool, cool. That's interesting. Why is it only find that one? Is it because that's the only one that has issues in it? Do you have issues in? We do have. We did create some issues in here. And that's all.
It's all under the same account so. OK, so let's see here if I refresh this quick access to relevant projects and that project. OK, interesting. Yeah, I wonder if, I wonder if it's under more under the top level settings, if you can like link repos. So I think that is it that three level though, if you go back to the project, like in the top right corner, there's like the little three dots.
No workflows, archive item settings, maybe it's under settings preview. No, How do you like it? I haven't used the new beta one yet. That's part of the the problem. And the other one, when you create an issue, you have to assign it to a. Like when you create a new item on the board, you have to assign it to an issue. Oh, OK, that's.
Right. Maybe that's not. Maybe it's different now, like maybe it's not as. This could be here. It'd be cool though, like add. I'm surprised you can't add a repo from here. Well, that's just like you're just adding columns, right? Yeah, yeah. You know that actually associating it I'm. Surprised you can't like oh.
Maybe. Oh, OK. OK, it's. Just weird that it didn't pull them up by. Yeah, that was so weird. OK, so there's our back end. I'm curious now. Can we do anything with that? Well, if you click on the actual like if you click on the title, will it open the the issue? Yeah. So now you can add labels you can do. This seems like it's like still almost too high. We'd we'd almost have to do a like a repo per lesson at this level I would think, and then label it that's. What I don't know?
Then we have a hook to a repo and then that repo could have all the lesson info. Maybe even Justin Markdown at that point. As issues probably, yeah, yeah, because it's so the the the projects also just sit on top of issues that allows you to manage issues and create like automation and stuff around them.
Yeah, it's kind of, it's kind of cool because like let's say someone wanted to come right for us, we could assign the like issue to that person and they could they could manage it from there on out maybe. Yeah, I think then that would just be like the body of the issue would be the, the course, right or the the, the lesson. Yeah.
And then we can like where do we create labels? Let's see, no settings maybe oh their statuses that we can add. What other fields are there? There's gotta be a way. Are labels top level? They might be. I think labels are on the individual project like. I think you can add probably a label to the like a labels column right into that table. Yeah, they have some like pre can't. That's weird.
We at least have to put some sort of caching, which I think stepson was mentioning. They have some stuff, so we'll see, but oops. Did you happen to find managing label? These are default labels. Cool. Yeah, I think they might be. Main page of the repo. Interesting. Since we're not at a repo level, I wonder if does it pull it in from that repo? Yeah, I think when it's associated with the, when the issues associated with a repo, because they have to be, it'll pull in the labels from that repo. So if you go add a new issue, a new label to the. Let's see.
So if I go up to let me go here from project, do that, let's refresh this ones. Interesting. So I added a issue 'cause we're kind of headed down that path. Oh, and then we created a new one from. Yeah, so that's what it does. The the projects just allow you to manage issues and you can actually manage them across repo too, right? So you can associate a project to multiple GitHub repositories for the to pull any issues from those repos. OK, so.
So you could do a repo per course if you wanted and then manage those all in the project and then use the projects API to pull those into the site. I'm trying to think through if we wanted to reuse a lesson though across multiple courses. Yeah, then they would all need to be in one repo because you can't. You couldn't share the issue across. Could we somehow break it up where a pull request is a is a lesson?
No, that wouldn't work. Yeah. Interesting. Yeah. Yeah, I don't know if projects is is cause projects doesn't have the epics, which is kind of what I was thinking. If they added that support it would be nice 'cause then you could group them, right? You'd have your course labeled as sort of AI mean. You can still do it with labels.
If you label them all, you know, you give a, the course name, the type, or there's a, you know, the course, a lesson, you know, whatever it is with labels and then using the API. And that's all just issues, right? Whether you're using projects or not. And then you can use the API to kind of get all the the issues that are labeled to a specific topic and then group them by those labels as you want to lay them out, right?
Could you associate like a labeled like let's say it's a lesson label I'm trying to think through. I wonder if we got. Yes, you would give it like you could give it like a the label of lesson, right And then another label that is the name, maybe the name of the course. So let's try this 'cause I'm like mentally struggling here.
Yeah, so if you create a bunch of labels. Oh, come. On right, and you can even do like you can do like type lesson, type colon lesson or something, right, to make it easier to find them. Yeah. See, I was trying to like slowly think through how how would we order it because we need to put like in a section. Here's.
Yeah. So you'd have like a types type, course type lesson type section, right? And then group them that way. So if we do like lesson like that. Yeah, even type colon lesson, right, to make it just to make it easier to know like what it is, right? Yeah. So something like that. And then you could also do the same thing for a section or a top level course, right?
Oh, I see, I see. So OK, let's let's do this for real. And so like I have a script for a 10. Yeah. So then you would basically as you create the issues, you would stick the name on it and then the type on it. OK, so we have both labels because they can have multiple. So let's delete this one for a second close.
Section and then a number like section colon one or like the name of the section colon one. Yeah, you could to get the ordering there. Like something like let's let's see. So I I'd almost wanna do like the section itself. So maybe I don't know if it makes sense to also do. Oh would it be like course name and not name? And then maybe, yeah, that's one sections. Have will the sections have headings? Yes, they do.
But actually, would we even need this one, this type then? Yeah, because you'd want to be able to associate the that course name. You still want to be able to associate to the section so that when you pull back the thing, right, Right. A section would have more labels than a course per SE, right? Yep, Yep.
OK, you kind of walk your way down the tree. Yep. So now we do. Oh my gosh, so. Maybe like section? Yeah, like that and then? Whatever. No, I, I, no, no, no, I I think like, so that's, that's good, right. Then you'd have another label that is like section name and then the name of the section, right? Sure, sure.
And that would go into, that would go into all of the all of the sections for this, right. Yeah. So you'd have one of those for each section, and then maybe you don't need the types if you're going to do the naming like this. Yeah, that's what I was kind of wondering if I can search by like that name right there.
Yeah, if there's a, if there's a pattern where it's like, you know, the the entity, like the top level entity, whether it's a course, a section, A lesson, right, like, yeah, lesson name. I don't even know, like variables, yeah. Is there a limit on labels? Because I feel like we would have a shit ton of labels. Doing it this way, it would definitely be a shit ton of labels.
Oh, we lost. We lost Anthony. See, Anthony, I'm terrible at watching the the comments. Brittany's on vacation and still all over it. Thanks, Britt. I mean the other thing you could use too is maybe the courses are milestones and then you put the issues under the milestone and then you label them that way.
Kind of cool for these dates to be like the release date too. So like if it releases on that day? Oh yeah. Which is kind of what we'd want for our like everything, everything needs to have a date where we can actually pick up. Yeah. So you don't want to show it before that date, right, as you're iterating on it. That makes a lot of sense.
So now you're. I wonder if we would need anything like, Nah, maybe that's OK. So OK, let's go to our. And now if you take that and you stick it in the, yeah, if you go into that one issue. So this is this becomes just our course and we put. No, this would become like a yeah, this is either a section or a lesson, right? The course is the milestone now.
Well, we would need a like course page as well, so we'd need like that milestone for the page. Does that make sense? So the milestone has a description that you can do it. Oh, oh, I did not know that. I did. Yeah. So when you go back and see that. Yeah, if you scroll just a little bit further, there's like a full description there. Oops, shoot, do.
I still think you could use a issue for this though, right? Yeah, you could. Yeah, you could make the, the issue is the the course description or something, right. And then just label it like you stick it in that milestone. So it would be a label that's like maybe it's like course details or something, right? Sure.
Yeah, it's another label. What? We what we do, Yeah, man, these labels are like interesting. It's like it's kind of open for everything 'cause you can start laying them out like that. Yeah, exactly. And then you can just, when you filter it, when you're going to call in the API, you just need to make sure that you're pulling back the right entity types based on the labels.
And I think with GitHub, you can actually drop an image tag in there, right? Because you can drop files in. Yeah, for sure. So let's see here. So then you want to label that issue, right? Or would create a label for that issue maybe? So. So this would need a like course label now, right? It would need like, yeah, it would need like a label that's like a course description or something, right? Yeah.
So let's go back. Up and that could be that could be a generic one now because it's all right it's just you know because. It's in the milestone. Exactly. Oops, we were talking about milestones. That's where my brain went. Yeah. So the only thing that this might make tricky is sharing lessons between courses, right 'cause I don't know if you can associate something to multiple milestones. I know you can like reference though like this issue references another, so maybe there's a connection there. Yeah, maybe.
'Cause if we have like our our section name for a different one in a milestone, maybe we can, I don't. Know and then I can reference the the issues and the issues are the lessons or something. Yeah, it's kind of where my head's at. I don't know if that works perfectly or not though. So we OK so we have our top level. I'm just going to delete this one because we don't need it anymore.
Yeah. So we have our top and. Then that would need a label to tell it that it's the top, right? Yeah. And so drop in this. Cool. And now we need a new issue. Yeah. And this would be. Section 1 or something, yeah. True or just whatever it just named intro, I guess. So I'm curious, would we need this as a like name intro anymore? My head's still kind of going through the IT needs to be indexed or like it needs needs to be the correct one in the array as well.
Like it needs to be the first. Yeah. So maybe it's, maybe it's section colon and then. Like a number? A number, yeah. I I'm kind of curious though, in the project, there must be like, if we go back out to that front page, there must be a view where you can do cards, right? Yeah. Like those. I wonder if we could do it that way. Oh, based on the order and you just drag and drop them. Yeah.
So if I go or maybe maybe that's just putting some sort of label on, I don't. Know no, it's yeah, it it's definitely saving them, but I don't know if it's giving them a sort order like a property or not. Like I don't know how it ends do right? This would be all courses, but I'd almost want them grouped by like all course and then all sections grouped and then.
Yeah. So I don't know, we'd have to look at the API. So I don't know if we, if you called the like if you say get me that from the projects, get me the issues with these labels if it would return some sort of sort order, right? You'll have to because you can filter these based on labels. Yeah, there must be.
So there's column field status, but is there? It'd be cool if you could. I mean, because you can drag and drop these and reorder them like as they're on the page and you can filter based on the labels, right? So if you go back to the. I wish I could find the freaking like this shows not saved. I wish I could there that that way my column will. Actually.
Oh yeah, yeah. Yeah, OK. Why is that not labeled though? Did you not save the issue yet? So this one's not a good one. We don't want that one. What we want is the top one, right? So we want this. We want this one. OK, so, oh, you have to add it to the project. Yeah, yeah. Cool, that's pretty real time.
I didn't know how quick. Yeah. So it is pretty good, right. So then you can you can sort of drag them around, but I don't know why it's not showing the label in the view. So this this view for me it like would need filtered by Yeah, we would need. To sort your filter this right. Yeah, like we need like this would be good for courses and like putting them in certain order or like if the milestone dates were good enough, that would be fine for courses. The next part of this would be trying to figure out how to create a view based on only the sections for this as well. So, yeah, so you can.
So let's see, we have no status. Yeah. I don't know if this would even make sense. This this to me, needs to be called sections almost. Then this needs to be lessons. Yeah. And I would only want it filtered by a label I think. By a milestone, by a milestone, right? Yeah. So I think you can do that if you just filter. So in that, no, in that like there's a little middle, middle window that says filter by.
Well, so I'm saying I think you can do it based on the milestone too because, right. So I think the same thing, like I think if you do milestone, I thought you could do it for the milestone because it says there's two. Yeah. There we go. So then that would only pull like this view would only pull in issues associated to this milestone.
I don't even know if you need that anymore. Yeah, that's true. We just need the milestone, right? Yeah. Well, yeah. And you, I mean, it might help to make it easier like as you're organizing the board and then you drag that into the sections and that might need a like the section name I think could just be the.
No, there's like another new issue, but I don't think it, I don't think it pulls in the defaults. Yeah, it doesn't. It didn't create the labels and the project and all that associations. That's a bummer. Yeah. We should send this to GitHub and say, hey, we want these things because we're making a CMS, yeah.
Clone the well, it's it's great when you're like sticking a bunch of issues in for a even like, you know, you sort of working a project spammed. On YouTube. Oh, are we? That's awesome. Well, thanks for watching spammers. I don't know. I don't know if they watch them. I. Didn't even have the comments tab open. I just had the private chat open. It's my first time in in stream yard like this. Oh yeah, it's it's cool, man.
Maybe. Oh, did you not associate it to the project? Did you give it a milestone? But did you not? Associate that, thank you. Cheese, opiates, Cheese and crackers. Too many variables. All right. So Yep, it moves up and down. So there's got to be an order in there. Yeah, there's got to be some metadata associated with it, right?
I'm still like trying to figure out the association here, but we'll get there. So I think you can put the lesson like the lesson. So I think you still need a section name, right? Like I think, I think having those as as labels or even a section ID right? That didn't go well. What the Wow, even maybe a section ID, right? Yeah, that's why I'm like, I, I wonder. Then you can associate the lesson like you give the section an ID and then you give the lesson the same label so that you can then group them into that section, right? Yeah.
So maybe it's JavaScript for a 10 year old and then a section and then you should be good. So yeah, I think you just need like a section, like a section and an ID, right? So section colon one section colon 2 Yeah, as labels. Yeah, yeah, yeah. And then you put that on the section and then you also add it to the individual lessons, right? Yeah.
So really, it's just that right there. Yeah, and I think the lesson name, the lesson name can even go away, right? Yeah. I don't think we need that or the course description now. No, because the course description is the title from the Oh no, didn't didn't we want the course description because we wanted it to be an issue. Well, I think yeah, OK, we'll we'll leave it for now just in case I messed something up here.
So it's yeah, section one. And then we could just have a bunch of those. Yeah, Section 2, Section 210 or something, right. And then those that should be good enough to associate these lessons. So lesson that's cool that that opens, but I can't oh, I can do this. OK. Yeah, you can add the labels and stuff here that you just can't create a new label from here. So if we wanted that as part of Section 1, it'd be cool to like have a name, but that's good enough. Yeah, like this instead of section one would be intro or something.
Like that? Yeah, exactly. So I can add an item directly. That's awesome. So lesson 2. Oh interesting, so it didn't auto assign something? It didn't assign it to the project, I don't think. That's why it's a draft. Yeah, that's annoying. So I can't like where you were doing. That was just off screen for me.
Like it's still. It's not associated to the repo yet. So I'd have to go like to this top level. Or yeah, just remove the filter, right? Because you're filtering to the milestone and it's not there yet. So. From there though, if you click on that, I think you can. I don't know that you can do milestones on these though. No, but once you associate, no.
Once you associate it to the project you can though, because the milestone is on the project. OK. Let me see if there's another. Is there project? Oh, there is a milestone. I think it's already associated to the project. It's not. It's not though. I think that's why it's still like a draft and it's not green yet.
Yeah, convert to issue because it's not an issue at first, that's why. Yeah, yeah, OK. So yeah, when you first create these, it creates just like a project list item there. You go, OK. But it's not associated to the. That's an issue associated to a repo yet. Cool, cool. And then we would just put that in both of these we would update to labels Section 2. Yeah.
This is kind of cool. I like this it's. Is it a good workflow for creating these things right? And then and then after that, does the API let you parse it in a way that you can use it? So it'd be cool if I could duplicate a whole. Oh, like a view? Yeah, it's, it's almost like I want a project per course at this point, you know, but I don't know if I could associate issues across them. Yeah you can.
I just, I wonder if it'll get confusing for oh, I guess maybe no one looks at this except for. You. I mean, they would want to see this like you would want well. That's what I'm saying like so you can create these ahead of time and filter, I think when you filter these, you could filter them to the milestone, right?
And you just create one of these and then as you add issues to the milestone, it'll populate this board and you can drag them around as you as you need to, right? And then I, I can like assign a person if they want to work on it, like outside of this or pick it up or whatever, and they can totally like write the blog posts at that or the lesson at that point. Yeah, they can write the issue.
Oh, that's interesting. OK, well, we've got kind of this part. Let's see. Let's see what this API does. Yeah. I wonder if there's a special like beta. Oops, not this. Oh. Yeah, GitHub REST API projects. Yeah, there is a projects beta API. Oh, with the graph QLAPI didn't fancy it. Yeah, using the API to manage projects. That's the one.
I wonder if that's part of Octa kit or not. Yeah. Oh. Using API to manage run. So we could straight call graph QL I guess and see how this goes. Yeah. Do you have like a playground or something? Is it they give you access to the fragrant playground? Yeah. No, that's what. I was looking for, I didn't know if it was you said call grass. I didn't know if you saw like a playground already. No, I was wondering if the authentication if I can just use a key like where we have.
But it it does get integration, so you can like have all your queries and stuff and like sync them to a git repo. Oh wow that's really cool man the the spammers, they are intense. Oh wow. Hopefully the YouTube filter is catching most of those. Let's see here. OK, so let's Notion API coding cat. Let's do this and try something new collection. And then there's an import button somewhere. Yeah, import.
And I think you can just do. No, I think you can do raw. Yeah, and just put the curl command in there. That was the one part that tripped me up with insomnia is they don't have that. You just take your whole curl thing and put it in the URL like the request, and it parses it and turns it into the right thing.
But I'm like, where the Hell's the import curl? Like why isn't this working? Oh, that's really annoying. They don't have. Variables. QL OH. They don't. Should go. Oh, I see what you're saying. Yeah, it didn't. Should be something more like that it. Doesn't like the opening of the object, does it not like the quotes?
Good question. Let's see if we can leave Jason to Oops. Nope. Powered by Versal. Nice. Why? Oh it's got all those dots in it? Is that why it like dot dot dotted things when you copied? Yeah, it might well dot dot dot I thought is. Just is that actual graphic QL? Oh, boy. OK, we're not going to do this this way and go back to the way I add it.
Since I'll probably update this later if no one's ever used Postman, I'll show you how to use this real quick. Oh yeah, I love the variables. Here and you go. Variables. Back a few years ago, I actually use this to like automate a bunch of API testing that we were doing, like taking the response from one and passing, parsing it, passing it through to the next request.
OK, that's cool. At least it made it through. Yeah, project ID, you need your your ID, right? Yeah. So is it just the name or? No, I think it actually gets an ID like if you go to your projects I think. Let's see here. Oh, maybe it does. Maybe it is just the name. Settings. Maybe name, OK, maybe, maybe it is. Well, and then does your token have read access on projects? We can go check.
For example, I'll go to replace number with project number. To find the project number, look at the project URL. Thank you this one. Project Project one of. Course, I thought I'd put one. I wonder if this needs more read writes. Well, so, but if you go back to the other one now, because now we have the project, right?
Yeah, I'm almost wondering if we need to find this first though. Like figure out why it's. Not. Fetching that. So let's see where am I setting I? Am don't use we don't use graph stuff at work. I don't. I haven't played with graph QLA whole lot. Yeah, I used to and now I'm like so out of out of touch with it, I barely can write it anymore. Oh, and congratulations on the new gig, by the way. Thank you.
I really appreciate that. Yeah. Hopefully that was. It's fun. Hey, you wanted to move and weren't like. Forcing that kind of situation for the most part, definitely. Let's see if there's projects. Admin org read. Yeah, read and write org projects. So let's do that. Oh yeah, you probably didn't have access to that, right? That's why I'm hoping.
I found examples, but they're not like the curl commands. They're all like the GitHub API, the GitHub CLI calling the API, and like passing the query and as a string. I think they're very, very similar. Oh, I didn't see the curl. I didn't see the ability to change those to curls. Yeah, I don't know at first.
No, no 'cause it's just assigned to you, a user, right? But it's not an org level thing. So I think maybe what we were using on there was the. Like org. The wrong one we were looking at like the org one and not the user one 'cause they're they're kind of separate things, right? Oh yeah, here we. Go.
So there's finding the node ID of a user project. Yeah, I think that's the one we want. I think I can just copy the string instead, yeah? And then your user becomes you. No, we've got his number. Because I think that's just the type, right? Isn't that I? Think we need the? Yeah, so if you. This is the input.
Oh, here we go. Cool. I'm just kind of curious if that changes the key at all. Oh yeah, seriously. It still says private. Did you save? Good questioning. Session just saved, yeah. Oops, yeah, no more lock. OK, so maybe it's just taking a minute for the graph to catch up. I. Don't know we'll we'll roll with this ID for now.
So this is going to be wrong too or no? Probably yeah. Project V2O no iteration field there we. Go, you got. It There we go. Sweet labels, yeah, it's got the title of it and then it's got everything else so. And they ordered in the right way like when you do that like you know how you add the like in the sections or the?
Boy, this is this is great. I'm going to have to remind me. I'm done my big monitor and I'm having a hard time. Like I don't know if I can zoom in on this at all. Oh, there we go. There we go. Now I can see you better. OK so I can make it bigger too some. No, no, it was me like I have, you know, my big wide screen monitor, but the I couldn't get the screen to go full screen. So I was trying to like zoom in and like do it and then I found the full screen button.
Well, I think I might have to do a Part 2 for this 'cause I got to get back to my first week at work. Yeah, my boss just texted me. He's like, hey, if you want to bang out early today and like enjoy the long weekend, so. Nice. Got lots of projects to get done around the house so I may go do some of that stuff.
