Skip to content

Commit

Permalink
Merge pull request #35537 from dimagi/jc/update-text-in-api
Browse files Browse the repository at this point in the history
Change project_space to domain in CommCareVersionComplianceResource
  • Loading branch information
jingcheng16 authored Dec 18, 2024
2 parents 4e7214f + 3ebc5d3 commit 42542a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions corehq/apps/enterprise/api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,18 +423,18 @@ def get_primary_keys(self):

class CommCareVersionComplianceResource(ODataEnterpriseReportResource):
mobile_worker = fields.CharField()
project_space = fields.CharField()
domain = fields.CharField()
latest_version_available_at_submission = fields.CharField()
version_in_use = fields.CharField()

REPORT_SLUG = EnterpriseReport.COMMCARE_VERSION_COMPLIANCE

def dehydrate(self, bundle):
bundle.data['mobile_worker'] = bundle.obj[0]
bundle.data['project_space'] = bundle.obj[1]
bundle.data['domain'] = bundle.obj[1]
bundle.data['latest_version_available_at_submission'] = bundle.obj[2]
bundle.data['version_in_use'] = bundle.obj[3]
return bundle

def get_primary_keys(self):
return ('mobile_worker', 'project_space',)
return ('mobile_worker', 'domain',)

0 comments on commit 42542a2

Please sign in to comment.