-
Notifications
You must be signed in to change notification settings - Fork 17
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/4031 journals added sheet duplicated #2444
base: develop
Are you sure you want to change the base?
Conversation
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.
I still see the duplication in google sheet. May be we need check the function find_new_xlsx_rows
.
Every time I run the script, it copying the data again to google sheets.
As per criteria 1, journals added starts with 1st Feb 2024
instead of from 2014.
Can you please check again?
if record is None: | ||
return datetime.datetime.now() | ||
return datetime.datetime(2014, 3, 19) |
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.
I am not clear why this date should be Mar 19 2024. Should it be 1st Feb 2024?
Also I think it would be better if this date is added in setting file instead of hard coding it.
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.
that is 2014-03-19, most early date of journal that showed in excel. I don't think that value is configurable and always changed in different environment.
@philipkcl I done the following to reproduce the issue.
Hope this helps. Let me know if I need to test in different way or if I am missing something |
Journals added sheet is showing all journals
datalog_journal_added_update
background job to make it more robust avoid missing records in datalogdatalog_journal_added
, even the record have been added to indexdatalog_journal_added
successfulHow to deploy
datalog_journal_added
This PR...
Developer Checklist
Developers should review and confirm each of these items before requesting review
constants
ormessages
filesdates
)url_for
not hard-codeddevelop
Reviewer Checklist
Reviewers should review and confirm each of these items before approval
If there are multiple reviewers, this section should be duplicated for each reviewer
constants
ormessages
filesdates
)url_for
not hard-codeddevelop
Testing
List user test scripts that need to be run
List any non-unit test scripts that need to be run by reviewers
Deployment
What deployment considerations are there? (delete any sections you don't need)
Configuration changes
What configuration changes are included in this PR, and do we need to set specific values for production
Scripts
What scripts need to be run from the PR (e.g. if this is a report generating feature), and when (once, regularly, etc).
Migrations
What migrations need to be run to deploy this
datalog_journal_added
Monitoring
What additional monitoring is required of the application as a result of this feature
New Infrastructure
What new infrastructure does this PR require (e.g. new services that need to run on the back-end).
Continuous Integration
What CI changes are required for this