mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 16:09:41 +00:00
### **PR Type** Tests, Enhancement ___ ### **Description** - Simplify `handleSaveVariable` in VariableSettings.vue - Extend scoped variable API with `dependsOnField` - Enhance dependency loading tests with explicit waits - Refactor refresh, URL-sync and null-handling tests ___ <details> <summary><h3> File Walkthrough</h3></summary> <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><details><summary>2 files</summary><table> <tr> <td><strong>VariableSettings.vue</strong><dd><code>Simplify and document variable save flow</code> </dd></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-3d55b5c7a758c836df096cb320a0ac3ba4586bc025d9e69c180e6a0b668ed940">+11/-11</a> </td> </tr> <tr> <td><strong>dashboard-variables-scoped.js</strong><dd><code>Add `dependsOnField` and multi-dependency field map support</code></dd></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-86abb9f90fabd982dedfdd9a21a052a47b6984edc7bd29a51ee104c8c473aec4">+20/-5</a> </td> </tr> </table></details></td></tr><tr><td><strong>Tests</strong></td><td><details><summary>5 files</summary><table> <tr> <td><strong>dashboard-variables-dependency.spec.js</strong><dd><code>Add waits and `dependsOnField` to dependency tests</code> </dd></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-ad5a7685fbf4477a81657949b7dd4aa4ada6e66a4576d0c61bacb388095d0b52">+492/-59</a></td> </tr> <tr> <td><strong>dashboard-variables-refresh.spec.js</strong><dd><code>Introduce `changeVariableValue` helper and refactor refresh tests</code></dd></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-8e82d40d2eda995a2915569d16456a9fd7d605017ed5868a28ee409e53646027">+283/-127</a></td> </tr> <tr> <td><strong>dashboard-variables-url-sync.spec.js</strong><dd><code>Rename tests to `var-` prefix and add stability waits</code> </dd></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-709abba02dfd42b1be6d3838b162b544a2b97ba204dd179c37d462f0921ff14b">+178/-72</a></td> </tr> <tr> <td><strong>dashboard-variables-null-handling.spec.js</strong><dd><code>Rewrite null-handling test with simplified dependency logic</code></dd></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-e42ab503059a687ceb4fa2edeed0888a47591e0a61680c10448eaf68b4e6bbd8">+143/-124</a></td> </tr> <tr> <td><strong>variable-helpers.js</strong><dd><code>Import and use `monitorVariableAPICalls` in refresh tests</code></dd></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-2e2771d2582ab60dfcbaeef480226887677e58b881edbb244e0ffa4396ffbb5c">+25/-7</a> </td> </tr> </table></details></td></tr><tr><td><strong>Additional files</strong></td><td><details><summary>11 files</summary><table> <tr> <td><strong>playwright.yml</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-7afcd2d8f7b49bda74843f209eefb7b2da45f7e7803bf2e4bd636699b76aa2d3">+185/-165</a></td> </tr> <tr> <td><strong>dashboard-list.js</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-59cd31661ce4f41cef3fe0c42068784ea636a62817982cb3c5e1aed16880c980">+10/-0</a> </td> </tr> <tr> <td><strong>dashboard-settings.js</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-1a07f3f14dacb06180bc02437804d175886aeacda98f5b0ef507a274e5ddd485">+10/-0</a> </td> </tr> <tr> <td><strong>DATA-TEST-IMPLEMENTATION-STATUS.md</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-6d3e802eb6998d51e3c2b06fd4812937f6c0a8b00ba0b751c34256be97af4179">+225/-0</a> </td> </tr> <tr> <td><strong>REQUIRED-DATA-TEST-ATTRIBUTES.md</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-0be35bf150e6b5a82dd319ced586af5655ab9e11d14e8232aadd9d81618b1e80">+607/-0</a> </td> </tr> <tr> <td><strong>TEST-EXECUTION-REPORT.md</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-7dccae95f65fa4b86695c0d4b916def1fefe05a771064ada2b68df85781baae5">+373/-0</a> </td> </tr> <tr> <td><strong>TEST-EXECUTION-SUMMARY.md</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-10955400873e51c4ffa1f95dcaf45775b503c67dd4accfca4ab309946687eb1f">+321/-0</a> </td> </tr> <tr> <td><strong>VARIABLES-TEST-GUIDE.md</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-80d83f3dca90fda9b2c1015c538b97642bfaf1f966fb58bd633d7d8d51ea3307">+545/-0</a> </td> </tr> <tr> <td><strong>VARIABLES-VALIDATION-CHECKLIST.md</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-c91da9d64610d003b0b6ff76cff5b8bb808d53af4c2f769956eace235ec11387">+416/-0</a> </td> </tr> <tr> <td><strong>dashboard-variables-creation-scopes.spec.js</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-878775b83972fb1f04f1d4df7bc0bbec364fbcbacda6fbd081423673e4ea4b05">+19/-49</a> </td> </tr> <tr> <td><strong>dashboard-variables-panel-level.spec.js</strong></td> <td><a href="https://github.com/openobserve/openobserve/pull/9973/files#diff-a4f3068a8d69478dafa0bc1bfb7f51cf98a6980ecc62ae78ba46a617f8e227fd">+1/-2</a> </td> </tr> </table></details></td></tr></tr></tbody></table> </details> ___ --------- Co-authored-by: ktx-akshay <akshay.patil@kiara.tech>