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

Make changes discussed during review of #3689 #3693

Merged

Conversation

jnm
Copy link
Member

@jnm jnm commented Feb 22, 2022

No description provided.

@@ -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)
Copy link
Contributor

@noliveleger noliveleger Feb 22, 2022

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)
Copy link
Contributor

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)
Copy link
Contributor

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
Copy link
Contributor

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,
Copy link
Contributor

Choose a reason for hiding this comment

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

@jnm jnm merged commit 74c66d4 into edit-with-openrosa-server Feb 22, 2022
@jnm jnm deleted the edit-with-openrosa-server__proposed-changes branch February 22, 2022 16:41
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