sca sales reports depend on devportal app transitions

Bug #1048511 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Confirmed
Low
Unassigned

Bug Description

The helper functions:

* devportal.stats.gather_sales_report_data,
* devportal.stats.gather_finance_report_data,

belong in the software-center-agent application, as they report on subscriptions to applications (used to be devportal.Application, but now sca.PublishedApplication).

These two functions could almost be moved to sca, along with the devportal.Application.stats call-site, except that they currently depend on state-transitions of devportal.Application objects. AFAICT, this is just historical.

sca should track itself the periods when it's PublishedApplications are exposed, and when they are removed, so these reporting functions can be completely within sca. The data from these reports may be used by devportal, if it's decided that the UI for accessing the information will remain there, but that should be the only dependency (and that eventually via an API call for the data).

Tags: tech-debt
Dave Morley (davmor2)
Changed in software-center-agent:
status: New → Confirmed
importance: Undecided → Low
tags: added: tech-debt
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.