Skip to content

Conversation

@ptindall
Copy link

Description

Added an additional field to the marker entry for the ElasticSearch target so we also have the UTC based date.

I also use PyCharm which sets up the local virtual as venv/ so I wanted to be sure that was ignored as part of .gitignore

Motivation and Context

We use UTC dates to control incremental processes and knowing when this marker was last updated based upon a UTC
date is needed for us.

Have you tested this? If so, how?

I have run "tox -e py39-core test/contrib/esindex_test.py" locally on this change.

'target_doc_type': self.doc_type,
'date': datetime.datetime.now()})
'date': datetime.datetime.now(),
'date_utc': datetime.datetime.utcnow()})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an expert of ES, so not sure of the impact here.

The document id would be sufficient but,
for documentation,
we index the parameters `update_id`, `target_index`, `target_doc_type` and `date` as well.
we index the parameters `update_id`, `target_index`, `target_doc_type` and `date` as well. `date_utc` added
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the added comment fits better as a PR comment instead of docstring to track the reasoning. Maybe something as simple as: we index the parameters update_id, target_index, target_doc_type , date and date_utc.

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If closed, you may revisit when your time allows and reopen! Thank you for your contributions.

@stale stale bot added the wontfix label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants