Closed shashank-elastic closed 3 months ago
@shashank-elastic - Any specific reason not to just rely on integers here? See my comment from the same bug I observed. https://github.com/elastic/detection-rules/pull/3819#discussion_r1655138865
Thoughts?
@shashank-elastic - Any specific reason not to just rely on integers here? See my comment from the same bug I observed. #3819 (comment)
Thoughts?
As such there was an inclination towards using a better combination of letters, But the fix suggested to make the index as an key would be the easiest solution!. we would not have any further updates to this method. Count of indexes will result in count of keys at any point in time.
Would u want to ship the index fix as part of the PR, let me know will close this here @terrancedejesus
@shashank-elastic feel free to use the code I added from my PR and I will remove it. Makes sense to deduplicate if you already had an issue and PR going! I'll pull in changes.
index_map = {index: letters[i] for i, index in enumerate(sorted(indexes))}
index_map = {index: str(i) for i, index in enumerate(sorted(indexes))}
@shashank-elastic feel free to use the code I added from my PR and I will remove it. Makes sense to deduplicate if you already had an issue and PR going! I'll pull in changes.
index_map = {index: letters[i] for i, index in enumerate(sorted(indexes))} index_map = {index: str(i) for i, index in enumerate(sorted(indexes))}
Done, please review @terrancedejesus
Issues
Summary
Code Changes
Testing
Unit tests TestPackages/ test_package_summary covers generation of the package summary
No additional testing may be required.