Skip to content

Conversation

@jezawa
Copy link

@jezawa jezawa commented Oct 22, 2020

Adds the ability to delete an attachment from an attachment field

Copy link
Contributor

@dmikov dmikov left a comment

Choose a reason for hiding this comment

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

Unit tests missing


return attachment

def delete(self, attachment):
Copy link
Contributor

Choose a reason for hiding this comment

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

Since there is not issue linked or jira ticket, can some information be added to the PR about why and example usage?
Will there be unit tests for this functionality?

Choose a reason for hiding this comment

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

This is an important functionality to add.

  1. The main use case I can think of is if you are syncing records between instances / applications and a parent record attachments have been deleted, you would want it to replicate in the child record(s).
  2. Another use case could be for record ingestion. For example, if you are ingesting an email which has attachments and a record is created but you still have yet to parse that data, if the record has attachments, but you only want attachments of a particular type, then deleting it when parsing the record would be beneficial.

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.

4 participants