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

Generate test data #60

Merged
merged 14 commits into from
Dec 1, 2021
Merged

Generate test data #60

merged 14 commits into from
Dec 1, 2021

Conversation

thesoftwarephilosopher
Copy link
Contributor

@thesoftwarephilosopher thesoftwarephilosopher commented Nov 30, 2021

This finishes most of the subtask in #23 of generating sample data with a redacted copy.

  1. The redacted IDs match the format of real IDs, so we'll end up with fake addon-license-ids like L64504661 and 89032315, fake transaction-ids like AT-646765546, and fake deal-ids like 5679651591.

  2. The redacted combined-transaction-and-addon-license-ids are now redacted in parts, so they're not "unrelated" to existing IDs. So for example, for AT-646765546 and 89032315, we now print AT-646765546[89032315] whereas before this PR it was a random string that had nothing to do with either of those.

  3. We now also print the Transaction/License IDs, deal stage, and amount, for deals that have no action taken on them. This will be useful for quickly seeing (and verifying) why the engine thought no action should be taken.

  4. The code is more secure against typos that might accidentally print real data to the redacted output file, by creating the logger file and the redactor at the same time in a new class.

@thesoftwarephilosopher thesoftwarephilosopher merged commit 613aa15 into main Dec 1, 2021
@thesoftwarephilosopher thesoftwarephilosopher deleted the generate-test-data branch December 1, 2021 09:10
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