Articles on divi's Bloghttps://blogs.python-gsoc.orgUpdates on different articles published on divi's BlogenMon, 21 Aug 2023 19:05:09 +0000Week 12https://blogs.python-gsoc.org/en/divis-blog/week-12-4/<h2>What Did I do this week</h2> <p>I finally got my last PR, "Exclude GUI..." approved this week, and it should be merged anytime now! What a journey. I was nervous about this one since the start of GSoC because of my lack of experience with Qt, but these 3 months have taught me a lot about not only Qt, but various other technical and non-technical skills too. I started working on my Final GSoC report and will submit my work soon. The next blog will probably be my last one, time flies.</p> <h2>Did I get stuck somewhere</h2> <p>Nope.</p> <h2>What's next</h2> <p>It's a bittersweet moment. GSoC will end this week, but it was a great one, and I'll cherish these memories forever! My mentors have been really supportive and understanding, I wish to return the favour by contributing more to the repositories I contributed to, this way I won't lose touch with them too! Anyway, this week I plan to complete and submit my final GSoC report.</p>divyanshanandsingh@gmail.com (divi)Mon, 21 Aug 2023 19:05:09 +0000https://blogs.python-gsoc.org/en/divis-blog/week-12-4/Week 11https://blogs.python-gsoc.org/en/divis-blog/week-11-8/<h2>What Did I do this week</h2> <p>This is the second last week of the standard coding period, and I got my second last PR <a href="https://github.com/borgbase/vorta/pull/1734">merged</a>. I started the last round of work on the Exclude GUI PR and it should be done this week or before the start of the evaluation period 12 days from now. I'll start with my final submission report soon too.</p> <h2>Did I get stuck somewhere</h2> <p>No.</p> <h2>What's next</h2> <p>My complete focus is on getting the "Exclude GUI..." PR merged. After that I'll write my submission report and complete the "Quick Mount" PR as soon as I can. </p>divyanshanandsingh@gmail.com (divi)Tue, 15 Aug 2023 22:56:58 +0000https://blogs.python-gsoc.org/en/divis-blog/week-11-8/Week 10https://blogs.python-gsoc.org/en/divis-blog/week-10-7/<h2>What Did I do this week</h2> <p>I had my birthday on Monday! Which is why I missed writing my blog that day, and then I just forgot about the reminders after that, my bad. Anyway, I got the "Edit archive inline..." PR approved by Manu and feel like it's ready to merge!</p> <p>"The Exclude GUI..." PR was also reviewed by yf-projects, and I've worked on half the stuff that he mentioned. I should be done with it next week. This week could be a little hectic since I'm moving back to college and will have to set things up there.</p> <h2>Did I get stuck somewhere</h2> <p>Nope.</p> <h2>What's next</h2> <p>I just need to get the "Exclude GUI..." PR merged after working on the changes that yf-projects mentioned. Other than that, the "Quick Mount.." PR is also left but that's 80% complete already, so I'll focus on the "Exclude GUI..." PR more for now.</p>divyanshanandsingh@gmail.com (divi)Thu, 10 Aug 2023 05:39:47 +0000https://blogs.python-gsoc.org/en/divis-blog/week-10-7/Week 9https://blogs.python-gsoc.org/en/divis-blog/week-9-6/<h2>What Did I do this week</h2> <p>I got the Borgmatic docs PR merged. I also worked on an improvement for one of my borgmatic features that makes it optional. </p> <h2>Did I get stuck somewhere</h2> <p>Debugging the "inline archive renaming" PR was difficult, but I did it!</p> <h2>What's next</h2> <p>Here's what's left:</p> <ol> <li> <p>Exclude GUI PR - Need a review, then I'll update the PR, so it depends on the number of back and forths, but should be done in August</p> </li> <li> <p>Vorta Edit archive inline - Almost Done, One bug came up in the last review, I'll fix it this week.</p> </li> <li>Quick Mount - This PR was 80% done before the coding period started, yf-projects has left a review on it too, I'll get it merged in the end (last week) since I've forgotten what I was doing and starting from scratch would be easier.</li> </ol>divyanshanandsingh@gmail.com (divi)Tue, 01 Aug 2023 20:41:48 +0000https://blogs.python-gsoc.org/en/divis-blog/week-9-6/Week 8https://blogs.python-gsoc.org/en/divis-blog/week-8-5/<h2>What Did I do this week</h2> <p>I wrote tests and completed all functionality for the "Exclude GUI..." project this week. It's almost done, thanks to timely reviews by the Vorta maintainers.</p> <h2>Did I get stuck somewhere</h2> <p>I am stuck with small error in my second last task for the "Improve Archive Table actions...." PR. I asked for help from the Vorta maintainers and my fellow GSoC participants. I can't duplicate the error since I deleted my old database and the error is related to migrations.</p> <h2>What's next</h2> <p>I'll get more reviews on the "Exclude GUI..." PR and might get it merged around the first week of August. I'll resume work on the Borgmatic docs PR next week and try to get it merged. This week, apart from the "Exclude GUI..." project, I'll try to get the "inline archive renaming" PR merged.</p>divyanshanandsingh@gmail.com (divi)Tue, 25 Jul 2023 15:25:35 +0000https://blogs.python-gsoc.org/en/divis-blog/week-8-5/Week 7https://blogs.python-gsoc.org/en/divis-blog/week-7-6/<h2>What Did I do this week</h2> <p>I got the documentation PR reviewed by witten, and there are just a few changes that I'll have to make. Other than that, I worked on yf-project's reviews for my second last task of the "Improve Archive table.. project". I also got the "Exclude GUI..." code reviewed by Vorta mentors. Basically, I was able to do everything I set out to do this week.</p> <h2>Did I get stuck somewhere</h2> <p>Nope.</p> <h2>What's next</h2> <p>This week I'll get the documentation <a href="https://github.com/borgmatic-collective/borgmatic/pull/74">PR</a> merged, and also the <a href="https://github.com/borgbase/vorta/pull/1734">PR</a> that I made changes to after yf-project's review. I'll also work on the changes that yf-projects and other Vorta mentors recommended for the <a href="https://github.com/borgbase/vorta/pull/1742">Exclude GUI PR</a>. I'll try to complete the base for "Exclude GUI..." by sending all exclusions to Borg and testing them by the end of July, or the first week of August.</p>divyanshanandsingh@gmail.com (divi)Tue, 18 Jul 2023 09:56:07 +0000https://blogs.python-gsoc.org/en/divis-blog/week-7-6/Week 6https://blogs.python-gsoc.org/en/divis-blog/week-6-6/<h2>What Did I do this week</h2> <p>I'm halfway done with my Summer of Code! I got another PR merged last week and with that only 2 more remain for the first Vorta task "improve the archive tab...". I'll get one of those merged this week, yf-projects has reviewed that PR and I will submit the changes soon. For the exclude GUI PR, I got Julian's approval and once I get one more review, I'll move forward with passing exclusions to Borg.</p> <h2>Did I get stuck somewhere</h2> <p>No</p> <h2>What's next</h2> <p>This week I'll make documentation PRs for both my Borgmatic features and will try to get them merged too. Other than that, I will work on yf-project's reviews and might get my second last task merged too for the "improve archive table actions..." project. I'll resume work on the "Exclude GUI.." project next week.</p>divyanshanandsingh@gmail.com (divi)Tue, 11 Jul 2023 13:22:18 +0000https://blogs.python-gsoc.org/en/divis-blog/week-6-6/Week 5https://blogs.python-gsoc.org/en/divis-blog/week-5-6/<h2>What Did I do this week</h2> <p>I worked on the "Exclude GUI.." project this week and have completed 3 out of the 4 tabs that will be visible. I created a <a href="https://github.com/borgbase/vorta/pull/1742">draft PR</a> to share my progress on the task too!</p> <p>I also got 2 more tasks from my first Vorta project approved by Manu; once they are approved by 2 more mentors, I can get them merged.</p> <h2>Did I get stuck somewhere</h2> <p>Technically, no. I just had to make some design decisions regarding the custom exclusion presets that would be shipped with Vorta, Manu and yf-projects helped me with that.</p> <h2>What's next</h2> <p>I'll try to get more approvals and merge the two tasks that Manu approved. I'll also work on finishing the base implementation for the exclude GUI, so that I can work on reviews from the next week onwards. I added a few features I wish to add after the base implementation is merged in the PR description.</p>divyanshanandsingh@gmail.com (divi)Tue, 04 Jul 2023 02:21:50 +0000https://blogs.python-gsoc.org/en/divis-blog/week-5-6/Week 4https://blogs.python-gsoc.org/en/divis-blog/week-4-5/<h2>What Did I do this week</h2> <p>I got my second GSoC project merged! Now only the 2 projects for Vorta remain (and borgmatic documentation).</p> <p>Out of the remaining 2 projects, the first one ("Improve Archive Table...") that I split into 5 PRs is 2/5 done, since I got 2 of them merged last week! I also started working on "Exclude GUI..." on the side.</p> <h2>Did I get stuck somewhere</h2> <p>I had some difficulties starting with the new exclude GUI but long googling sessions and discussions with mentors helped me overcome them!</p> <h2>What's next</h2> <p>I'll try to get the remaining 3 PRs merged this week for my first Vorta project, and also work on the new exclude GUI on the side. I might also work on Borgmatic documentation.</p>divyanshanandsingh@gmail.com (divi)Tue, 27 Jun 2023 00:23:17 +0000https://blogs.python-gsoc.org/en/divis-blog/week-4-5/Week 3https://blogs.python-gsoc.org/en/divis-blog/week-3-6/<h2>What Did I do this week</h2> <p>I have almost completed my second project of the summer for Borgmatic, "Restore a database backup to a different server". The PR is <a href="https://github.com/borgmatic-collective/borgmatic/pull/73">here</a>, and once I write a few more tests, I can get it mereged too! I also created the 4th PR for my first Vorta project! I couldn't get the earlier ones merged, but I think at least 3 of them can be merged any time now. I did the 4th one, "Quick Mount", a long time ago and have recieved a review that I have to work on.</p> <h2>Did I get stuck somewhere</h2> <p>Not really, but I learned some new Docker stuff to write e2e tests for my Borgmatic feature.</p> <h2>What's next</h2> <p>I'll work on getting my Borgmatic PR merged this week, probably in a few days. Other that that, before the end of this month I'll make sure all 5 of my PRs for the first Vorta project are at least ready to be merged, if not merged. This will leave me enough time to work on my final and longest project. From next month onwards, I'd be solely focusing on the last Vorta project and finishing up some documentation work for Borgmatic. My aim is to complete the project by the end of August to stay on track for the standard 12 week schedule.</p> <p> </p>divyanshanandsingh@gmail.com (divi)Mon, 19 Jun 2023 16:17:53 +0000https://blogs.python-gsoc.org/en/divis-blog/week-3-6/Week 2https://blogs.python-gsoc.org/en/divis-blog/week-2-8/<h2>What did I do this week</h2> <p>I merged my first <a href="https://github.com/borgmatic-collective/borgmatic/pull/71">PR</a> this week! With this, my first GSoC project has been completed, there is some documentation that I need to add for this feature to the Borgmatic docs, and I'm planning to do that this week. My plan was to complete this task in 2 weeks and I've been successful in doing that. I worked on writing tests for this PR, and getting the final thing reviewed by witten. Things are comparatively a liiiitle slow on the Vorta side, but I'll (try to) get 3 of my PRs merged this week out of the 5 tasks I'm doing as part of my first Vorta project. </p> <h2>Did I get stuck somewhere</h2> <p>Yup, writing tests for my Borgmatic feature was difficult initially, but witten trusted me and gave me just enough hints so I could take complete ownership of the task and finish it myself! I was really happy to get it merged, thanks to his inputs. Also got a pretty good <a href="https://github.com/borgmatic-collective/borgmatic/pull/71#discussion_r1221876262">quote</a> from him I'm gonna remember when I write tests next time:</p> <blockquote> <p><br> Tests should be about defining and enforcing the contract that a unit under test has with its caller. If a part of the contract isn't defined in the tests, then it's not part of the contract.</p> </blockquote> <h2>What's next</h2> <p>I'll get my 2 open Vorta PRs merged and might get a 3rd one merged too. For the last 2, I'll do them next week, I have some code for one of them ready right now, just need to refactor and update it a bit. For Borgmatic, I'll start working on my second project today and might get a PR in by the end of this week. The plan to complete everything except "Exclude GUI..." in June itself is still on! </p> <p> </p>divyanshanandsingh@gmail.com (divi)Mon, 12 Jun 2023 15:55:19 +0000https://blogs.python-gsoc.org/en/divis-blog/week-2-8/Week 1https://blogs.python-gsoc.org/en/divis-blog/week-1-6/<h2>What did I do this week</h2> <p>As I mentioned in my last blog, this week I was focused on completing my first project, "Bootstrap a restore from nothing" for Borgmatic. I had a timeframe of 2 weeks in mind for the project, and I am on the right track currently. The PR only needs a few minor changes and I need to write tests to cover my additions, I hope to get it merged this week.</p> <p>I also started work on my 2nd project - Improve the Archive tab for Vorta, I broke it down into 5 tasks, and created a PR for the 1st one - https://github.com/borgbase/vorta/pull/1723.<br> This is a ~50 hour project according to my mentors, I should be able to complete it in 1-2 weeks. I'll try to complete these 5 tasks as soon as possible so that I have time for the "Exclude GUI..." project. Once that gets completed in time, I can keep improving the archive tab if needed.</p> <h2>Did I get stuck somewhere</h2> <p>No.</p> <h2>What's Next</h2> <p>In the coming week, I plan to complete my first project, "Bootstrap a Borgmatic restore from nothing" after writing tests for my changes and getting them merged.</p> <p>I also plan to work on a few of the tasks listed in Vorta#1723, and start playing around with Borgmatic code for my 3rd project, "Restore a Database to another database name/hostname".</p> <p>I plan to leave around 5-6 weeks for my last project, "Exclude GUI for Vorta", since I might need more help from my mentors with that one.</p>divyanshanandsingh@gmail.com (divi)Mon, 05 Jun 2023 11:48:09 +0000https://blogs.python-gsoc.org/en/divis-blog/week-1-6/Week 0https://blogs.python-gsoc.org/en/divis-blog/week-0-1/<h2><big>What did I do this week </big></h2> <p>I have been getting to know my mentor, Dan (witten), and sharing my ideas with the community during the Community Bonding Period.</p> <p>I had an introductory call with my mentor early on in the Community Bonding period where we discussed how he can best mentor me and what is expected of me during the GSoC period, we shared our past work experiences  and I was excited to work with him!</p> <p>I have talked to all other mentors to get a review for my Vorta designs as well.</p> <p>I shared a design I plan on implementing for the Vorta Exclude GUI here - https://github.com/borgbase/vorta/issues/907</p> <p>and opened a Draft PR for my second project, Bootstrap command for Borgmatic here - https://github.com/borgmatic-collective/borgmatic/pull/71.</p> <p>Additionally, I have been working on getting my previous Pull Requests merged.</p> <h2>Did I get stuck somewhere</h2> <p>I was having trouble using argparse for Borgmatic#71, but witten helped me understand how things work and I was able to complete the parsing side of things!</p> <h2>What's Next</h2> <p>Next week, I plan on getting my first GSoC PR merged, for Bootstrapping a restore from nothing. I'll keep improving the feature later if I have more time, but witten and I are satisfied with the current scope of the project too.</p> <p>Other than that, I'll start working on my second project, restoring a database backup to a different hostname/database name.</p> <p> </p> <p> </p>divyanshanandsingh@gmail.com (divi)Thu, 01 Jun 2023 09:03:49 +0000https://blogs.python-gsoc.org/en/divis-blog/week-0-1/