Introduction
To generate soup reports, the information on soup items are maintained in a soupinventorydata database in cosmos database. The information in these cosmos database gets added in two ways - automatically ( through artifact feeds ) and manually (through central repo).
If needed the information in the soupinventorydata can be updated manually (through central repo) which will eventually reflect in soup reports
Following section describes how to update information on soup item
How to update soup information in soupinventorydata database through soupinventory repo (manually)
A central repo on soup item information is stored here. This repo can be used to update information of soup items in soupinventory database
- Goto the repo here
- Create a branch from the repo
- Goto soup folder
- Update the information for soup item
- This can be done by adding a new json file with name in the following format
- {soupitemname}-{soupitemversion}.json (intention is that file should be unique for an artifact and its corresponding version. This is just a recommended format, you can change the format if you face any issue, just make sure that the filename is unique and identifiable )
-
Or if a file is existing for the soup item, update the contents of the file according to your need
-
create a pr which then has to be approved by Energizers team
A pipeline is created which gets triggered on merge to soupinventory repo. This pipeline has script to parse the files inside soup folder and update the database
The pipeline has script to find the information that gets added/updated and extract usable data and update the soupinventorydata database
To see the details of the implementation of the utility go here