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

Add metadata function for submission review data_type #1585

Closed
ivermac opened this issue Mar 11, 2019 · 1 comment · Fixed by #1589
Closed

Add metadata function for submission review data_type #1585

ivermac opened this issue Mar 11, 2019 · 1 comment · Fixed by #1589

Comments

@ivermac
Copy link
Contributor

ivermac commented Mar 11, 2019

Ideally, it would be more less same as the following but now for submission review

@staticmethod
def published_by_formbuilder(content_object, data_value=None):
data_type = 'published_by_formbuilder'
return unique_type_for_form(content_object, data_type, data_value)

The data_value should either be True or False

Aha! Link: https://ona.aha.io/features/PROD-266

@ukanga ukanga added this to the Week 11 - 12 (2019) milestone Mar 11, 2019
@ukanga
Copy link
Member

ukanga commented Mar 11, 2019

We might need to also look at the /metadata endpoint to ensure we only create one only single submission-review metadata for a form.

data_type = 'submission-review'
data_value = 'True'

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 a pull request may close this issue.

2 participants