Skip to content

Conversation

josephtyler
Copy link
Contributor

  • Add entity_status to Campaign object
  • Update campaign fixtures
  • Fix pep8 issues

Fixes #132 and #134.

@josephtyler josephtyler force-pushed the feature/add_entity_status branch from 3a15aeb to 02cbf6c Compare November 21, 2017 23:13
Copy link
Contributor

@juanshishido juanshishido left a comment

Choose a reason for hiding this comment

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

Thanks for contributing, @josephtyler!

I've made two, small suggestions. Please fix it, then ship it.

Note: entity_status is now writable on both campaigns and line items. See this announcement for details on this change.

Thanks again!

"standard_delivery": true,
"total_budget_amount_local_micro": null,
"id": "2wap7",
"paused": false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove all instances of paused

resource_property(Campaign, 'created_at', readonly=True, transform=TRANSFORM.TIME)
resource_property(Campaign, 'updated_at', readonly=True, transform=TRANSFORM.TIME)
resource_property(Campaign, 'deleted', readonly=True, transform=TRANSFORM.BOOL)
resource_property(Campaign, 'entity_status', readonly=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

entity_status is writable on both campaigns and line items.

@josephtyler
Copy link
Contributor Author

Ok, I've added entity_status to line_items as well, added some line_item tests, and updated the fixtures for both line_items and campaigns to remove the paused field.

Looks like someone with write access needs to merge. Thanks!

@juanshishido juanshishido merged commit 57821ff into xdevplatform:master Nov 28, 2017
@juanshishido juanshishido mentioned this pull request Nov 29, 2017
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.

Add entity_status property to campaign

2 participants