{"id":1269,"date":"2023-12-15T13:26:07","date_gmt":"2023-12-15T05:26:07","guid":{"rendered":"https:\/\/www.tonghin.com.my\/blog\/?p=1269"},"modified":"2023-12-15T13:26:10","modified_gmt":"2023-12-15T05:26:10","slug":"development-handling-and-bugs-fixing","status":"publish","type":"post","link":"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/","title":{"rendered":"Development Handling and Bugs Fixing"},"content":{"rendered":"\n<p class=\"has-text-align-left\">Last week, I improved the customer page even more. However, although the form had no content, I discovered that the submission was successful. This will be a major issue because it may cause the data storage to store a large amount of null customer data. Because I was unable to determine the exact cause of the form submission success, the form submission button has been set to&nbsp;disable, and the button&#8217;s color has changed to grey when the form is not filled. In addition, I added an error message when the form is not filled out. For example, if the name is null, a red error message will appear at the bottom of the customer name column. This assists the user in recognizing the necessary parts of the form that must be filled out and minimizing the form submission problem. <\/p>\n\n\n\n<p>Besides that, I found out that the customer data will not update correctly to the data storage through the api. This is caused by the data storage needed are not match with the data I submitted. I noticed that the api post, update function will transfer data related to the  addresses as Boolean variable. However, I was passed in the data as an array. I need to reconsider my api passing code development. Thus, I added a function to change the array submitted to become a suitable format as the api needed. Now, the data passing will be fine and I will get the exact updated data.<\/p>\n\n\n\n<p>Furthermore, I had slightly renamed the file and the CSS name. Mr. Peter advised me that the naming should be consistent with either a capital or a lowercase letter. However, I discovered that renaming the folder is not possible. I need to make a new folder and move all of my functions inside it. The folder name should now be in lower case, while the CSS name should be in capital letters. Mr. Peter also advised me to include a space between the functions. The extra space will make it easier for other developers to read. My code will be better and easier to read after these changes.<\/p>\n\n\n\n<p>The customer page was nearly finished by the end of the week. I should test more frequently in order to identify the defect that is causing the bugs. Also, since my internship is coming to an end, I should start using Trello to manage my work periods. I should finish all of my tasks by the middle of January.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week, I improved the customer page even more. However, although the form had no content, I discovered that the submission was successful. This will be a major issue because it may cause the data storage to store a large amount of null customer data. Because I was unable to determine the exact cause of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Development Handling and Bugs Fixing&#8221;<\/span><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Development Handling and Bugs Fixing | Tong Hin&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Development Handling and Bugs Fixing | Tong Hin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Last week, I improved the customer page even more. However, although the form had no content, I discovered that the submission was successful. This will be a major issue because it may cause the data storage to store a large amount of null customer data. Because I was unable to determine the exact cause of &hellip; Continue reading &quot;Development Handling and Bugs Fixing&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/\" \/>\n<meta property=\"og:site_name\" content=\"Tong Hin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-15T05:26:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-15T05:26:10+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\",\"name\":\"TONG HIN MACHINERY\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"sameAs\":[\"https:\/\/www.youtube.com\/channel\/UC60EoxJMNbu8mV0LuEGfrBg\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/wp-content\/uploads\/2020\/10\/web_logo_180_180.jpg\",\"width\":180,\"height\":180,\"caption\":\"TONG HIN MACHINERY\"},\"image\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Tong Hin&#039;s Blog\",\"description\":\"Sharing About Technology\",\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.tonghin.com.my\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/#webpage\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/\",\"name\":\"Development Handling and Bugs Fixing | Tong Hin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\"},\"datePublished\":\"2023-12-15T05:26:07+00:00\",\"dateModified\":\"2023-12-15T05:26:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/\",\"name\":\"Development Handling and Bugs Fixing\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/f7817effc288d9b460c236e6f8a80e05\"},\"headline\":\"Development Handling and Bugs Fixing\",\"datePublished\":\"2023-12-15T05:26:07+00:00\",\"dateModified\":\"2023-12-15T05:26:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"articleSection\":\"Experiential\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/15\/development-handling-and-bugs-fixing\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/f7817effc288d9b460c236e6f8a80e05\",\"name\":\"Chia Soon Tock\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fc0129e896a1c25c18e5c5fabe0016f9?s=96&d=mm&r=g\",\"caption\":\"Chia Soon Tock\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1269"}],"collection":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/comments?post=1269"}],"version-history":[{"count":3,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1269\/revisions"}],"predecessor-version":[{"id":1280,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1269\/revisions\/1280"}],"wp:attachment":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/media?parent=1269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/categories?post=1269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/tags?post=1269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}