Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cad5dd2

Browse files
committed
Add trace's layoutAttributes to the search index too
1 parent 823dc3b commit cad5dd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

update_ref_search.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def next_level(previous_level,chain_dict):
5656
chain_dict = {'name':i, 'permalink':'reference/#'+i }
5757
next_level(p['schema']['traces'][i]['attributes'], chain_dict)
5858

59+
# if there are layoutAttributes in the trace add them too.
60+
if p['schema']['traces'][i].get('layoutAttributes'):
61+
next_level(p['schema']['traces'][i]['layoutAttributes'], layout_chain_dict)
5962

6063
# recursively add layout attributes to schema
6164
next_level(p['schema']['layout']['layoutAttributes'], layout_chain_dict)

0 commit comments

Comments
 (0)