[Data plugin] Wrong caching for Index pattern fields#87116
[Data plugin] Wrong caching for Index pattern fields#87116alexwizp merged 4 commits intoelastic:masterfrom
Conversation
| import { findByTitle } from '../utils'; | ||
| import { DuplicateIndexPatternError } from '../errors'; | ||
|
|
||
| const indexPatternCache = createIndexPatternCache(); |
There was a problem hiding this comment.
also I think it should be backported into 7.10, 7.11 as a security issue.
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
| expect(response3.body.index_pattern.typeMeta).to.eql({ foo: 'baz' }); | ||
| }); | ||
|
|
||
| it('can update index_pattern fields', async () => { |
There was a problem hiding this comment.
have no idea how it worked before but if I'm not wrong users should not be able to change field name/type.
mattkime
left a comment
There was a problem hiding this comment.
Approved pending passing tests and more accurate description - 'Index pattern cache should be local instance, not global'
|
@mattkime could you please help me with understanding our in response I see that index was successfully created with 2 fields. Next query just a getting an I expect to see 2 fields like in response from step 1. But I see only one: What is the correct behavior? I honestly think these are just poorly written integration tests cause user should not be able somehow to modify fields (except scripted fields). |
|
@alexwizp You are correct - the user can't add fields aside from scripted fields. Its valid to ignore the non scripted fields. |
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Distributable file count
Page load bundle
History
To update your PR or re-run it, just comment with: |
* [Data plugin] Wrong caching for Index pattern fields Closes: elastic#84666 * remove can update index_pattern fields test * fix tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts
* [Data plugin] Wrong caching for Index pattern fields Closes: elastic#84666 * remove can update index_pattern fields test * fix tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts
* [Data plugin] Wrong caching for Index pattern fields Closes: #84666 * remove can update index_pattern fields test * fix tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts
* [Data plugin] Wrong caching for Index pattern fields Closes: #84666 * remove can update index_pattern fields test * fix tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts

Closes: #84666
Summary
[Data plugin] Wrong caching for Index pattern fields. Index pattern cache should be local instance, not global