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

My Annotations email being sent even when no updates #345

Open
kylie-m opened this issue Dec 19, 2024 · 6 comments
Open

My Annotations email being sent even when no updates #345

kylie-m opened this issue Dec 19, 2024 · 6 comments
Assignees
Labels
Milestone

Comments

@kylie-m
Copy link

kylie-m commented Dec 19, 2024

At least one ALA user has reported receiving the same My Annotations alert email daily - Sometimes every day for a while, at other times at intervals of a month or so.

  • It appears that there are records being included that have not been updated that day. ie. same record in 20 days worth of emails
  • The records may be being re-loaded with data updates, especially for iNat and museum records

I have forwarded an example email, but am happy to continue testing and narrowing down the issue.

Freshdesk ref: https://support.ehelp.edu.au/a/tickets/220936

@kylie-m kylie-m added the bug label Dec 19, 2024
@kylie-m kylie-m added this to the 4.4.0 milestone Dec 19, 2024
@kylie-m
Copy link
Author

kylie-m commented Dec 19, 2024

Tagging @adam-collins also as you may have insight into this too

@qifeng-bai
Copy link
Contributor

@kylie-m and I checked the DB. The'Current' check happened on

| last_checked | previous_check |
+---------------------+---------------------+
| 2024-12-19 08:30:37 | 2024-12-18 08:30:29 |

Last check result contains 151 records - which is correct. the previous_check result happened on 18/12 does not have any records - which is Odd since it should has some records, unless all 151 records were updated after 18/12

We ran a dry-run, no error was found, and the result is as expected - the current result matches the previous result in database. Therefore we would expect an alert would not be triggered.

And then we manually trigger this alerts, alerts did not find any new records, so email was not sent.

@qifeng-bai
Copy link
Contributor

And I have checked the Prod db

 mysql> select * from property_path where query_id=2194;
Empty set (0.00 sec)

The diffService will do Full comparison to find new records. Arthur should not get repeated emails which contain 151 records. The reason why Arthur got the email on 19/Dec is that the previous_result in DB was empty, which we do not know the reason yet.

@peggynewman
Copy link

What date in biocache is being used to check the data? first load date or last load date?

@qifeng-bai
Copy link
Contributor

@peggynewman first load date
'firstLoadedDate:[' + utcFrom + ' TO ' + utcTo + ' ]'

@kylie-m
Copy link
Author

kylie-m commented Jan 14, 2025

Change to behaviour in next alerts release should fix this - see #346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants