-
Notifications
You must be signed in to change notification settings - Fork 41
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
Delete events not found in Elis in kulke importer #625
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #625 +/- ##
===========================================
+ Coverage 74.52% 75.31% +0.78%
===========================================
Files 237 237
Lines 17074 17178 +104
===========================================
+ Hits 12725 12937 +212
+ Misses 4349 4241 -108
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
30493e1
to
5fc016f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't spot anything serious. 👍 A minor comment about testing those soft deleted events.
Kudos, SonarCloud Quality Gate passed! |
Ended up doing the changes myself, so approving my own changes isn't exactly cool.
If there are events that have previously been imported, but have since been removed in Elis, there's currently no mechanism to remove them from LE. This PR adds such a mechanism. Basically we check for any events that we have previously imported that no longer exist in Elis. We won't touch events that are older than the start date we use for the Elis search though.
Also, the fix for the empty name issue in my previous PR was not sufficient, so I fixed that. The logic for taking the common part when creating a super event name should now work in all supported languages.
When reviewing, please pay special attention to the logic for selecting which events to delete.