Closed kevin-paladin closed 2 months ago
The recent changes introduce new functionalities for asset management and processing within the assets-subsystem
. Several helper classes facilitate interactions with AWS services, databases, and Elasticsearch. New methods and classes enhance asset handling, grouping, compliance checks, and error processing. Additionally, configuration settings and authentication mechanisms have been updated to support these enhancements.
File(s) | Change Summary |
---|---|
AssetSenderJob.java |
Introduced functionality for processing assets, extending JobExecutor with necessary constants and logging. |
SQSHelper.java |
Introduced a class to facilitate sending messages to Amazon SQS, including methods for serialization and message handling. |
AssetGroups.java |
Added methods for managing asset groups, fetching compliance data, and updating aliases. |
Assets.java |
Implemented methods to manage assets, fetch data from S3, and upload to Elasticsearch. |
LoadErrors.java |
Added a method to process error data from S3 and update Elasticsearch. |
DatabaseHelper.java |
Added methods for executing SQL queries and inserting data into a database. |
S3Helper.java |
Introduced functionality to list objects, fetch data, and check for object existence in S3. |
AssetDocumentFields.java |
Introduced an interface defining fields for Elasticsearch asset documents. |
AssetGroupStatsCollector.java |
Added methods to collect and upload various statistics related to asset groups. |
AssetsCounts.java |
Introduced a class handling asset counts for different platforms. |
DataSourceHelper.java |
Introduced a class to fetch asset groups, accounts, and aliases using Elasticsearch and database helper. |
AuthHelper.java |
Added methods for managing access tokens and authorize API operations. |
ConfigConstants.java |
Introduced interfaces for handling various configuration constants. |
ConfigService.java |
Added functionality to retrieve and set configuration properties from a specified URL. |
gcp-cloudsql.json |
Introduced a JSON structure containing records with various attributes. |
Objective | Addressed | Explanation |
---|---|---|
Introduce functionality for processing assets (PLG-522) | ✅ | |
Add methods for asset group management and compliance checks (PLG-522) | ✅ | |
Implement helper classes for AWS, DB, and Elasticsearch interactions (PLG-522) | ✅ | |
Update configuration settings and authentication mechanisms (PLG-522) | ✅ |
In the land of code where assets roam,
We've built new paths for them to call home.
Helpers in S3 and SQS do sing,
Fetching, sending, all in a swing.
With every byte and every log,
Our system grows, no longer a cog.
Cheers to changes, both bold and small,
In this realm of tech, we stand tall.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This is a migration of the asset related code in data-shipper in order that we can customize it later for asset specific changes.
I anticipate discussion around a few practices in order that we can choose an agreeable solution.
Type of change
How Has This Been Tested?
I've tested manually so far, primarily with gcp data.
I've verified a few different types (vminstance, cloudstorage, cloudfunction) against the existing data-shipper, comparing specific documents.
Checklist:
Summary by CodeRabbit
New Features
Enhancements
Configurations