Branched off of docker_rocky8_python10 from @matthew-li.
The following was added:
A subcommand of the billing_ids command named validate that takes a space-separated list of billing IDs as input and prints out "Valid" or "Invalid" for each of those IDs.
A view at the URL /billing/validate/ that takes a list of newline-separated billing IDs as input and displays a message which shows whether each billing ID was "Valid," "Invalid," or "Malformed."
Added a "Validate" button in the billing ID usages page (Admin > LBL Project IDs) that links to the view.
Same permissions as the other billings views.
Basic unit testing.
Testing
Manual Testing:
Navigate to /billing/validate or click the Validate button on /billing/usages/
Unit Testing:
Basic unit testing can be found at coldfront.core.billing.tests.test_commands.test_billing_ids.
Branched off of docker_rocky8_python10 from @matthew-li.
The following was added:
billing_ids
command namedvalidate
that takes a space-separated list of billing IDs as input and prints out "Valid" or "Invalid" for each of those IDs./billing/validate/
that takes a list of newline-separated billing IDs as input and displays a message which shows whether each billing ID was "Valid," "Invalid," or "Malformed."Testing
/billing/validate
or click theValidate
button on/billing/usages/
coldfront.core.billing.tests.test_commands.test_billing_ids
.