[{"data":1,"prerenderedAt":2845},["ShallowReactive",2],{"/blog/can-chatgpt-resolve-gitlab-issues":3,"navigation-en-us":2082,"banner-en-us":2518,"footer-en-us":2526,"blog-post-authors-en-us-John Coghlan|Fatima Sarah Khalid":2773,"blog-related-posts-en-us-can-chatgpt-resolve-gitlab-issues":2800,"blog-share-wrapper-en-us":2825,"next-steps-en-us":2835},{"id":4,"title":5,"authors":6,"body":9,"category":2060,"date":2061,"description":2062,"extension":2063,"externalUrl":2064,"faq":2064,"featured":2065,"heroImage":2066,"hidePromo":2065,"meta":2067,"navigation":378,"path":2068,"seo":2069,"slug":2073,"stem":2074,"tags":2075,"template":2080,"updatedDate":2064,"__hash__":2081},"blogPosts/en-us/blog/can-chatgpt-resolve-gitlab-issues.md","Testing ChatGPT: Can it solve a GitLab issue?",[7,8],"John Coghlan","Fatima Sarah Khalid",{"type":10,"value":11,"toc":2052},"minimark",[12,23,32,35,54,69,72,77,86,89,124,133,138,146,160,163,177,180,472,481,484,493,1184,1256,1259,1263,1284,1291,1300,1944,1949,1957,1960,1974,1983,1987,1993,2014,2029,2033,2042,2045,2048],[13,14,15,16,22],"p",{},"ChatGPT has taken the tech world by storm since its ",[17,18,21],"a",{"href":19,"rel":20},"https://openai.com/blog/chatgpt/",[],"launch on November 30",". Media coverage, front page posts on Hacker News, Twitter threads, and videos - everywhere you look, there is another story.",[13,24,25,26,31],{},"The ",[17,27,30],{"href":28,"rel":29},"https://handbook.gitlab.com/handbook/communication/#slack",[],"GitLab Slack"," was no different. In threads across Slack channels, including those for developer evangelism, UX, the CEO, random news, and every space in between, our team was chatting about this exciting new tool.",[13,33,34],{},"As we got more familiar with the tool, we started to learn about numerous things it can do. Here are a few that we found:",[36,37,38,42,45,48,51],"ul",{},[39,40,41],"li",{},"It can write poetry about GitLab features.",[39,43,44],{},"It can write blog posts.",[39,46,47],{},"It can write unit tests.",[39,49,50],{},"It gives advice on how to use certain features of GitLab.",[39,52,53],{},"It conducts competitive analysis.",[13,55,56,57,62,63,68],{},"There’s quite a bit more out there, including ",[17,58,61],{"href":59,"rel":60},"https://maximumeffort.substack.com/p/i-taught-chatgpt-to-invent-a-language",[],"inventing a new language"," and ",[17,64,67],{"href":65,"rel":66},"https://www.engraved.blog/building-a-virtual-machine-inside/",[],"building a virtual machine",". We can’t recall any technology that has generated more excitement in such a short time.",[13,70,71],{},"We acknowledge there are ethical and licensing concerns around using AI-generated code. For the purpose of this blog post, we will focus strictly on the capabilities of ChatGPT.",[73,74,76],"h2",{"id":75},"testing-chatgpt","Testing ChatGPT",[13,78,79,80,85],{},"As members of GitLab’s ",[17,81,84],{"href":82,"rel":83},"https://handbook.gitlab.com/handbook/marketing/developer-relations/",[],"Developer Relations team",", where we’re focused on growing our community of contributors and evangelists, our first reaction was to think of how this tool can help our contributors. The responses to questions like “How can I get started contributing to GitLab?” were cool but didn’t move the needle. So then we asked ourselves: Can we use ChatGPT to make a contribution to GitLab?",[13,87,88],{},"Having already been testing the tool, we knew we’d need to look for a very specific type of issue. We started to fine-tune our search. Here are the steps we took to find a potential issue:",[36,90,91,104,113],{},[39,92,93,94,98,99,103],{},"Visited ",[17,95,96],{"href":96,"rel":97},"https://gitlab.com/gitlab-org",[]," and pulled up all the open issues by clicking on ",[100,101,102],"code",{},"Issues"," in the left side nav.",[39,105,106,107,112],{},"Searched for all issues with the ",[17,108,111],{"href":109,"rel":110},"https://gitlab.com/gitlab-org/gitlab/-/issues/?sort=updated_desc&state=opened&label_name%5B%5D=good%20for%20new%20contributors&first_page_size=20",[],"“good for new contributors” label",". This returned 482 issues at the time of writing.",[39,114,115,116,123],{},"Set ",[17,117,120],{"href":118,"rel":119},"https://gitlab.com/gitlab-org/gitlab/-/issues/?sort=updated_desc&state=opened&label_name%5B%5D=good%20for%20new%20contributors&assignee_id=None&first_page_size=20",[],[100,121,122],{},"“Assignee = None”"," to filter out issues that have already been assigned to someone. This trimmed things down even more.",[13,125,126,127,132],{},"After poking through a few issues, this one caught our attention: an issue that is a request to ",[17,128,131],{"href":129,"rel":130},"https://gitlab.com/gitlab-org/gitlab/-/issues/221293",[],"de-depulicate identical dropdown functionality from two Vue components into a shared component",".",[134,135,137],"h3",{"id":136},"getting-started","Getting started",[13,139,140,141,145],{},"We opened up a ChatGPT thread via ",[17,142,143],{"href":143,"rel":144},"https://chat.openai.com/chat",[],". If you don’t already have an account, you’ll need to register with OpenAI.",[13,147,148,149,152,153,62,156,159],{},"Then we started a thread with Assistant (that’s what is returned when you ask ChatGPT what is its name). We asked Assistant to create a shared Vue component called ",[100,150,151],{},"SharedDropdownFilter"," from the duplicate code in ",[100,154,155],{},"GroupsDropdownFilter",[100,157,158],{},"ProjectsDropdownFilter"," and passed the scripts of both components.",[13,161,162],{},"ChatGPT replied with:",[164,165,166],"blockquote",{},[13,167,168,169,171,172,62,174,176],{},"You can create a new ",[100,170,151],{}," component that contains the duplicate code and use it in both ",[100,173,155],{},[100,175,158],{},":",[13,178,179],{},"and provided a template to describe the use. The template provided wasn’t quite what we were looking for.",[181,182,187],"pre",{"className":183,"code":184,"language":185,"meta":186,"style":186},"language-xml shiki shiki-themes github-light","\u003Ctemplate>\n  \u003CGlDropdown\n    :aria-label=\"label\"\n    :class=\"{ disabled: loading }\"\n    :disabled=\"loading\"\n    :selected=\"selectedProjectsLabel\"\n    :variant=\"multiSelect ? 'inline' : 'single-line'\"\n  >\n    \u003Ctemplate v-slot:menu>\n      \u003Cdiv class=\"py-4\">\n        \u003CGlSearchBoxByType\n          autofocus\n          class=\"search-box\"\n          :placeholder=\"searchPlaceholder\"\n          :type=\"searchType\"\n          v-model=\"searchTerm\"\n        />\n\n        \u003CGlDropdownHeader\n          v-if=\"selectedProjects.length && multiSelect\"\n          :class=\"{ 'd-none': !searchTerm }\"\n          class=\"js-dropdown-header\"\n        >\n          \u003Cspan>\n            {{ selectedProjectsLabel }}\n          \u003C/span>\n\n          \u003Cbutton\n\n","xml","",[100,188,189,205,214,228,239,250,261,272,278,289,308,317,323,334,345,356,367,373,380,388,406,417,427,433,443,449,459,464],{"__ignoreMap":186},[190,191,194,198,202],"span",{"class":192,"line":193},"line",1,[190,195,197],{"class":196},"sgsFI","\u003C",[190,199,201],{"class":200},"shJU0","template",[190,203,204],{"class":196},">\n",[190,206,208,211],{"class":192,"line":207},2,[190,209,210],{"class":196},"  \u003C",[190,212,213],{"class":200},"GlDropdown\n",[190,215,217,221,224],{"class":192,"line":216},3,[190,218,220],{"class":219},"s7eDp","    :aria-label",[190,222,223],{"class":196},"=",[190,225,227],{"class":226},"sYBdl","\"label\"\n",[190,229,231,234,236],{"class":192,"line":230},4,[190,232,233],{"class":219},"    :class",[190,235,223],{"class":196},[190,237,238],{"class":226},"\"{ disabled: loading }\"\n",[190,240,242,245,247],{"class":192,"line":241},5,[190,243,244],{"class":219},"    :disabled",[190,246,223],{"class":196},[190,248,249],{"class":226},"\"loading\"\n",[190,251,253,256,258],{"class":192,"line":252},6,[190,254,255],{"class":219},"    :selected",[190,257,223],{"class":196},[190,259,260],{"class":226},"\"selectedProjectsLabel\"\n",[190,262,264,267,269],{"class":192,"line":263},7,[190,265,266],{"class":219},"    :variant",[190,268,223],{"class":196},[190,270,271],{"class":226},"\"multiSelect ? 'inline' : 'single-line'\"\n",[190,273,275],{"class":192,"line":274},8,[190,276,277],{"class":196},"  >\n",[190,279,281,284,286],{"class":192,"line":280},9,[190,282,283],{"class":196},"    \u003C",[190,285,201],{"class":200},[190,287,288],{"class":196}," v-slot:menu>\n",[190,290,292,295,298,301,303,306],{"class":192,"line":291},10,[190,293,294],{"class":196},"      \u003C",[190,296,297],{"class":200},"div",[190,299,300],{"class":219}," class",[190,302,223],{"class":196},[190,304,305],{"class":226},"\"py-4\"",[190,307,204],{"class":196},[190,309,311,314],{"class":192,"line":310},11,[190,312,313],{"class":196},"        \u003C",[190,315,316],{"class":200},"GlSearchBoxByType\n",[190,318,320],{"class":192,"line":319},12,[190,321,322],{"class":196},"          autofocus\n",[190,324,326,329,331],{"class":192,"line":325},13,[190,327,328],{"class":219},"          class",[190,330,223],{"class":196},[190,332,333],{"class":226},"\"search-box\"\n",[190,335,337,340,342],{"class":192,"line":336},14,[190,338,339],{"class":219},"          :placeholder",[190,341,223],{"class":196},[190,343,344],{"class":226},"\"searchPlaceholder\"\n",[190,346,348,351,353],{"class":192,"line":347},15,[190,349,350],{"class":219},"          :type",[190,352,223],{"class":196},[190,354,355],{"class":226},"\"searchType\"\n",[190,357,359,362,364],{"class":192,"line":358},16,[190,360,361],{"class":219},"          v-model",[190,363,223],{"class":196},[190,365,366],{"class":226},"\"searchTerm\"\n",[190,368,370],{"class":192,"line":369},17,[190,371,372],{"class":196},"        />\n",[190,374,376],{"class":192,"line":375},18,[190,377,379],{"emptyLinePlaceholder":378},true,"\n",[190,381,383,385],{"class":192,"line":382},19,[190,384,313],{"class":196},[190,386,387],{"class":200},"GlDropdownHeader\n",[190,389,391,394,396,399,403],{"class":192,"line":390},20,[190,392,393],{"class":219},"          v-if",[190,395,223],{"class":196},[190,397,398],{"class":226},"\"selectedProjects.length ",[190,400,402],{"class":401},"sB1qb","&&",[190,404,405],{"class":226}," multiSelect\"\n",[190,407,409,412,414],{"class":192,"line":408},21,[190,410,411],{"class":219},"          :class",[190,413,223],{"class":196},[190,415,416],{"class":226},"\"{ 'd-none': !searchTerm }\"\n",[190,418,420,422,424],{"class":192,"line":419},22,[190,421,328],{"class":219},[190,423,223],{"class":196},[190,425,426],{"class":226},"\"js-dropdown-header\"\n",[190,428,430],{"class":192,"line":429},23,[190,431,432],{"class":196},"        >\n",[190,434,436,439,441],{"class":192,"line":435},24,[190,437,438],{"class":196},"          \u003C",[190,440,190],{"class":200},[190,442,204],{"class":196},[190,444,446],{"class":192,"line":445},25,[190,447,448],{"class":196},"            {{ selectedProjectsLabel }}\n",[190,450,452,455,457],{"class":192,"line":451},26,[190,453,454],{"class":196},"          \u003C/",[190,456,190],{"class":200},[190,458,204],{"class":196},[190,460,462],{"class":192,"line":461},27,[190,463,379],{"emptyLinePlaceholder":378},[190,465,467,469],{"class":192,"line":466},28,[190,468,438],{"class":196},[190,470,471],{"class":200},"button\n",[13,473,474,475,477,478,480],{},"So we tried again, this time being more specific and asking ChatGPT to “Create a shared Vue component that combines the two components ",[100,476,158],{}," and  ",[100,479,155],{},"”. We passed in the full component files, including the templates.",[13,482,483],{},"ChatGPT responded with instructions, a sample Vue component, and an explanation of the functionality:",[164,485,486],{},[13,487,488,489,62,491,176],{},"Here is a sample implementation of a shared Vue component that combines the two components ",[100,490,158],{},[100,492,155],{},[181,494,498],{"className":495,"code":496,"language":497,"meta":186,"style":186},"language-vue shiki shiki-themes github-light","\u003Ctemplate>\n  \u003Cdiv>\n    \u003CProjectsDropdownFilter\n      :groupId=\"groupId\"\n      :multiSelect=\"multiSelect\"\n      :label=\"label\"\n      :queryParams=\"queryParams\"\n      :defaultProjects=\"defaultProjects\"\n      @selected=\"onProjectsSelected\"\n    />\n    \u003CGroupsDropdownFilter\n      :multiSelect=\"multiSelect\"\n      :label=\"label\"\n      :queryParams=\"queryParams\"\n      :defaultGroups=\"defaultGroups\"\n      @selected=\"onGroupsSelected\"\n    />\n  \u003C/div>\n\u003C/template>\n\n\u003Cscript>\nimport { ProjectsDropdownFilter } from './ProjectsDropdownFilter.vue';\nimport { GroupsDropdownFilter } from './GroupsDropdownFilter.vue';\n\nexport default {\n  name: 'SharedDropdownFilter',\n  components: {\n    ProjectsDropdownFilter,\n    GroupsDropdownFilter,\n  },\n  props: {\n    groupId: {\n      type: Number,\n      required: true,\n    },\n    multiSelect: {\n      type: Boolean,\n      required: false,\n      default: false,\n    },\n    label: {\n      type: String,\n      required: false,\n      default: 'Dropdown filter',\n    },\n    queryParams: {\n      type: Object,\n      required: false,\n      default: () => ({}),\n    },\n    defaultProjects: {\n      type: Array,\n      required: false,\n      default: () => [],\n    },\n    defaultGroups: {\n      type: Array,\n      required: false,\n      default: () => [],\n    },\n  },\n  data() {\n    return {\n      selectedProjects: this.defaultProjects || [],\n      selectedGroups: this.defaultGroups || [],\n    };\n  },\n  methods: {\n    onProjectsSelected(selectedProjects) {\n      this.selectedProjects = selectedProjects;\n      this.$emit('selected', this.selectedProjects, this.selectedGroups);\n    },\n    onGroupsSelected(selectedGroups) {\n      this.selectedGroups = selectedGroups;\n      this.$emit('selected', this.selectedProjects, this.selectedGroups);\n    },\n  },\n};\n\u003C/script>\n","vue",[100,499,500,508,516,523,533,543,552,562,572,582,587,594,602,610,618,628,637,641,650,659,663,672,690,704,708,719,730,735,740,746,752,758,764,770,782,788,794,800,810,820,825,831,837,846,856,861,867,873,882,897,902,908,914,923,935,940,946,951,960,971,976,981,990,998,1015,1030,1036,1041,1047,1063,1077,1105,1110,1123,1136,1159,1164,1169,1175],{"__ignoreMap":186},[190,501,502,504,506],{"class":192,"line":193},[190,503,197],{"class":196},[190,505,201],{"class":200},[190,507,204],{"class":196},[190,509,510,512,514],{"class":192,"line":207},[190,511,210],{"class":196},[190,513,297],{"class":200},[190,515,204],{"class":196},[190,517,518,520],{"class":192,"line":216},[190,519,283],{"class":196},[190,521,522],{"class":200},"ProjectsDropdownFilter\n",[190,524,525,528,530],{"class":192,"line":230},[190,526,527],{"class":219},"      :groupId",[190,529,223],{"class":196},[190,531,532],{"class":226},"\"groupId\"\n",[190,534,535,538,540],{"class":192,"line":241},[190,536,537],{"class":219},"      :multiSelect",[190,539,223],{"class":196},[190,541,542],{"class":226},"\"multiSelect\"\n",[190,544,545,548,550],{"class":192,"line":252},[190,546,547],{"class":219},"      :label",[190,549,223],{"class":196},[190,551,227],{"class":226},[190,553,554,557,559],{"class":192,"line":263},[190,555,556],{"class":219},"      :queryParams",[190,558,223],{"class":196},[190,560,561],{"class":226},"\"queryParams\"\n",[190,563,564,567,569],{"class":192,"line":274},[190,565,566],{"class":219},"      :defaultProjects",[190,568,223],{"class":196},[190,570,571],{"class":226},"\"defaultProjects\"\n",[190,573,574,577,579],{"class":192,"line":280},[190,575,576],{"class":219},"      @selected",[190,578,223],{"class":196},[190,580,581],{"class":226},"\"onProjectsSelected\"\n",[190,583,584],{"class":192,"line":291},[190,585,586],{"class":196},"    />\n",[190,588,589,591],{"class":192,"line":310},[190,590,283],{"class":196},[190,592,593],{"class":200},"GroupsDropdownFilter\n",[190,595,596,598,600],{"class":192,"line":319},[190,597,537],{"class":219},[190,599,223],{"class":196},[190,601,542],{"class":226},[190,603,604,606,608],{"class":192,"line":325},[190,605,547],{"class":219},[190,607,223],{"class":196},[190,609,227],{"class":226},[190,611,612,614,616],{"class":192,"line":336},[190,613,556],{"class":219},[190,615,223],{"class":196},[190,617,561],{"class":226},[190,619,620,623,625],{"class":192,"line":347},[190,621,622],{"class":219},"      :defaultGroups",[190,624,223],{"class":196},[190,626,627],{"class":226},"\"defaultGroups\"\n",[190,629,630,632,634],{"class":192,"line":358},[190,631,576],{"class":219},[190,633,223],{"class":196},[190,635,636],{"class":226},"\"onGroupsSelected\"\n",[190,638,639],{"class":192,"line":369},[190,640,586],{"class":196},[190,642,643,646,648],{"class":192,"line":375},[190,644,645],{"class":196},"  \u003C/",[190,647,297],{"class":200},[190,649,204],{"class":196},[190,651,652,655,657],{"class":192,"line":382},[190,653,654],{"class":196},"\u003C/",[190,656,201],{"class":200},[190,658,204],{"class":196},[190,660,661],{"class":192,"line":390},[190,662,379],{"emptyLinePlaceholder":378},[190,664,665,667,670],{"class":192,"line":408},[190,666,197],{"class":196},[190,668,669],{"class":200},"script",[190,671,204],{"class":196},[190,673,674,678,681,684,687],{"class":192,"line":419},[190,675,677],{"class":676},"sD7c4","import",[190,679,680],{"class":196}," { ProjectsDropdownFilter } ",[190,682,683],{"class":676},"from",[190,685,686],{"class":226}," './ProjectsDropdownFilter.vue'",[190,688,689],{"class":196},";\n",[190,691,692,694,697,699,702],{"class":192,"line":429},[190,693,677],{"class":676},[190,695,696],{"class":196}," { GroupsDropdownFilter } ",[190,698,683],{"class":676},[190,700,701],{"class":226}," './GroupsDropdownFilter.vue'",[190,703,689],{"class":196},[190,705,706],{"class":192,"line":435},[190,707,379],{"emptyLinePlaceholder":378},[190,709,710,713,716],{"class":192,"line":445},[190,711,712],{"class":676},"export",[190,714,715],{"class":676}," default",[190,717,718],{"class":196}," {\n",[190,720,721,724,727],{"class":192,"line":451},[190,722,723],{"class":196},"  name: ",[190,725,726],{"class":226},"'SharedDropdownFilter'",[190,728,729],{"class":196},",\n",[190,731,732],{"class":192,"line":461},[190,733,734],{"class":196},"  components: {\n",[190,736,737],{"class":192,"line":466},[190,738,739],{"class":196},"    ProjectsDropdownFilter,\n",[190,741,743],{"class":192,"line":742},29,[190,744,745],{"class":196},"    GroupsDropdownFilter,\n",[190,747,749],{"class":192,"line":748},30,[190,750,751],{"class":196},"  },\n",[190,753,755],{"class":192,"line":754},31,[190,756,757],{"class":196},"  props: {\n",[190,759,761],{"class":192,"line":760},32,[190,762,763],{"class":196},"    groupId: {\n",[190,765,767],{"class":192,"line":766},33,[190,768,769],{"class":196},"      type: Number,\n",[190,771,773,776,780],{"class":192,"line":772},34,[190,774,775],{"class":196},"      required: ",[190,777,779],{"class":778},"sYu0t","true",[190,781,729],{"class":196},[190,783,785],{"class":192,"line":784},35,[190,786,787],{"class":196},"    },\n",[190,789,791],{"class":192,"line":790},36,[190,792,793],{"class":196},"    multiSelect: {\n",[190,795,797],{"class":192,"line":796},37,[190,798,799],{"class":196},"      type: Boolean,\n",[190,801,803,805,808],{"class":192,"line":802},38,[190,804,775],{"class":196},[190,806,807],{"class":778},"false",[190,809,729],{"class":196},[190,811,813,816,818],{"class":192,"line":812},39,[190,814,815],{"class":196},"      default: ",[190,817,807],{"class":778},[190,819,729],{"class":196},[190,821,823],{"class":192,"line":822},40,[190,824,787],{"class":196},[190,826,828],{"class":192,"line":827},41,[190,829,830],{"class":196},"    label: {\n",[190,832,834],{"class":192,"line":833},42,[190,835,836],{"class":196},"      type: String,\n",[190,838,840,842,844],{"class":192,"line":839},43,[190,841,775],{"class":196},[190,843,807],{"class":778},[190,845,729],{"class":196},[190,847,849,851,854],{"class":192,"line":848},44,[190,850,815],{"class":196},[190,852,853],{"class":226},"'Dropdown filter'",[190,855,729],{"class":196},[190,857,859],{"class":192,"line":858},45,[190,860,787],{"class":196},[190,862,864],{"class":192,"line":863},46,[190,865,866],{"class":196},"    queryParams: {\n",[190,868,870],{"class":192,"line":869},47,[190,871,872],{"class":196},"      type: Object,\n",[190,874,876,878,880],{"class":192,"line":875},48,[190,877,775],{"class":196},[190,879,807],{"class":778},[190,881,729],{"class":196},[190,883,885,888,891,894],{"class":192,"line":884},49,[190,886,887],{"class":219},"      default",[190,889,890],{"class":196},": () ",[190,892,893],{"class":676},"=>",[190,895,896],{"class":196}," ({}),\n",[190,898,900],{"class":192,"line":899},50,[190,901,787],{"class":196},[190,903,905],{"class":192,"line":904},51,[190,906,907],{"class":196},"    defaultProjects: {\n",[190,909,911],{"class":192,"line":910},52,[190,912,913],{"class":196},"      type: Array,\n",[190,915,917,919,921],{"class":192,"line":916},53,[190,918,775],{"class":196},[190,920,807],{"class":778},[190,922,729],{"class":196},[190,924,926,928,930,932],{"class":192,"line":925},54,[190,927,887],{"class":219},[190,929,890],{"class":196},[190,931,893],{"class":676},[190,933,934],{"class":196}," [],\n",[190,936,938],{"class":192,"line":937},55,[190,939,787],{"class":196},[190,941,943],{"class":192,"line":942},56,[190,944,945],{"class":196},"    defaultGroups: {\n",[190,947,949],{"class":192,"line":948},57,[190,950,913],{"class":196},[190,952,954,956,958],{"class":192,"line":953},58,[190,955,775],{"class":196},[190,957,807],{"class":778},[190,959,729],{"class":196},[190,961,963,965,967,969],{"class":192,"line":962},59,[190,964,887],{"class":219},[190,966,890],{"class":196},[190,968,893],{"class":676},[190,970,934],{"class":196},[190,972,974],{"class":192,"line":973},60,[190,975,787],{"class":196},[190,977,979],{"class":192,"line":978},61,[190,980,751],{"class":196},[190,982,984,987],{"class":192,"line":983},62,[190,985,986],{"class":219},"  data",[190,988,989],{"class":196},"() {\n",[190,991,993,996],{"class":192,"line":992},63,[190,994,995],{"class":676},"    return",[190,997,718],{"class":196},[190,999,1001,1004,1007,1010,1013],{"class":192,"line":1000},64,[190,1002,1003],{"class":196},"      selectedProjects: ",[190,1005,1006],{"class":778},"this",[190,1008,1009],{"class":196},".defaultProjects ",[190,1011,1012],{"class":676},"||",[190,1014,934],{"class":196},[190,1016,1018,1021,1023,1026,1028],{"class":192,"line":1017},65,[190,1019,1020],{"class":196},"      selectedGroups: ",[190,1022,1006],{"class":778},[190,1024,1025],{"class":196},".defaultGroups ",[190,1027,1012],{"class":676},[190,1029,934],{"class":196},[190,1031,1033],{"class":192,"line":1032},66,[190,1034,1035],{"class":196},"    };\n",[190,1037,1039],{"class":192,"line":1038},67,[190,1040,751],{"class":196},[190,1042,1044],{"class":192,"line":1043},68,[190,1045,1046],{"class":196},"  methods: {\n",[190,1048,1050,1053,1056,1060],{"class":192,"line":1049},69,[190,1051,1052],{"class":219},"    onProjectsSelected",[190,1054,1055],{"class":196},"(",[190,1057,1059],{"class":1058},"sqxcx","selectedProjects",[190,1061,1062],{"class":196},") {\n",[190,1064,1066,1069,1072,1074],{"class":192,"line":1065},70,[190,1067,1068],{"class":778},"      this",[190,1070,1071],{"class":196},".selectedProjects ",[190,1073,223],{"class":676},[190,1075,1076],{"class":196}," selectedProjects;\n",[190,1078,1080,1082,1084,1087,1089,1092,1095,1097,1100,1102],{"class":192,"line":1079},71,[190,1081,1068],{"class":778},[190,1083,132],{"class":196},[190,1085,1086],{"class":219},"$emit",[190,1088,1055],{"class":196},[190,1090,1091],{"class":226},"'selected'",[190,1093,1094],{"class":196},", ",[190,1096,1006],{"class":778},[190,1098,1099],{"class":196},".selectedProjects, ",[190,1101,1006],{"class":778},[190,1103,1104],{"class":196},".selectedGroups);\n",[190,1106,1108],{"class":192,"line":1107},72,[190,1109,787],{"class":196},[190,1111,1113,1116,1118,1121],{"class":192,"line":1112},73,[190,1114,1115],{"class":219},"    onGroupsSelected",[190,1117,1055],{"class":196},[190,1119,1120],{"class":1058},"selectedGroups",[190,1122,1062],{"class":196},[190,1124,1126,1128,1131,1133],{"class":192,"line":1125},74,[190,1127,1068],{"class":778},[190,1129,1130],{"class":196},".selectedGroups ",[190,1132,223],{"class":676},[190,1134,1135],{"class":196}," selectedGroups;\n",[190,1137,1139,1141,1143,1145,1147,1149,1151,1153,1155,1157],{"class":192,"line":1138},75,[190,1140,1068],{"class":778},[190,1142,132],{"class":196},[190,1144,1086],{"class":219},[190,1146,1055],{"class":196},[190,1148,1091],{"class":226},[190,1150,1094],{"class":196},[190,1152,1006],{"class":778},[190,1154,1099],{"class":196},[190,1156,1006],{"class":778},[190,1158,1104],{"class":196},[190,1160,1162],{"class":192,"line":1161},76,[190,1163,787],{"class":196},[190,1165,1167],{"class":192,"line":1166},77,[190,1168,751],{"class":196},[190,1170,1172],{"class":192,"line":1171},78,[190,1173,1174],{"class":196},"};\n",[190,1176,1178,1180,1182],{"class":192,"line":1177},79,[190,1179,654],{"class":196},[190,1181,669],{"class":200},[190,1183,204],{"class":196},[164,1185,1186],{},[13,1187,1188,1189,1191,1192,1194,1195,1198,1199,1094,1202,1094,1205,1094,1208,1211,1212,1215,1216,1218,1219,1094,1221,1094,1223,1211,1225,1215,1228,1230,1231,62,1233,1235,1236,1238,1239,1242,1243,62,1245,1247,1248,62,1250,1252,1253,1255],{},"In this implementation, the ",[100,1190,151],{}," component is rendered as a container for the ",[100,1193,158],{}," and",[100,1196,1197],{}," GroupsDropdownFilter"," components. It passes down the ",[100,1200,1201],{},"groupId",[100,1203,1204],{},"multiSelect",[100,1206,1207],{},"label",[100,1209,1210],{},"queryParams",", and ",[100,1213,1214],{},"defaultProjects"," props to the ",[100,1217,158],{}," component, and the ",[100,1220,1204],{},[100,1222,1207],{},[100,1224,1210],{},[100,1226,1227],{},"defaultGroups",[100,1229,155],{}," component. It also listens to the selected event emitted by the two components and updates its own ",[100,1232,1059],{},[100,1234,1120],{}," data accordingly. The ",[100,1237,151],{}," component emits its own ",[100,1240,1241],{},"selected"," event with the updated ",[100,1244,1059],{},[100,1246,1120],{}," data when it receives the selected event from the ",[100,1249,158],{},[100,1251,155],{}," components. This allows the parent component of the ",[100,1254,151],{}," to be notified whenever the selected projects and groups are updated, so that it can take appropriate action, such as updating the data it displays.",[13,1257,1258],{},"With ChatGPT’s shared Vue component, we could start an MR for the issue, but would need to manually review the code and run tests in order to make sure the deduplication was done correctly.",[134,1260,1262],{"id":1261},"adjusting-the-filters","Adjusting the filters",[13,1264,1265,1266,62,1269,1272,1273,1278,1279,132],{},"In hopes of finding an issue that ChatGPT could fully solve, this time we filtered using two labels (",[100,1267,1268],{},"good for new contributors",[100,1270,1271],{},"quick win","), Assignee = None, and added the keyword “refactor” to look for issues that required less net new code. At the time of writing, this ",[17,1274,1277],{"href":1275,"rel":1276},"https://gitlab.com/gitlab-org/gitlab/-/issues/?search=refactor&sort=updated_asc&state=opened&label_name%5B%5D=quick%20win&label_name%5B%5D=good%20for%20new%20contributors&assignee_id=None&first_page_size=20",[],"query"," returned one issue: ",[17,1280,1283],{"href":1281,"rel":1282},"https://gitlab.com/gitlab-org/gitlab/-/issues/228611",[],"a refactor for widget state tests",[13,1285,1286,1287,1290],{},"After reviewing the issue, we opened the ",[100,1288,1289],{},"/spec/frontend/vue_merge_request_widget/stores/get_state_key_spec.js"," file mentioned in the issue description by navigating to that file on GitLab.com SaaS and opening the dropdown on the blue button at the top of the file frame, selecting “Open in Web IDE”, and then clicking the button to open the file in GitLab’s built-in Web IDE.",[13,1292,1293,1294,1297,1298,176],{},"We copied the code from the file and asked ChatGPT to refactor these tests into a table of ",[100,1295,1296],{},"it.each",". It was interesting to watch the output as ChatGPT provided an example of how we could refactor the tests using ",[100,1299,1296],{},[181,1301,1305],{"className":1302,"code":1303,"language":1304,"meta":186,"style":186},"language-javascript shiki shiki-themes github-light","import getStateKey from '~/vue_merge_request_widget/stores/get_state_key';\n\ndescribe('getStateKey', () => {\n  const context = {\n    mergeStatus: 'checked',\n    autoMergeEnabled: false,\n    canMerge: true,\n    onlyAllowMergeIfPipelineSucceeds: false,\n    isPipelineFailed: false,\n    hasMergeableDiscussionsState: false,\n    isPipelineBlocked: false,\n    canBeMerged: false,\n    projectArchived: false,\n    branchMissing: false,\n    commitsCount: 2,\n    hasConflicts: false,\n    draft: false,\n    detailedMergeStatus: null,\n  };\n\n  it.each([\n    [{}, null],\n    [{detailedMergeStatus: 'MERGEABLE'}, 'readyToMerge'],\n    [{detailedMergeStatus: 'DISCUSSIONS_NOT_RESOLVED'}, 'unresolvedDiscussions'],\n    [{detailedMergeStatus: 'DRAFT_STATUS'}, 'draft'],\n    [{detailedMergeStatus: 'CI_MUST_PASS'}, 'pipelineFailed'],\n    [{shouldBeRebased: true}, 'rebase'],\n    [{hasConflicts: true}, 'conflicts'],\n    [{detailedMergeStatus: 'CHECKING'}, 'checking'],\n    [{commitsCount: 0}, 'nothingToMerge'],\n    [{commitsCount: 1, branchMissing: true}, 'missingBranch'],\n    [{projectArchived: true}, 'archived'],\n  ])('should return \"%s\" when called with %p', (expected, input) => {\n    const bound = getStateKey.bind(Object.assign({}, context, input));\n    expect(bound()).toEqual(expected);\n  });\n\n  it('returns rebased state key', () => {\n    const context = {\n      mergeStatus: 'checked',\n      autoMergeEnabled: false,\n      canMerge: true,\n      onlyAllowMergeIfPipelineSucceeds: true,\n      isPipelineFailed: true,\n      hasMergeableDiscussionsState: false,\n      isPipelineBlocked: false,\n      canBeMerged: false,\n      shouldBeRebased: true,\n      projectArchived: false,\n      branchMissing: false,\n      commitsCount: 2,\n      hasConflicts: false,\n      draft: false,\n    };\n    const bound = getStateKey.bind(context);\n\n    expect(bound()).toEqual('rebase');\n  });\n});\n","javascript",[100,1306,1307,1321,1325,1342,1355,1365,1374,1383,1392,1401,1410,1419,1428,1437,1446,1456,1465,1474,1484,1489,1493,1504,1514,1530,1544,1558,1572,1586,1600,1614,1629,1648,1662,1688,1713,1732,1737,1741,1757,1767,1776,1785,1794,1803,1812,1821,1830,1839,1848,1857,1866,1875,1884,1893,1897,1912,1916,1935,1939],{"__ignoreMap":186},[190,1308,1309,1311,1314,1316,1319],{"class":192,"line":193},[190,1310,677],{"class":676},[190,1312,1313],{"class":196}," getStateKey ",[190,1315,683],{"class":676},[190,1317,1318],{"class":226}," '~/vue_merge_request_widget/stores/get_state_key'",[190,1320,689],{"class":196},[190,1322,1323],{"class":192,"line":207},[190,1324,379],{"emptyLinePlaceholder":378},[190,1326,1327,1330,1332,1335,1338,1340],{"class":192,"line":216},[190,1328,1329],{"class":219},"describe",[190,1331,1055],{"class":196},[190,1333,1334],{"class":226},"'getStateKey'",[190,1336,1337],{"class":196},", () ",[190,1339,893],{"class":676},[190,1341,718],{"class":196},[190,1343,1344,1347,1350,1353],{"class":192,"line":230},[190,1345,1346],{"class":676},"  const",[190,1348,1349],{"class":778}," context",[190,1351,1352],{"class":676}," =",[190,1354,718],{"class":196},[190,1356,1357,1360,1363],{"class":192,"line":241},[190,1358,1359],{"class":196},"    mergeStatus: ",[190,1361,1362],{"class":226},"'checked'",[190,1364,729],{"class":196},[190,1366,1367,1370,1372],{"class":192,"line":252},[190,1368,1369],{"class":196},"    autoMergeEnabled: ",[190,1371,807],{"class":778},[190,1373,729],{"class":196},[190,1375,1376,1379,1381],{"class":192,"line":263},[190,1377,1378],{"class":196},"    canMerge: ",[190,1380,779],{"class":778},[190,1382,729],{"class":196},[190,1384,1385,1388,1390],{"class":192,"line":274},[190,1386,1387],{"class":196},"    onlyAllowMergeIfPipelineSucceeds: ",[190,1389,807],{"class":778},[190,1391,729],{"class":196},[190,1393,1394,1397,1399],{"class":192,"line":280},[190,1395,1396],{"class":196},"    isPipelineFailed: ",[190,1398,807],{"class":778},[190,1400,729],{"class":196},[190,1402,1403,1406,1408],{"class":192,"line":291},[190,1404,1405],{"class":196},"    hasMergeableDiscussionsState: ",[190,1407,807],{"class":778},[190,1409,729],{"class":196},[190,1411,1412,1415,1417],{"class":192,"line":310},[190,1413,1414],{"class":196},"    isPipelineBlocked: ",[190,1416,807],{"class":778},[190,1418,729],{"class":196},[190,1420,1421,1424,1426],{"class":192,"line":319},[190,1422,1423],{"class":196},"    canBeMerged: ",[190,1425,807],{"class":778},[190,1427,729],{"class":196},[190,1429,1430,1433,1435],{"class":192,"line":325},[190,1431,1432],{"class":196},"    projectArchived: ",[190,1434,807],{"class":778},[190,1436,729],{"class":196},[190,1438,1439,1442,1444],{"class":192,"line":336},[190,1440,1441],{"class":196},"    branchMissing: ",[190,1443,807],{"class":778},[190,1445,729],{"class":196},[190,1447,1448,1451,1454],{"class":192,"line":347},[190,1449,1450],{"class":196},"    commitsCount: ",[190,1452,1453],{"class":778},"2",[190,1455,729],{"class":196},[190,1457,1458,1461,1463],{"class":192,"line":358},[190,1459,1460],{"class":196},"    hasConflicts: ",[190,1462,807],{"class":778},[190,1464,729],{"class":196},[190,1466,1467,1470,1472],{"class":192,"line":369},[190,1468,1469],{"class":196},"    draft: ",[190,1471,807],{"class":778},[190,1473,729],{"class":196},[190,1475,1476,1479,1482],{"class":192,"line":375},[190,1477,1478],{"class":196},"    detailedMergeStatus: ",[190,1480,1481],{"class":778},"null",[190,1483,729],{"class":196},[190,1485,1486],{"class":192,"line":382},[190,1487,1488],{"class":196},"  };\n",[190,1490,1491],{"class":192,"line":390},[190,1492,379],{"emptyLinePlaceholder":378},[190,1494,1495,1498,1501],{"class":192,"line":408},[190,1496,1497],{"class":196},"  it.",[190,1499,1500],{"class":219},"each",[190,1502,1503],{"class":196},"([\n",[190,1505,1506,1509,1511],{"class":192,"line":419},[190,1507,1508],{"class":196},"    [{}, ",[190,1510,1481],{"class":778},[190,1512,1513],{"class":196},"],\n",[190,1515,1516,1519,1522,1525,1528],{"class":192,"line":429},[190,1517,1518],{"class":196},"    [{detailedMergeStatus: ",[190,1520,1521],{"class":226},"'MERGEABLE'",[190,1523,1524],{"class":196},"}, ",[190,1526,1527],{"class":226},"'readyToMerge'",[190,1529,1513],{"class":196},[190,1531,1532,1534,1537,1539,1542],{"class":192,"line":435},[190,1533,1518],{"class":196},[190,1535,1536],{"class":226},"'DISCUSSIONS_NOT_RESOLVED'",[190,1538,1524],{"class":196},[190,1540,1541],{"class":226},"'unresolvedDiscussions'",[190,1543,1513],{"class":196},[190,1545,1546,1548,1551,1553,1556],{"class":192,"line":445},[190,1547,1518],{"class":196},[190,1549,1550],{"class":226},"'DRAFT_STATUS'",[190,1552,1524],{"class":196},[190,1554,1555],{"class":226},"'draft'",[190,1557,1513],{"class":196},[190,1559,1560,1562,1565,1567,1570],{"class":192,"line":451},[190,1561,1518],{"class":196},[190,1563,1564],{"class":226},"'CI_MUST_PASS'",[190,1566,1524],{"class":196},[190,1568,1569],{"class":226},"'pipelineFailed'",[190,1571,1513],{"class":196},[190,1573,1574,1577,1579,1581,1584],{"class":192,"line":461},[190,1575,1576],{"class":196},"    [{shouldBeRebased: ",[190,1578,779],{"class":778},[190,1580,1524],{"class":196},[190,1582,1583],{"class":226},"'rebase'",[190,1585,1513],{"class":196},[190,1587,1588,1591,1593,1595,1598],{"class":192,"line":466},[190,1589,1590],{"class":196},"    [{hasConflicts: ",[190,1592,779],{"class":778},[190,1594,1524],{"class":196},[190,1596,1597],{"class":226},"'conflicts'",[190,1599,1513],{"class":196},[190,1601,1602,1604,1607,1609,1612],{"class":192,"line":742},[190,1603,1518],{"class":196},[190,1605,1606],{"class":226},"'CHECKING'",[190,1608,1524],{"class":196},[190,1610,1611],{"class":226},"'checking'",[190,1613,1513],{"class":196},[190,1615,1616,1619,1622,1624,1627],{"class":192,"line":748},[190,1617,1618],{"class":196},"    [{commitsCount: ",[190,1620,1621],{"class":778},"0",[190,1623,1524],{"class":196},[190,1625,1626],{"class":226},"'nothingToMerge'",[190,1628,1513],{"class":196},[190,1630,1631,1633,1636,1639,1641,1643,1646],{"class":192,"line":754},[190,1632,1618],{"class":196},[190,1634,1635],{"class":778},"1",[190,1637,1638],{"class":196},", branchMissing: ",[190,1640,779],{"class":778},[190,1642,1524],{"class":196},[190,1644,1645],{"class":226},"'missingBranch'",[190,1647,1513],{"class":196},[190,1649,1650,1653,1655,1657,1660],{"class":192,"line":760},[190,1651,1652],{"class":196},"    [{projectArchived: ",[190,1654,779],{"class":778},[190,1656,1524],{"class":196},[190,1658,1659],{"class":226},"'archived'",[190,1661,1513],{"class":196},[190,1663,1664,1667,1670,1673,1676,1678,1681,1684,1686],{"class":192,"line":766},[190,1665,1666],{"class":196},"  ])(",[190,1668,1669],{"class":226},"'should return \"%s\" when called with %p'",[190,1671,1672],{"class":196},", (",[190,1674,1675],{"class":1058},"expected",[190,1677,1094],{"class":196},[190,1679,1680],{"class":1058},"input",[190,1682,1683],{"class":196},") ",[190,1685,893],{"class":676},[190,1687,718],{"class":196},[190,1689,1690,1693,1696,1698,1701,1704,1707,1710],{"class":192,"line":772},[190,1691,1692],{"class":676},"    const",[190,1694,1695],{"class":778}," bound",[190,1697,1352],{"class":676},[190,1699,1700],{"class":196}," getStateKey.",[190,1702,1703],{"class":219},"bind",[190,1705,1706],{"class":196},"(Object.",[190,1708,1709],{"class":219},"assign",[190,1711,1712],{"class":196},"({}, context, input));\n",[190,1714,1715,1718,1720,1723,1726,1729],{"class":192,"line":784},[190,1716,1717],{"class":219},"    expect",[190,1719,1055],{"class":196},[190,1721,1722],{"class":219},"bound",[190,1724,1725],{"class":196},"()).",[190,1727,1728],{"class":219},"toEqual",[190,1730,1731],{"class":196},"(expected);\n",[190,1733,1734],{"class":192,"line":790},[190,1735,1736],{"class":196},"  });\n",[190,1738,1739],{"class":192,"line":796},[190,1740,379],{"emptyLinePlaceholder":378},[190,1742,1743,1746,1748,1751,1753,1755],{"class":192,"line":802},[190,1744,1745],{"class":219},"  it",[190,1747,1055],{"class":196},[190,1749,1750],{"class":226},"'returns rebased state key'",[190,1752,1337],{"class":196},[190,1754,893],{"class":676},[190,1756,718],{"class":196},[190,1758,1759,1761,1763,1765],{"class":192,"line":812},[190,1760,1692],{"class":676},[190,1762,1349],{"class":778},[190,1764,1352],{"class":676},[190,1766,718],{"class":196},[190,1768,1769,1772,1774],{"class":192,"line":822},[190,1770,1771],{"class":196},"      mergeStatus: ",[190,1773,1362],{"class":226},[190,1775,729],{"class":196},[190,1777,1778,1781,1783],{"class":192,"line":827},[190,1779,1780],{"class":196},"      autoMergeEnabled: ",[190,1782,807],{"class":778},[190,1784,729],{"class":196},[190,1786,1787,1790,1792],{"class":192,"line":833},[190,1788,1789],{"class":196},"      canMerge: ",[190,1791,779],{"class":778},[190,1793,729],{"class":196},[190,1795,1796,1799,1801],{"class":192,"line":839},[190,1797,1798],{"class":196},"      onlyAllowMergeIfPipelineSucceeds: ",[190,1800,779],{"class":778},[190,1802,729],{"class":196},[190,1804,1805,1808,1810],{"class":192,"line":848},[190,1806,1807],{"class":196},"      isPipelineFailed: ",[190,1809,779],{"class":778},[190,1811,729],{"class":196},[190,1813,1814,1817,1819],{"class":192,"line":858},[190,1815,1816],{"class":196},"      hasMergeableDiscussionsState: ",[190,1818,807],{"class":778},[190,1820,729],{"class":196},[190,1822,1823,1826,1828],{"class":192,"line":863},[190,1824,1825],{"class":196},"      isPipelineBlocked: ",[190,1827,807],{"class":778},[190,1829,729],{"class":196},[190,1831,1832,1835,1837],{"class":192,"line":869},[190,1833,1834],{"class":196},"      canBeMerged: ",[190,1836,807],{"class":778},[190,1838,729],{"class":196},[190,1840,1841,1844,1846],{"class":192,"line":875},[190,1842,1843],{"class":196},"      shouldBeRebased: ",[190,1845,779],{"class":778},[190,1847,729],{"class":196},[190,1849,1850,1853,1855],{"class":192,"line":884},[190,1851,1852],{"class":196},"      projectArchived: ",[190,1854,807],{"class":778},[190,1856,729],{"class":196},[190,1858,1859,1862,1864],{"class":192,"line":899},[190,1860,1861],{"class":196},"      branchMissing: ",[190,1863,807],{"class":778},[190,1865,729],{"class":196},[190,1867,1868,1871,1873],{"class":192,"line":904},[190,1869,1870],{"class":196},"      commitsCount: ",[190,1872,1453],{"class":778},[190,1874,729],{"class":196},[190,1876,1877,1880,1882],{"class":192,"line":910},[190,1878,1879],{"class":196},"      hasConflicts: ",[190,1881,807],{"class":778},[190,1883,729],{"class":196},[190,1885,1886,1889,1891],{"class":192,"line":916},[190,1887,1888],{"class":196},"      draft: ",[190,1890,807],{"class":778},[190,1892,729],{"class":196},[190,1894,1895],{"class":192,"line":925},[190,1896,1035],{"class":196},[190,1898,1899,1901,1903,1905,1907,1909],{"class":192,"line":937},[190,1900,1692],{"class":676},[190,1902,1695],{"class":778},[190,1904,1352],{"class":676},[190,1906,1700],{"class":196},[190,1908,1703],{"class":219},[190,1910,1911],{"class":196},"(context);\n",[190,1913,1914],{"class":192,"line":942},[190,1915,379],{"emptyLinePlaceholder":378},[190,1917,1918,1920,1922,1924,1926,1928,1930,1932],{"class":192,"line":948},[190,1919,1717],{"class":219},[190,1921,1055],{"class":196},[190,1923,1722],{"class":219},[190,1925,1725],{"class":196},[190,1927,1728],{"class":219},[190,1929,1055],{"class":196},[190,1931,1583],{"class":226},[190,1933,1934],{"class":196},");\n",[190,1936,1937],{"class":192,"line":953},[190,1938,1736],{"class":196},[190,1940,1941],{"class":192,"line":962},[190,1942,1943],{"class":196},"});\n",[13,1945,1946,1947,176],{},"Along with an explanation of ",[100,1948,1296],{},[164,1950,1951],{},[13,1952,1953,1954,1956],{},"Note that ",[100,1955,1296],{}," is a utility provided by Jest that allows you to write the same test with different inputs and expected results. This can make your tests more concise and easier to read.",[13,1958,1959],{},"Our next steps were to:",[36,1961,1962,1965,1968,1971],{},[39,1963,1964],{},"Paste the output from ChatGPT into the Web IDE.",[39,1966,1967],{},"Click the blue “Commit” button to commit the code.",[39,1969,1970],{},"Name the branch.",[39,1972,1973],{},"Open a merge request.",[13,1975,1976,1977,1982],{},"All of this can be done inside ",[17,1978,1981],{"href":1979,"rel":1980},"https://docs.gitlab.com/user/project/web_ide/",[],"GitLab’s Web IDE"," without leaving the browser.",[134,1984,1986],{"id":1985},"examining-the-results","Examining the results",[13,1988,1989,1990,1992],{},"Once we opened the merge request, a CI/CD pipeline was created to test the change. Unfortunately, the pipeline jobs for the Jest tests failed because the tests were returning ",[100,1991,1481],{}," for each case instead of the expected results. We went back to ChatGPT to see if it could help us understand why the test was returning null for all cases. ChatGPT suggested a few different implementations to check to make sure things are defined currently:",[164,1994,1995,2001],{},[13,1996,1997,1998,2000],{},"There are a few reasons why the tests in the ",[100,1999,1296],{}," function might be returning null for every case. Here are a few possibilities:",[13,2002,2003,2004,2007,2008,2010,2011,2013],{},"If the ",[100,2005,2006],{},"getStateKey"," function is not implemented correctly, it might always return null, regardless of the input.\nIf the ",[100,2009,2006],{}," function relies on certain variables that are not defined in the test cases, it might return null because those variables are undefined.\nIf the context object passed to the ",[100,2012,2006],{}," function is not being merged correctly with the input object in the test cases, the function might not have access to all of the necessary information, and it might return null.",[13,2015,2016,2017,2022,2023,2025,2026,2028],{},"While ChatGPT couldn’t solve the issue with the returned value directly, it provided a lot of possibilities to look into and offered suggestions of what variables or functions to debug. The suggestions prompted us to add code changes that logged the variable values onto the ",[17,2018,2021],{"href":2019,"rel":2020},"https://www.w3schools.com/js/js_debugging.asp",[],"JavaScript debug console",", find the implementation of the ",[100,2024,2006],{}," function, and figure out why the return value was null. Whenever we came across something unfamiliar in the code, like syntax in the ",[100,2027,1296],{}," that wasn’t familiar, we asked ChatGPT for clarification or a helpful example. Many times throughout this experiment, working with ChatGPT felt like “rubber duck debugging,” but with an AI with which you have to be very specific about your ask.",[73,2030,2032],{"id":2031},"what-we-learned-from-chatgpt","What we learned from ChatGPT",[13,2034,2035,2036,2041],{},"In the end, we weren’t able to figure out why our tests were returning null, so we asked the front-end team if someone could review the code. Senior Frontend Engineer ",[17,2037,2040],{"href":2038,"rel":2039},"https://gitlab.com/agulina",[],"Angelo Gulina"," reviewed the MR. He found that the solution was actually quite trivial: The order of parameters was inverted, resulting in a comparison that led to null! In his assessment, ChatGPT wasn’t able to provide a working solution, but would be able to provide solutions and ideas to an engineer with some experience with the codebase. It delivered a clean, organized solution and answered the task of combining the tests into an it.each table. It could not, however, catch the actual error (the inversion of parameters) or correctly guess why the tests were returning null.",[13,2043,2044],{},"Let's circle back to the question that started this experiment: Can we use ChatGPT to contribute to GitLab? At this time, we’d say, \"yes,\" and you will need some understanding of the code to complete your solution. Since ChatGPT is a language model trained by OpenAI, it can only answer questions and provide information addressed in the model, which means answers requiring contextual specificity may fall short of what is needed to resolve an issue. However, it’s a tool that can help you if you’re stuck, need more clarification on a code snippet, or are trying to refactor some code. It was fascinating for us to experiment with ChatGPT and we were excited to see what it was capable of. The code provided, however, lacked some of the valuable insight and industry experience that a community of contributors can provide.",[13,2046,2047],{},"At GitLab, our community and our open source stewardship are part of our company strategy. Thousands of open source contributors worldwide have helped make GitLab what it is today. We see potential for ChatGPT and similar AI tools, not as a replacement for our community, but a way to make our community more efficient and enable more people to contribute GitLab.",[2049,2050,2051],"style",{},"html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sB1qb, html code.shiki .sB1qb{--shiki-default:#B31D28;--shiki-default-font-style:italic}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}",{"title":186,"searchDepth":207,"depth":207,"links":2053},[2054,2059],{"id":75,"depth":207,"text":76,"children":2055},[2056,2057,2058],{"id":136,"depth":216,"text":137},{"id":1261,"depth":216,"text":1262},{"id":1985,"depth":216,"text":1986},{"id":2031,"depth":207,"text":2032},"engineering","2022-12-15","We put ChatGPT to the test to see if it could contribute to GitLab. Here's what we learned.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749670171/Blog/Hero%20Images/akshay-nanavati-Zq6HerrBPEs-unsplash.jpg",{},"/en-us/blog/can-chatgpt-resolve-gitlab-issues",{"title":5,"description":2062,"ogTitle":5,"ogDescription":2062,"noIndex":2065,"ogImage":2066,"ogUrl":2070,"ogSiteName":2071,"ogType":2072,"canonicalUrls":2070},"https://about.gitlab.com/blog/can-chatgpt-resolve-gitlab-issues","https://about.gitlab.com","article","can-chatgpt-resolve-gitlab-issues","en-us/blog/can-chatgpt-resolve-gitlab-issues",[2076,2077,2078,2079],"tutorial","community","contributors","DevOps","BlogPost","1HG_x4oqt8z21OtK4uIjM1GEuAy9ogZeAHXlxYHuqgU",{"logo":2083,"freeTrial":2088,"sales":2093,"login":2098,"items":2103,"search":2437,"minimal":2469,"duo":2488,"switchNav":2497,"pricingDeployment":2508},{"config":2084},{"href":2085,"dataGaName":2086,"dataGaLocation":2087},"/","gitlab logo","header",{"text":2089,"config":2090},"Get free trial",{"href":2091,"dataGaName":2092,"dataGaLocation":2087},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":2094,"config":2095},"Request a demo",{"href":2096,"dataGaName":2097,"dataGaLocation":2087},"/request-a-demo/","sales",{"text":2099,"config":2100},"Sign in",{"href":2101,"dataGaName":2102,"dataGaLocation":2087},"https://gitlab.com/users/sign_in/","sign in",[2104,2189,2277,2282,2361,2415],{"text":2105,"left":378,"config":2106,"menu":2108},"Platform",{"dataNavLevelOne":2107},"platform",{"type":2109,"link":2110,"columns":2114,"feature":2178},"lists",{"text":2111,"config":2112},"Explore the Platform",{"href":2113,"dataGaName":2107,"dataGaLocation":2087},"/platform/",[2115,2137,2160],{"title":2079,"items":2116},[2117,2122,2127,2132],{"text":2118,"config":2119},"CI/CD",{"href":2120,"dataGaLocation":2087,"dataGaName":2121},"/solutions/continuous-integration/","ci/cd",{"text":2123,"config":2124},"Source Code Management",{"href":2125,"dataGaLocation":2087,"dataGaName":2126},"/solutions/source-code-management/","source code management",{"text":2128,"config":2129},"Agile Delivery",{"href":2130,"dataGaLocation":2087,"dataGaName":2131},"/solutions/agile-delivery/","agile delivery",{"text":2133,"config":2134},"Artifact Management",{"href":2135,"dataGaLocation":2087,"dataGaName":2136},"/artifact-central/","artifact management",{"title":2138,"items":2139},"Security & Governance",[2140,2145,2150,2155],{"text":2141,"config":2142},"Application Security Testing",{"href":2143,"dataGaLocation":2087,"dataGaName":2144},"/solutions/application-security-testing/","application security testing",{"text":2146,"config":2147},"Governance & Compliance",{"href":2148,"dataGaLocation":2087,"dataGaName":2149},"/solutions/software-compliance/","governance and compliance",{"text":2151,"config":2152},"Secrets Management",{"href":2153,"dataGaLocation":2087,"dataGaName":2154},"/gitlab-secrets-manager/","secrets management",{"text":2156,"config":2157},"Supply Chain Security",{"href":2158,"dataGaLocation":2087,"dataGaName":2159},"/solutions/supply-chain/","supply chain security",{"title":2161,"items":2162},"Agentic AI & Context",[2163,2168,2173],{"text":2164,"config":2165},"Duo Agent Platform",{"href":2166,"dataGaLocation":2087,"dataGaName":2167},"/gitlab-duo-agent-platform/","duo agent platform",{"text":2169,"config":2170},"Orbit Context Graph",{"href":2171,"dataGaLocation":2087,"dataGaName":2172},"/gitlab-orbit/","orbit",{"text":2174,"config":2175},"Visibility & Measurement",{"href":2176,"dataGaLocation":2087,"dataGaName":2177},"/solutions/visibility-measurement/","visibility and measurement",{"config":2179,"title":2182,"text":2183,"link":2184},{"background":2180,"textColor":2181},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":2185,"config":2186},"Read the announcement",{"href":2187,"dataGaName":2188,"dataGaLocation":2087},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":2190,"left":378,"config":2191,"menu":2193},"Solutions",{"dataNavLevelOne":2192},"solutions",{"type":2109,"link":2194,"columns":2198,"feature":2268},{"text":2195,"config":2196},"View all Solutions",{"href":2197,"dataGaName":2192,"dataGaLocation":2087},"/solutions/",[2199,2217,2235],{"title":2200,"items":2201},"Outcomes",[2202,2207,2212],{"text":2203,"config":2204},"DevOps Modernization",{"href":2205,"dataGaLocation":2087,"dataGaName":2206},"/assessments/devops-modernization-assessment/","devops modernization",{"text":2208,"config":2209},"Security Modernization",{"href":2210,"dataGaLocation":2087,"dataGaName":2211},"/assessments/security-modernization-assessment/","security modernization",{"text":2213,"config":2214},"AI Modernization",{"href":2215,"dataGaLocation":2087,"dataGaName":2216},"/assessments/ai-modernization-assessment/","ai modernization",{"title":2218,"items":2219},"By size",[2220,2225,2230],{"text":2221,"config":2222},"Enterprise",{"href":2223,"dataGaLocation":2087,"dataGaName":2224},"/enterprise/","enterprise",{"text":2226,"config":2227},"Small Business",{"href":2228,"dataGaLocation":2087,"dataGaName":2229},"/small-business/","small business",{"text":2231,"config":2232},"Startups",{"href":2233,"dataGaLocation":2087,"dataGaName":2234},"/solutions/startups/","startups",{"title":2236,"items":2237},"Industries",[2238,2243,2248,2253,2258,2263],{"text":2239,"config":2240},"Financial Services",{"href":2241,"dataGaLocation":2087,"dataGaName":2242},"/solutions/finance/","financial services",{"text":2244,"config":2245},"Public Sector",{"href":2246,"dataGaLocation":2087,"dataGaName":2247},"/solutions/public-sector/","public sector",{"text":2249,"config":2250},"Telecommunications",{"href":2251,"dataGaLocation":2087,"dataGaName":2252},"/solutions/telecommunications/","telecommunications",{"text":2254,"config":2255},"Automotive",{"href":2256,"dataGaLocation":2087,"dataGaName":2257},"/solutions/automotive/","automotive",{"text":2259,"config":2260},"Education",{"href":2261,"dataGaLocation":2087,"dataGaName":2262},"/solutions/education/","education",{"text":2264,"config":2265},"Aerospace",{"href":2266,"dataGaLocation":2087,"dataGaName":2267},"/solutions/aerospace/","aerospace",{"config":2269,"title":2270,"text":2271,"link":2272},{"background":2180,"textColor":2181},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":2273,"config":2274},"Explore the standard",{"href":2275,"dataGaName":2276,"dataGaLocation":2087},"/gitlab-security-standard/","gitlab security standard",{"text":2278,"config":2279},"Pricing",{"href":2280,"dataGaName":2281,"dataGaLocation":2087,"dataNavLevelOne":2281},"/pricing/","pricing",{"text":2283,"config":2284,"menu":2286},"Resources",{"dataNavLevelOne":2285},"resources",{"type":2109,"link":2287,"columns":2291,"feature":2352},{"text":2288,"config":2289},"View all resources",{"href":2290,"dataGaName":2285,"dataGaLocation":2087},"/resources/",[2292,2325],{"title":2293,"items":2294},"Discover",[2295,2300,2305,2310,2315,2320],{"text":2296,"config":2297},"Docs",{"href":2298,"dataGaName":2299,"dataGaLocation":2087},"https://docs.gitlab.com/","docs",{"text":2301,"config":2302},"University",{"href":2303,"dataGaName":2304,"dataGaLocation":2087},"https://university.gitlab.com/","university",{"text":2306,"config":2307},"Demo Series",{"href":2308,"dataGaName":2309,"dataGaLocation":2087},"/gitlab-technical-demo-series/","demo series",{"text":2311,"config":2312},"Demo Hub",{"href":2313,"dataGaName":2314,"dataGaLocation":2087},"/demo-hub/","demo hub",{"text":2316,"config":2317},"Services",{"href":2318,"dataGaName":2319,"dataGaLocation":2087},"/services/","services",{"text":2321,"config":2322},"Well Architected",{"href":2323,"dataGaName":2324,"dataGaLocation":2087},"/resources/well-architected/","well architected",{"title":2326,"items":2327},"Connect",[2328,2333,2337,2342,2347],{"text":2329,"config":2330},"Blog",{"href":2331,"dataGaName":2332,"dataGaLocation":2087},"/blog/","blog",{"text":2334,"config":2335},"Community",{"href":2336,"dataGaName":2077,"dataGaLocation":2087},"/community/",{"text":2338,"config":2339},"Customers",{"href":2340,"dataGaName":2341,"dataGaLocation":2087},"/customers/","customers",{"text":2343,"config":2344},"Partners",{"href":2345,"dataGaName":2346,"dataGaLocation":2087},"/partners/","partners",{"text":2348,"config":2349},"Events",{"href":2350,"dataGaName":2351,"dataGaLocation":2087},"/events/","events",{"config":2353,"title":2354,"text":2355,"link":2356},{"background":2180,"textColor":2181},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":2357,"config":2358},"Read the latest",{"href":2359,"dataGaName":2360,"dataGaLocation":2087},"/whats-new/","whats new",{"text":2362,"config":2363,"menu":2365},"Company",{"dataNavLevelOne":2364},"company",{"type":2109,"columns":2366},[2367],{"items":2368},[2369,2374,2380,2385,2390,2395,2400,2405,2410],{"text":2370,"config":2371},"About",{"href":2372,"dataGaName":2373,"dataGaLocation":2087},"/company/","about",{"text":2375,"config":2376,"footerGa":2379},"Jobs",{"href":2377,"dataGaName":2378,"dataGaLocation":2087},"/jobs/","jobs",{"dataGaName":2378},{"text":2381,"config":2382},"Press",{"href":2383,"dataGaName":2384,"dataGaLocation":2087},"/press/","press",{"text":2386,"config":2387},"Handbook",{"href":2388,"dataGaName":2389,"dataGaLocation":2087},"https://handbook.gitlab.com/","handbook",{"text":2391,"config":2392},"Leadership",{"href":2393,"dataGaName":2394,"dataGaLocation":2087},"/company/team/e-group/","leadership",{"text":2396,"config":2397},"Investor relations",{"href":2398,"dataGaName":2399,"dataGaLocation":2087},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":2401,"config":2402},"Trust Center",{"href":2403,"dataGaName":2404,"dataGaLocation":2087},"/security/","trust center",{"text":2406,"config":2407},"AI Transparency Center",{"href":2408,"dataGaName":2409,"dataGaLocation":2087},"/ai-transparency-center/","ai transparency center",{"text":2411,"config":2412},"Newsletter",{"href":2413,"dataGaName":2414,"dataGaLocation":2087},"/company/contact/#contact-forms","newsletter",{"text":2416,"config":2417,"menu":2418},"Contact us",{"dataNavLevelOne":2364},{"type":2109,"columns":2419},[2420],{"items":2421},[2422,2427,2432],{"text":2423,"config":2424},"Talk to sales",{"href":2425,"dataGaName":2426,"dataGaLocation":2087},"/sales/","talk to sales",{"text":2428,"config":2429},"Support portal",{"href":2430,"dataGaName":2431,"dataGaLocation":2087},"https://support.gitlab.com/hc/en-us","support portal",{"text":2433,"config":2434},"Customer portal",{"href":2435,"dataGaName":2436,"dataGaLocation":2087},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":2438,"login":2439,"suggestions":2446},"Close",{"text":2440,"link":2441},"To search repositories and projects, login to",{"text":2442,"config":2443},"gitlab.com",{"href":2101,"dataGaName":2444,"dataGaLocation":2445},"search login","search",{"text":2447,"default":2448},"Suggestions",[2449,2452,2455,2457,2461,2465],{"text":2450,"config":2451},"GitLab Duo Agent Platform",{"href":2166,"dataGaName":2450,"dataGaLocation":2445},{"text":2453,"config":2454},"Code Suggestions (AI)",{"href":2166,"dataGaName":2453,"dataGaLocation":2445},{"text":2118,"config":2456},{"href":2120,"dataGaName":2118,"dataGaLocation":2445},{"text":2458,"config":2459},"GitLab on AWS",{"href":2460,"dataGaName":2458,"dataGaLocation":2445},"/partners/technology-partners/aws/",{"text":2462,"config":2463},"GitLab on Google Cloud",{"href":2464,"dataGaName":2462,"dataGaLocation":2445},"/partners/technology-partners/google-cloud-platform/",{"text":2466,"config":2467},"Why GitLab?",{"href":2468,"dataGaName":2466,"dataGaLocation":2445},"/why-gitlab/",{"freeTrial":2470,"mobileIcon":2475,"desktopIcon":2480,"secondaryButton":2483},{"text":2471,"config":2472},"Start free trial",{"href":2473,"dataGaName":2092,"dataGaLocation":2474},"https://gitlab.com/-/trials/new/","nav",{"altText":2476,"config":2477},"Gitlab Icon",{"src":2478,"dataGaName":2479,"dataGaLocation":2474},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":2476,"config":2481},{"src":2482,"dataGaName":2479,"dataGaLocation":2474},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":2484,"config":2485},"Get Started",{"href":2486,"dataGaName":2487,"dataGaLocation":2474},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":2489,"mobileIcon":2493,"desktopIcon":2495},{"text":2490,"config":2491},"Learn more about GitLab Duo",{"href":2166,"dataGaName":2492,"dataGaLocation":2474},"gitlab duo",{"altText":2476,"config":2494},{"src":2478,"dataGaName":2479,"dataGaLocation":2474},{"altText":2476,"config":2496},{"src":2482,"dataGaName":2479,"dataGaLocation":2474},{"button":2498,"mobileIcon":2503,"desktopIcon":2505},{"text":2499,"config":2500},"/switch",{"href":2501,"dataGaName":2502,"dataGaLocation":2474},"#contact","switch",{"altText":2476,"config":2504},{"src":2478,"dataGaName":2479,"dataGaLocation":2474},{"altText":2476,"config":2506},{"src":2507,"dataGaName":2479,"dataGaLocation":2474},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":2509,"mobileIcon":2514,"desktopIcon":2516},{"text":2510,"config":2511},"Back to pricing",{"href":2280,"dataGaName":2512,"dataGaLocation":2474,"icon":2513},"back to pricing","GoBack",{"altText":2476,"config":2515},{"src":2478,"dataGaName":2479,"dataGaLocation":2474},{"altText":2476,"config":2517},{"src":2482,"dataGaName":2479,"dataGaLocation":2474},{"title":2519,"button":2520,"config":2524},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":2185,"config":2521},{"href":2187,"dataGaName":2522,"dataGaLocation":2523},"orbit-ga-banner","global-banner",{"layout":2525,"disabled":2065},"release",{"data":2527},{"text":2528,"config":2529,"items":2534,"minimal":2762},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":2530,"facebook":2531,"youtube":2532,"linkedin":2533},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[2535,2583,2642,2689,2730],{"title":2278,"links":2536,"subMenu":2552},[2537,2542,2547],{"text":2538,"config":2539},"View plans",{"href":2280,"dataGaName":2540,"dataGaLocation":2541},"view plans","footer",{"text":2543,"config":2544},"Why Premium?",{"href":2545,"dataGaName":2546,"dataGaLocation":2541},"/pricing/premium/","why premium",{"text":2548,"config":2549},"Why Ultimate?",{"href":2550,"dataGaName":2551,"dataGaLocation":2541},"/pricing/ultimate/","why ultimate",[2553],{"title":2554,"links":2555},"Contact Us",[2556,2559,2561,2563,2568,2573,2578],{"text":2557,"config":2558},"Contact sales",{"href":2425,"dataGaName":2097,"dataGaLocation":2541},{"text":2428,"config":2560},{"href":2430,"dataGaName":2431,"dataGaLocation":2541},{"text":2433,"config":2562},{"href":2435,"dataGaName":2436,"dataGaLocation":2541},{"text":2564,"config":2565},"Status",{"href":2566,"dataGaName":2567,"dataGaLocation":2541},"https://status.gitlab.com/","status",{"text":2569,"config":2570},"Terms of use",{"href":2571,"dataGaName":2572,"dataGaLocation":2541},"/terms/","terms of use",{"text":2574,"config":2575},"Privacy statement",{"href":2576,"dataGaName":2577,"dataGaLocation":2541},"/privacy/","privacy statement",{"text":2579,"config":2580},"Cookie preferences",{"dataGaName":2581,"dataGaLocation":2541,"id":2582,"isOneTrustButton":378},"cookie preferences","ot-sdk-btn",{"title":2105,"links":2584,"subMenu":2600},[2585,2588,2590,2592,2594,2596],{"text":2586,"config":2587},"Explore the platform",{"href":2113,"dataGaName":2107,"dataGaLocation":2541},{"text":2164,"config":2589},{"href":2166,"dataGaName":2167,"dataGaLocation":2541},{"text":2118,"config":2591},{"href":2120,"dataGaName":2121,"dataGaLocation":2541},{"text":2169,"config":2593},{"href":2171,"dataGaName":2172,"dataGaLocation":2541},{"text":2151,"config":2595},{"href":2153,"dataGaName":2154,"dataGaLocation":2541},{"text":2597,"config":2598},"Why GitLab",{"href":2468,"dataGaName":2599,"dataGaLocation":2541},"why gitlab",[2601],{"title":2602,"links":2603},"Topics",[2604,2608,2613,2617,2622,2627,2632,2637],{"text":2118,"config":2605},{"href":2606,"dataGaName":2607,"dataGaLocation":2541},"/topics/ci-cd/","cicd",{"text":2609,"config":2610},"GitOps",{"href":2611,"dataGaName":2612,"dataGaLocation":2541},"/topics/gitops/","gitops",{"text":2079,"config":2614},{"href":2615,"dataGaName":2616,"dataGaLocation":2541},"/topics/devops/","devops",{"text":2618,"config":2619},"Version Control",{"href":2620,"dataGaName":2621,"dataGaLocation":2541},"/topics/version-control/","version control",{"text":2623,"config":2624},"DevSecOps",{"href":2625,"dataGaName":2626,"dataGaLocation":2541},"/topics/devsecops/","devsecops",{"text":2628,"config":2629},"Cloud Native",{"href":2630,"dataGaName":2631,"dataGaLocation":2541},"/topics/cloud-native/","cloud native",{"text":2633,"config":2634},"AI for Coding",{"href":2635,"dataGaName":2636,"dataGaLocation":2541},"/topics/devops/ai-for-coding/","ai for coding",{"text":2638,"config":2639},"Agentic AI",{"href":2640,"dataGaName":2641,"dataGaLocation":2541},"/topics/agentic-ai/","agentic ai",{"title":2190,"links":2643},[2644,2647,2650,2653,2656,2659,2661,2663,2665,2667,2669,2672,2674,2677,2681,2685],{"text":2645,"config":2646},"DevOps modernization",{"href":2205,"dataGaName":2206,"dataGaLocation":2541},{"text":2648,"config":2649},"Security modernization",{"href":2210,"dataGaName":2211,"dataGaLocation":2541},{"text":2651,"config":2652},"AI modernization",{"href":2215,"dataGaName":2216,"dataGaLocation":2541},{"text":2654,"config":2655},"Financial services",{"href":2241,"dataGaName":2242,"dataGaLocation":2541},{"text":2657,"config":2658},"Public sector",{"href":2246,"dataGaName":2247,"dataGaLocation":2541},{"text":2249,"config":2660},{"href":2251,"dataGaName":2252,"dataGaLocation":2541},{"text":2254,"config":2662},{"href":2256,"dataGaName":2257,"dataGaLocation":2541},{"text":2259,"config":2664},{"href":2261,"dataGaName":2262,"dataGaLocation":2541},{"text":2264,"config":2666},{"href":2266,"dataGaName":2267,"dataGaLocation":2541},{"text":2221,"config":2668},{"href":2223,"dataGaName":2224,"dataGaLocation":2541},{"text":2670,"config":2671},"Small business",{"href":2228,"dataGaName":2229,"dataGaLocation":2541},{"text":2231,"config":2673},{"href":2233,"dataGaName":2234,"dataGaLocation":2541},{"text":2609,"config":2675},{"href":2676,"dataGaName":2612,"dataGaLocation":2541},"/solutions/gitops/",{"text":2678,"config":2679},"Software composition analysis",{"href":2158,"dataGaName":2680,"dataGaLocation":2541},"software composition analysis",{"text":2682,"config":2683},"Value stream management",{"href":2176,"dataGaName":2684,"dataGaLocation":2541},"value stream management",{"text":2686,"config":2687},"All solutions",{"href":2197,"dataGaName":2688,"dataGaLocation":2541},"all solutions",{"title":2283,"links":2690},[2691,2696,2701,2703,2705,2707,2709,2711,2713,2715,2717,2719,2721,2723,2726],{"text":2692,"config":2693},"Install",{"href":2694,"dataGaName":2695,"dataGaLocation":2541},"/install/","install",{"text":2697,"config":2698},"Quick start guides",{"href":2699,"dataGaName":2700,"dataGaLocation":2541},"/get-started/","quick setup checklists",{"text":2296,"config":2702},{"href":2298,"dataGaName":2299,"dataGaLocation":2541},{"text":2301,"config":2704},{"href":2303,"dataGaName":2304,"dataGaLocation":2541},{"text":2306,"config":2706},{"href":2308,"dataGaName":2309,"dataGaLocation":2541},{"text":2311,"config":2708},{"href":2313,"dataGaName":2314,"dataGaLocation":2541},{"text":2316,"config":2710},{"href":2318,"dataGaName":2319,"dataGaLocation":2541},{"text":2329,"config":2712},{"href":2331,"dataGaName":2332,"dataGaLocation":2541},{"text":2334,"config":2714},{"href":2336,"dataGaName":2077,"dataGaLocation":2541},{"text":2338,"config":2716},{"href":2340,"dataGaName":2341,"dataGaLocation":2541},{"text":2343,"config":2718},{"href":2345,"dataGaName":2346,"dataGaLocation":2541},{"text":2348,"config":2720},{"href":2350,"dataGaName":2351,"dataGaLocation":2541},{"text":2411,"config":2722},{"href":2413,"dataGaName":2414,"dataGaLocation":2541},{"text":2724,"config":2725},"What's new",{"href":2359,"dataGaName":2360,"dataGaLocation":2541},{"text":2727,"config":2728},"All resources",{"href":2290,"dataGaName":2729,"dataGaLocation":2541},"all resources",{"title":2362,"links":2731},[2732,2734,2736,2738,2740,2742,2744,2746,2748,2752,2757],{"text":2370,"config":2733},{"href":2372,"dataGaName":2364,"dataGaLocation":2541},{"text":2375,"config":2735},{"href":2377,"dataGaName":2378,"dataGaLocation":2541},{"text":2381,"config":2737},{"href":2383,"dataGaName":2384,"dataGaLocation":2541},{"text":2386,"config":2739},{"href":2388,"dataGaName":2389,"dataGaLocation":2541},{"text":2391,"config":2741},{"href":2393,"dataGaName":2394,"dataGaLocation":2541},{"text":2396,"config":2743},{"href":2398,"dataGaName":2399,"dataGaLocation":2541},{"text":2401,"config":2745},{"href":2403,"dataGaName":2404,"dataGaLocation":2541},{"text":2406,"config":2747},{"href":2408,"dataGaName":2409,"dataGaLocation":2541},{"text":2749,"config":2750},"Sustainability",{"href":2751,"dataGaName":2749,"dataGaLocation":2541},"/sustainability/",{"text":2753,"config":2754},"Diversity, inclusion and belonging (DIB)",{"href":2755,"dataGaName":2756,"dataGaLocation":2541},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":2758,"config":2759},"Modern Slavery Transparency Statement",{"href":2760,"dataGaName":2761,"dataGaLocation":2541},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":2763},[2764,2767,2770],{"text":2765,"config":2766},"Terms",{"href":2571,"dataGaName":2572,"dataGaLocation":2541},{"text":2768,"config":2769},"Cookies",{"dataGaName":2581,"dataGaLocation":2541,"id":2582,"isOneTrustButton":378},{"text":2771,"config":2772},"Privacy",{"href":2576,"dataGaName":2577,"dataGaLocation":2541},[2774,2788],{"id":2775,"title":7,"body":2064,"config":2776,"content":2778,"description":2064,"extension":2782,"meta":2783,"navigation":378,"path":2784,"seo":2785,"stem":2786,"__hash__":2787},"blogAuthors/en-us/blog/authors/john-coghlan.yml",{"template":2777},"BlogAuthor",{"name":7,"config":2779},{"headshot":2780,"ctfId":2781},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749670167/Blog/Author%20Headshots/johncoghlan-headshot.jpg","johncoghlan","yml",{},"/en-us/blog/authors/john-coghlan",{},"en-us/blog/authors/john-coghlan","dOj1PXtB8h9xxt68I3Ck9deyy57w1js7NkehLQ5E8Pc",{"id":2789,"title":8,"body":2064,"config":2790,"content":2791,"description":2064,"extension":2782,"meta":2795,"navigation":378,"path":2796,"seo":2797,"stem":2798,"__hash__":2799},"blogAuthors/en-us/blog/authors/fatima-sarah-khalid.yml",{"template":2777},{"name":8,"config":2792},{"headshot":2793,"ctfId":2794},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749663337/Blog/Author%20Headshots/sugaroverflow-headshot.jpg","sugaroverflow",{},"/en-us/blog/authors/fatima-sarah-khalid",{},"en-us/blog/authors/fatima-sarah-khalid","GpfAGDKB-pWdwSjPp8CXd-29am9proj8tK7mm1IN_rs",[2801,2809,2817],{"title":2802,"description":2803,"heroImage":2804,"category":2060,"date":2805,"authors":2806,"slug":2808,"externalUrl":2064},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[2807],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":2810,"description":2811,"heroImage":2812,"category":2060,"date":2813,"authors":2814,"slug":2816,"externalUrl":2064},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[2815],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":2818,"description":2819,"heroImage":2820,"category":2060,"date":2821,"authors":2822,"slug":2824,"externalUrl":2064},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[2823],"Isa Huerga","co-create-h1-2026",{"header":2826,"text":2827,"button":2831,"disclaimer":2834},"Start your free\n\n30-day GitLab trial\n",[2828,2829,2830],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":2089,"config":2832},{"href":2833,"dataGaName":2092,"dataGaLocation":2332},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":2836,"blurb":2837,"button":2838,"secondaryButton":2843},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":2839,"config":2840},"Get your free trial",{"href":2841,"dataGaName":2092,"dataGaLocation":2842},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":2557,"config":2844},{"href":2425,"dataGaName":2097,"dataGaLocation":2842},1794911781967]