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

wip: move stats as stream #184

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

zzacharo
Copy link
Contributor

No description provided.

@zzacharo zzacharo marked this pull request as ready for review October 18, 2024 09:04
@@ -206,7 +206,7 @@ def publish_and_mint_recid(draft, version):
record = publish_and_mint_recid(draft, version)
# Force the created date. This can be done after publish as the service
# overrides the `created` date otherwise.
self._load_model_fields(record)
self._load_model_fields(record, entry)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

that fixes the creation date


logger.info("Done!")

def validate_stats_for_recid(self, recid, record, event_type):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is actually validating that each record stats is equal in both systems

extra_data["migration"]["source"] = "RECORD, EMAIL NOT FOUND IN ANY SOURCE"
logger_users.warning(f"User {email} not found.")
extra_data["migration"]["note"] = "MIGRATED INACTIVE ACCOUNT"
extra_data["migration"]["note"] = "MIGRATED INACTIVE ACCOUNT"
Copy link
Contributor

Choose a reason for hiding this comment

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

can you revert the tab? it was in correct block before

@zzacharo zzacharo merged commit 8c63e07 into CERNDocumentServer:master Oct 18, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants