Skip to content

Commit

Permalink
AAP-31326: Add OrgName to the Marketing report
Browse files Browse the repository at this point in the history
  • Loading branch information
goneri committed Sep 16, 2024
1 parent 04e87cb commit 8f18bb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ansible_ai_connect/users/reports/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def generate(
"First name",
"Last name",
"Email",
"Organization name",
"Plan name",
"Trial started",
"Trial expired_at",
Expand All @@ -140,6 +141,7 @@ def generate(
user["given_name"],
user["family_name"],
user["email"],
organization["name"],
plan["plan"]["name"],
plan["created_at"],
plan["expired_at"],
Expand Down
5 changes: 4 additions & 1 deletion ansible_ai_connect/users/reports/tests/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ def tearDown(self):
super().cleanup()

def get_report_header(self) -> str:
return "OrgId,UUID,First name,Last name,Email,Plan name,Trial started,Trial expired_at"
return (
"OrgId,UUID,First name,Last name,Email,Organization name,"
"Plan name,Trial started,Trial expired_at"
)

def get_report_generator(self) -> BaseGenerator:
return UserMarketingReportGenerator()
Expand Down

0 comments on commit 8f18bb6

Please sign in to comment.