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

Bugfix/fix wrong tx handling after creating thirdpartyconfig #210

Merged

Conversation

saschadoemer
Copy link
Contributor

Closes #209

This change refactors data import event handling in the application to use the id of the ThirdPartyApiConfiguration instead of the whole object. It also relocates the updateLastRun method call to the handleDataImportEvent method from various import classes to keep the logic in one place. This ensures consistency and prevents potential errors if an event is fired without an existing ThirdPartyApiConfiguration.
This commit removes the unused dependency on ThirdPartyApiConfigurationService from several classes. These include WeenatMeasurementImport, SensoterraMeasurementImport, and others. This change simplifies the codebase and removes unnecessary coupling.
The commit involves removing unused imports from several classes belonging to different packages. Specifically, it's related to the removal of the ThirdPartyApiConfigurationService import and reordering of the EmptyAttribute and InstantAttribute imports in multiple integration files.
Amended the DataImportEvent parameter to use the configuration ID instead of the configuration object. This change ensures only necessary data is sent with the event, rather than the whole configuration object.
Updated the asJson() functions in the DevicePosition, DeviceMeasurement, and AgriCrop classes. Every field of the returned JSON string now includes the trim() function, removing any leading or trailing white spaces. This change ensures consistency and cleanliness in the JSON strings produced by these methods.
@saschadoemer
Copy link
Contributor Author

Closes #211

@saschadoemer saschadoemer marked this pull request as ready for review June 13, 2024 15:59
@Vitrum-LL Vitrum-LL added this pull request to the merge queue Jun 14, 2024
Merged via the queue into main with commit ee2daf1 Jun 14, 2024
1 check passed
@saschadoemer saschadoemer deleted the bugfix/fix-wrong-tx-handling-after-creating-thirdpartyconfig 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