Skip to content

Prevent hiding of fields when clicking on an index twice#2072

Merged
w33ble merged 1 commit intoelastic:masterfrom
lukasolson:issue-2052
Dec 2, 2014
Merged

Prevent hiding of fields when clicking on an index twice#2072
w33ble merged 1 commit intoelastic:masterfrom
lukasolson:issue-2052

Conversation

@lukasolson
Copy link
Copy Markdown
Contributor

When managing index patterns, the URL it sends you to when you click on an index pattern does not specify the tab to show (fields or scripted fields). So, when the controller loads, it checks to see if a tab is specified in the URL, and if not, it selects the first tab by default. However, when you click on an index pattern that's already in view, the controller does not run again, so the selected tab is lost, so no tabs are shown.

This fix changes the controller to watch the tab specified in the URL, and any time the tab isn't specified, it selects the first tab.

Closes #2052.

@lukasolson lukasolson added this to the 4.0.0-BETA3 milestone Dec 1, 2014
@w33ble
Copy link
Copy Markdown
Contributor

w33ble commented Dec 2, 2014

Thanks for fixing a bug I introduced! 🍔 🐋

w33ble added a commit that referenced this pull request Dec 2, 2014
Prevent hiding of fields when clicking on an index twice
@w33ble w33ble merged commit d9d9b17 into elastic:master Dec 2, 2014
@lukasolson lukasolson deleted the issue-2052 branch February 11, 2016 18:22
edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
nikitaindik added a commit to nikitaindik/kibana that referenced this pull request Mar 3, 2026
Adds a maxSize constraint to the tags field in the prebuilt rule
assets saved object schema to resolve CodeQL alert elastic#2072
(unbounded-array-in-schema).

Made-with: Cursor
nikitaindik added a commit that referenced this pull request Mar 6, 2026
…ebuilt rule assets (#255741)

**Resolves:
https://github.com/elastic/kibana/security/code-scanning/2072**

## Summary

Adds a `maxSize` constraint to the `tags` field in the `security-rule`
saved object schema (`prebuilt_rule_assets_type.ts`), resolving [CodeQL
alert
#2072](https://github.com/elastic/kibana/security/code-scanning/2072)
(unbounded-array-in-schema).

- Introduced a `MAX_TAGS_PER_RULE` constant (100) to bound the
`schema.arrayOf()` call
- Prebuilt rules typically have fewer than 15 tags, so 100 is a generous
safe limit
- No model version bump needed since this is a validation-only change
with no structural/mapping impact

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
kapral18 pushed a commit to kapral18/kibana that referenced this pull request Mar 9, 2026
…ebuilt rule assets (elastic#255741)

**Resolves:
https://github.com/elastic/kibana/security/code-scanning/2072**

## Summary

Adds a `maxSize` constraint to the `tags` field in the `security-rule`
saved object schema (`prebuilt_rule_assets_type.ts`), resolving [CodeQL
alert
elastic#2072](https://github.com/elastic/kibana/security/code-scanning/2072)
(unbounded-array-in-schema).

- Introduced a `MAX_TAGS_PER_RULE` constant (100) to bound the
`schema.arrayOf()` call
- Prebuilt rules typically have fewer than 15 tags, so 100 is a generous
safe limit
- No model version bump needed since this is a validation-only change
with no structural/mapping impact

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
qn895 pushed a commit to qn895/kibana that referenced this pull request Mar 11, 2026
…ebuilt rule assets (elastic#255741)

**Resolves:
https://github.com/elastic/kibana/security/code-scanning/2072**

## Summary

Adds a `maxSize` constraint to the `tags` field in the `security-rule`
saved object schema (`prebuilt_rule_assets_type.ts`), resolving [CodeQL
alert
elastic#2072](https://github.com/elastic/kibana/security/code-scanning/2072)
(unbounded-array-in-schema).

- Introduced a `MAX_TAGS_PER_RULE` constant (100) to bound the
`schema.arrayOf()` call
- Prebuilt rules typically have fewer than 15 tags, so 100 is a generous
safe limit
- No model version bump needed since this is a validation-only change
with no structural/mapping impact

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking on an index pattern multiple times hides fields

2 participants