Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Agnul97
Copy link
Contributor

@Agnul97 Agnul97 commented Mar 1, 2024

Brief description of the PR.
The method DatastoreUtils::convertToDataIndexes, if called passing at least 1 index with a bad format (for example, 1-data-message-2024-23-07-17_migrated), was throwing an exception. In this PR the behavior of the function is changed to still return a list, but with those indexes with a wrong format excluded from it. This holds also when both the time windows in input are null.

This change could be useful if one calls the function when, for example, wants to perform a clean-up of expired data indexes

Furthermore, a set of tests have been added to verify the behavior of the new method

Any side note on the changes made
The method was not conforming to an interface so no side effects should be present

@codecov
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 21.19%. Comparing base (5ced6f2) to head (4d7bc77).
Report is 5 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #3981      +/-   ##
=============================================
+ Coverage      21.09%   21.19%   +0.09%     
  Complexity        10       10              
=============================================
  Files           1942     1942              
  Lines          41252    41263      +11     
  Branches        3793     3796       +3     
=============================================
+ Hits            8702     8745      +43     
+ Misses         32143    32114      -29     
+ Partials         407      404       -3     
Files Coverage Δ
...ce/datastore/internal/mediator/DatastoreUtils.java 44.68% <100.00%> (+6.13%) ⬆️

... and 3 files with indirect coverage changes

@Agnul97 Agnul97 force-pushed the fix-convert_to_data_indexes branch from 0f3103a to 4d7bc77 Compare March 1, 2024 13:16
@Coduz Coduz added the Bug This is a bug or an unexpected behaviour. Fix it! label Mar 7, 2024
@Coduz Coduz merged commit af7e915 into eclipse-kapua:develop Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug This is a bug or an unexpected behaviour. Fix it!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants