# Kibana 7.8: modifying the dashboard\_grid.js file for our customization is not reflecting in dashboard\_plugin.js file

**URL:** <https://discuss.elastic.co/t/kibana-7-8-modifying-the-dashboard-grid-js-file-for-our-customization-is-not-reflecting-in-dashboard-plugin-js-file/241413>\
**Category:** Kibana\
**Created:** [July 16, 2020, 8:09am UTC](https://discuss.elastic.co/t/kibana-7-8-modifying-the-dashboard-grid-js-file-for-our-customization-is-not-reflecting-in-dashboard-plugin-js-file/241413 "2020-07-16T08:09:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prathibha\_Y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prathibha_y/32/95786_2.png) [@Prathibha\_Y](https://discuss.elastic.co/u/Prathibha_Y)\
**Post date:** [July 16, 2020, 8:09am UTC](https://discuss.elastic.co/t/kibana-7-8-modifying-the-dashboard-grid-js-file-for-our-customization-is-not-reflecting-in-dashboard-plugin-js-file/241413/1 "2020-07-16T08:09:44Z")

</div>

Hi,

I have custom modified the dashboard\_grid.js file for for 7.0, 7.6 and prev versions, and it used to get reflected in kibana.plugin.js/dashboard.plugin.js file, after removing the optimize directory completely and rebooting the kibana server.

But in kibana 7.8 same approach is not working, do we have to do anything extra to get the modified js file changes to be seen in browser.

path for the file i am trying to modify  
src/plugins/dashboard/public/application/embeddable/grid/dashboard\_grid.js  
and its not getting reflected in any bundle plugins, even after deleting the optimize directory and rebooting kibana server.

Thanks

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [July 16, 2020, 9:59am UTC](https://discuss.elastic.co/t/kibana-7-8-modifying-the-dashboard-grid-js-file-for-our-customization-is-not-reflecting-in-dashboard-plugin-js-file/241413/2 "2020-07-16T09:59:54Z")

</div>

> [@Prathibha\_Y](#):
>
> I have custom modified the dashboard\_grid.js file for for 7.0, 7.6 and prev versions, and it used to get reflected in kibana.plugin.js/dashboard.plugin.js file, after removing the optimize directory completely and rebooting the kibana server.

Kibana is actively refactoring internals with the Kibana platform [Introducing a new architecture for Kibana | Elastic Blog](https://www.elastic.co/blog/introducing-a-new-architecture-for-kibana) which doesn't rely on the optimizer. Even more: we are about to remove optimizer from the built version of Kibana.  
I'd suggest creating your custom plugin instead of tweaking Kibana internals since it's an error-prone approach without any compatibility guarantees.  
If you still need to tweak Kibana internal code, you should build Kibana from sources with `yarn build`.

---

<div class="post-metadata">

**Author:** ![Prathibha\_Y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prathibha_y/32/95786_2.png) [@Prathibha\_Y](https://discuss.elastic.co/u/Prathibha_Y)\
**Post date:** [July 16, 2020, 10:35am UTC](https://discuss.elastic.co/t/kibana-7-8-modifying-the-dashboard-grid-js-file-for-our-customization-is-not-reflecting-in-dashboard-plugin-js-file/241413/3 "2020-07-16T10:35:47Z")

</div>

Hi,

Thanks for responding, is there any otherway other than yarn build for Kibana 7.8? like modifying the bundle file dashboard\_plugin.js itself ? or something else? I removed the dashboard\_plugin.js file itself from the location, but in the browser I can see it got loaded, though not found in kibana server end.

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [July 16, 2020, 11:20am UTC](https://discuss.elastic.co/t/kibana-7-8-modifying-the-dashboard-grid-js-file-for-our-customization-is-not-reflecting-in-dashboard-plugin-js-file/241413/4 "2020-07-16T11:20:54Z")

</div>

> [@Prathibha\_Y](#):
>
> like modifying the bundle file dashboard\_plugin.js itself ?

Do you mean to modify the built version of the file? It could work. Although, you need to make sure your browser doesn't use the old cached version. Starting from v7.8 Kibana serves plugin bundles with `cache-control: max-ager=31536000` header.

Why you want to customize the dashboard plugin? Do you need to adjust CSS or JS functionality?

---

<div class="post-metadata">

**Author:** ![Prathibha\_Y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prathibha_y/32/95786_2.png) [@Prathibha\_Y](https://discuss.elastic.co/u/Prathibha_Y)\
**Post date:** [July 17, 2020, 11:48am UTC](https://discuss.elastic.co/t/kibana-7-8-modifying-the-dashboard-grid-js-file-for-our-customization-is-not-reflecting-in-dashboard-plugin-js-file/241413/5 "2020-07-17T11:48:02Z")

</div>

Modifying the built-in version of file works..I am trying to customise the querybar and the edit controls as per the privilages of the user.

Thanks for the help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 14, 2020, 11:48am UTC](https://discuss.elastic.co/t/kibana-7-8-modifying-the-dashboard-grid-js-file-for-our-customization-is-not-reflecting-in-dashboard-plugin-js-file/241413/6 "2020-08-14T11:48:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
