Skip to content

Conversation

@QuanMPhm
Copy link
Contributor

@QuanMPhm QuanMPhm commented Feb 26, 2025

Closes #152. This PR consists of 3 commits to 1. implement the processor, 2. the invoice, and 3. a minor readability comment.

I am submitting this as a draft for now because I do not know how we want to identify BM projects. Refer to this comment for more context.

I also have a few small questions down below.

This is to improve readability, since we would always want
processing for credits and discounts to be done after all
other processing steps that just adds metadata
].copy()
]
filtered_data = (
filtered_data[ # TODO Does it make sense to test this filter in test cases?
Copy link
Contributor Author

@QuanMPhm QuanMPhm Feb 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to test this filter in test cases for this processor class?

filtered_data = self._filter_nonbillables(data)
filtered_data = self._filter_missing_pis(filtered_data)
filtered_data = self._filter_excluded_su_types(filtered_data)
filtered_data = self._filter_bm_projects(filtered_data)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^

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.

Implement the Bare Metal Usage invoice and processor

1 participant