-
Notifications
You must be signed in to change notification settings - Fork 10
videos: transform related identifiers #260
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
videos: transform related identifiers #260
Conversation
69a9562
to
8f0a122
Compare
cds_migrator_kit/videos/weblecture_migration/transform/xml_processing/quality/identifiers.py
Outdated
Show resolved
Hide resolved
cds_migrator_kit/videos/weblecture_migration/transform/xml_processing/quality/identifiers.py
Outdated
Show resolved
Hide resolved
cds_migrator_kit/videos/weblecture_migration/transform/xml_processing/rules/video_lecture.py
Outdated
Show resolved
Hide resolved
cds_migrator_kit/videos/weblecture_migration/transform/xml_processing/quality/identifiers.py
Outdated
Show resolved
Hide resolved
3c628ff
to
665baa4
Compare
@@ -145,7 +156,10 @@ def url_files(self, key, value): | |||
|
|||
return {"indico": indico_link} | |||
|
|||
url_file = {"url_file": {"url": url}} | |||
url_file = {"url_file": {}} |
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.
on line 145
when you set the indico_link["event_id"]
maybe verify with the 084
field and if not the same raise?
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.
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.
Yes sorry, I meant the 970
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.
Should we also raise if there's no indico_id?
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.
we can so we gather some statistics but I would raise it as a warning
717f2cc
to
a2cb3ca
Compare
a2cb3ca
to
a9a4ff0
Compare
} | ||
if rel not in related_identifiers: | ||
related_identifiers.append(rel) | ||
elif len(event_ids) > 1: |
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 wrong because if we have the same event_id in both fields it would raise no?
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.
No I created a set of all the indico id's in the record. Line 340-353, so it'll raise only if there is another indico id
closes CERNDocumentServer/cds-videos#2031