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

Change resource specs aggregation to better handle joins to modw.resource_allocated table #1837

Merged

Conversation

eiffel777
Copy link
Contributor

The previous join to modw.resource_allocated relied on the fact that in Open XDMoD the start and end dates for a resource spec and resource allocated are the same. This is not the case for ACCESS XDMoD so this change instead joins using a date range to get an change in the resource allocated during the date range being allocated. The start and end dates from modw.resource_allocated are also used in the macro used to determine the time period used in calculating the various columns.

Tests performed

Tested in docker and added an extra rows to modw.resourcespecs and modw.resource_allocated to check that the new aggregation works. Below is a sql file that has an export of those tables with the extra rows that can be used to manually test that the aggregation works.

resourcespecs_sql_dump.zip

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@eiffel777 eiffel777 added Category:ETL Extract Transform Load autodoc:ignore Auto documentation ignore this PR labels May 1, 2024
@eiffel777 eiffel777 added this to the 11.0.0 milestone May 1, 2024
@eiffel777 eiffel777 self-assigned this May 1, 2024
eiffel777 and others added 2 commits May 2, 2024 08:00
Co-authored-by: Aaron Weeden <31246768+aaronweeden@users.noreply.github.com>
@eiffel777 eiffel777 merged commit 22cac6a into ubccr:xdmod11.0 May 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autodoc:ignore Auto documentation ignore this PR Category:ETL Extract Transform Load
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants