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

Fix duplicate names for same process by counting up processes in adapter #66

Merged
merged 7 commits into from
Mar 1, 2024

Conversation

henhuy
Copy link
Contributor

@henhuy henhuy commented Feb 28, 2024

Before name was only generated from region, carrier and tech - this leads to an error if multiple processes (with same tech and carrier) are placed into same region. Thus, I simply added a counter which adds a number to the name for each process.

@henhuy henhuy added the bug Something isn't working label Feb 28, 2024
@henhuy henhuy requested a review from FelixMau February 28, 2024 16:07
@henhuy henhuy self-assigned this Feb 28, 2024
@henhuy henhuy force-pushed the fix/duplicate_names branch from 7dfa9bd to 8d1d698 Compare February 29, 2024 15:08
@FelixMau FelixMau merged commit 0953706 into dev Mar 1, 2024
2 checks passed
@FelixMau FelixMau deleted the fix/duplicate_names branch March 1, 2024 11:58
Comment on lines +39 to +42
mapper.get("region"),
mapper.get("carrier"),
mapper.get("tech"),
self.counter,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why dont we pass the process name? defaults.update({"name": mapper.process_name})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. Counting must still be added

Copy link
Contributor

Choose a reason for hiding this comment

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

I added it to #71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants