{"id":66,"date":"2024-05-10T00:10:07","date_gmt":"2024-05-10T00:10:07","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/aicoder\/?p=66"},"modified":"2024-05-10T00:10:07","modified_gmt":"2024-05-10T00:10:07","slug":"michael-kozub-week-4","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/aicoder\/2024\/05\/10\/michael-kozub-week-4\/","title":{"rendered":"Michael Kozub &#8211; Week 4"},"content":{"rendered":"\n<p>This week I continued using ChatGPT to try and help me add features to the AI Coders App. As our codebase and files have grown I&#8217;ve found it to become more challenging to get ChatGPT to complete features for me, and this week I had to do more manual tweaking after code was generated for me. I noticed this with the insert queries I was writing, as well as the POST requests I was creating. I would load a file into ChatGPT and the new functions that were generated based on my query were built and constructed differently than the existing working ones. This didn&#8217;t have a detrimental impact or anything, but I did rewrite the functions to be consistent with how they were already written in the files.<\/p>\n\n\n\n<p>As far as the specific work towards or project goes, here are my accomplishments for this week:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Moved the \u201cLink Alpaca\u201d functionality to only be shown when a user logs in<\/li>\n\n\n\n<li>Removed the Link Alpaca functionality from the home page (localhost:3000) since inserting the record requires a Firebase Id that\u2019s only accessible after being logged in<\/li>\n\n\n\n<li>Made a new function that\u2019s called after a user clicks \u201cSubmit Keys\u201d on the brokerageSignupAlpaca page<\/li>\n\n\n\n<li>After the click is detected, I got a POST request working with the add_brokerage_account function that inserts a users brokerage key and secret into the brokerage_accounts table<\/li>\n\n\n\n<li>Got a loading spinner working when a user is waiting for the brokerage keys to be inserted into the table<\/li>\n\n\n\n<li>Got a redirect working for after the brokerage record is inserted, it redirects the user back to the user-home page<\/li>\n\n\n\n<li>Shortcoming: The Firebase Id is hard coded to MY Id since I couldn\u2019t figure out how to dynamically retrieve this<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This week I continued using ChatGPT to try and help me add features to the AI Coders App. As our codebase and files have grown I&#8217;ve found it to become more challenging to get ChatGPT to complete features for me, and this week I had to do more manual tweaking after code was generated for [&hellip;]<\/p>\n","protected":false},"author":14279,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-project-progress-reports"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/users\/14279"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/posts\/66\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/aicoder\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}