Skip to content
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

Feature/add endpoint to trigger import manually #221

Merged
merged 6 commits into from
Jul 18, 2024

Conversation

saschadoemer
Copy link
Contributor

No description provided.

Added a new feature to trigger import of historical data from third party APIs, starting from a specific past date. This includes new methods in various controllers and services, and a new event class for handling historical data import events. Implemented the scheduled API calls for historical data import for different manufacturers.
A method for asynchronously importing data from Agranimo API has been added to AgranimoMeasurementImport.java. The method includes error handling and logging. Meanwhile, minor changes are also made to ThirdPartyApiConfigurationService.java and AgvolutionMeasurementImport.java; a final keyword is added to `ApplicationEventPublisher` in the former, and a comment is updated in the latter.
A new method called "run" was added to the Farm21MeasurementImport class. This method imports historical data from the Farm21 API and logs the execution time, number of measurements found, and any errors that may occur during the execution. It also persists the fetched data using the existing persistDataWithinFiware method.
A new function named "run" was added to the SensoterraMeasurementImport class for historical data import. This function fetches data from the Sensoterra API, logs the number of entries found, persists the data within Fiware, and logs any errors that occur during execution. It also calculates and logs the job execution time.
The added method, run, allows for the import of historical data from the Sentek API. It is set to run asynchronously and includes error handling to log any issues encountered during the import process. It also logs the number of measurements fetched and the job execution time.
A new function called 'run' was added to handle the import of historical data from the Weenat API into the application. This function fetches all measurements from the API starting from a specified 'start' timestamp, logs the number of measurements fetched, and persists the data. It also handles and logs any exceptions during the data import operation. The function is designed to be run asynchronously.
@saschadoemer saschadoemer added this pull request to the merge queue Jul 18, 2024
Merged via the queue into main with commit 062e584 Jul 18, 2024
1 check passed
@saschadoemer saschadoemer deleted the feature/add-endpoint-to-trigger-import-manually branch August 13, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants