Skip to content

Add usage to Partner API endpoint for IAAs#5061

Merged
orenyk merged 1 commit intomainfrom
oyk-partner-api-iaa-usage
May 21, 2021
Merged

Add usage to Partner API endpoint for IAAs#5061
orenyk merged 1 commit intomainfrom
oyk-partner-api-iaa-usage

Conversation

@orenyk
Copy link
Copy Markdown
Contributor

@orenyk orenyk commented May 14, 2021

Part of LG-4236

  • Add an SpReturnLogScan query object that does a table scan of the
    sp_return_logs table and yields each record
  • Add an IaaUsage service object that is instantiated with an IaaOrder
    and implements a #count method to take an sp_return_log record and
    update an authentications array and ial2_users set if appropriate
  • Add a UsageSummarizer service object that users the SpReturnLogScan
    and IaaUsage to reduce all of the sp_return_log records into a
    collection of IaaUsages
  • Add ial2_auths and authentications attributes to Iaa model and
    serializer
  • Add #in_pop? method to IaaOrder
  • Modify the PartnerApiReport to run the usage summary and update the
    list of IAAs with the relevant usage data
  • Add model spec for SpReturnLog

@orenyk orenyk requested a review from jmhooper May 14, 2021 06:29
@orenyk orenyk force-pushed the oyk-partner-api-iaa-usage branch from 24ab7c8 to 21e6b95 Compare May 14, 2021 17:03
@orenyk orenyk force-pushed the oyk-partner-api-iaas branch 2 times, most recently from e2107cd to c21c868 Compare May 20, 2021 02:39
@orenyk orenyk force-pushed the oyk-partner-api-iaa-usage branch 3 times, most recently from a219020 to c73eba0 Compare May 20, 2021 11:25
Base automatically changed from oyk-partner-api-iaas to main May 20, 2021 20:24
* Add an SpReturnLogScan query object that does a table scan of the
  sp_return_logs table and yields each record
* Add an IaaUsage service object that is instantiated with an IaaOrder
  and implements a #count method to take an sp_return_log record and
  update an authentications array and ial2_users set if appropriate
* Add a UsageSummarizer service object that users the SpReturnLogScan
  and IaaUsage to reduce all of the sp_return_log records into a
  collection of IaaUsages
* Add ial2_auths and authentications attributes to Iaa model and
  serializer
* Add #in_pop? method to IaaOrder
* Modify the PartnerApiReport to run the usage summary and update the
  list of IAAs with the relevant usage data
* Add model spec for SpReturnLog
@orenyk orenyk force-pushed the oyk-partner-api-iaa-usage branch from c73eba0 to 67662e0 Compare May 20, 2021 20:25
@orenyk orenyk merged commit 48f7484 into main May 21, 2021
@orenyk orenyk deleted the oyk-partner-api-iaa-usage branch May 21, 2021 00:52
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.

2 participants