-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Populate agent.id field in .fleet-agents index #609
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thank you
This pull request is now in conflicts. Could you fix it @aleksmaus? 🙏
|
@blakerouse I picked up your changes from master branch and it looks like the white space trimming was removed around the version string there. I've put it back. Could you review this please? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding it back.
Overall this change looks good.
* Populate agent.id field in .fleet-agents index * Address feedback on the draft * Put back the version spaces trimming that was lost in the master changes (cherry picked from commit cb77724)
* Populate agent.id field in .fleet-agents index * Address feedback on the draft * Put back the version spaces trimming that was lost in the master changes (cherry picked from commit cb77724) Co-authored-by: Aleksandr Maus <[email protected]>
Hi @aleksmaus We have validated this merged PR in 7.15.1 BC1 build and could not find agent id under .fleet-agents index. Build details: Could you please let us know if we are missing anything. NOTE: Due to incomplete build deployments on 7.16 snapshot from cloud, we were unable to verify relative merges there. We will revalidate same on 7.16 too when builds deployments will be working fine. Thanks |
@dikshachauhan-qasource Your looking at the mapping not the documents in the index. Use the following to get all the documents in the index.
|
Hi @blakerouse Thanks for the feedback. We re-attempted it with the updated query index and found ID and version entries in results. However, could you please let us know from where does this ID value is fetched for any respective agent, as we looked on agent details tab and discover tab too but value fetch in results dont match with them. Screenshots: After your feedback, we will update validation in testcase. Thanks |
@dikshachauhan-qasource The document you have selected is set to You should find the document that has that hostname that is set to |
@blakerouse Thanks for the feedback..I'll check this out. |
Hi @blakerouse We have reattempted today and found agent IDs matched under Active value when set to "True". We have created 01 testcase for same. Thanks |
What does this PR do?
Populate agent.id field in .fleet-agents index as requested here:
#595
@scunningham The current agent schema/mapping has "version" field along with "id", if we populate only the "agent.id" it will save the version as "" empty string, so I updated the code to capture the "agent.version" too. Also assumed that the version could be updated for the same "agent.id".
Could you check if my assumptions are correct there? Thanks!
Checklist
Related issues
Screenshots