-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Make changes discussed during review of #3689 #3693
Make changes discussed during review of #3689 #3693
Conversation
@@ -573,7 +573,8 @@ class Meta(ReadOnlyModel.Meta): | |||
mimetype = models.CharField( | |||
max_length=100, null=False, blank=True, default='' | |||
) | |||
replaced_at = models.DateTimeField(blank=True, null=True) | |||
# TODO: hide attachments that were deleted or replaced | |||
# replaced_at = models.DateTimeField(blank=True, null=True) |
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.
@@ -512,7 +512,7 @@ def test_surveys_exported_to_xml_have_id_string_and_title(self): | |||
asset_type='survey') | |||
export = a1.snapshot | |||
self.assertTrue('<h:title>abcxyz</h:title>' in export.xml) | |||
self.assertTrue('<data id="xid_stringx">' in export.xml) | |||
self.assertTrue(f'<{a1.uid} id="xid_stringx">' in export.xml) |
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.
👍
if self.include_format_suffixes: | ||
urls = format_suffix_patterns(urls) | ||
|
||
urls.extend(alias_urls) |
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.
❤️
@@ -588,13 +591,15 @@ def get_attachment( | |||
raise XPathNotFoundException | |||
|
|||
filters = { | |||
'replaced_at': None, | |||
# TODO: hide attachments that were deleted or replaced |
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.
'instance_id': submission_id, | ||
'media_file_basename': attachment_filename, | ||
} | ||
else: | ||
filters = { | ||
'replaced_at': None, | ||
# TODO: hide attachments that were deleted or replaced | ||
# 'replaced_at': None, |
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 description provided.