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

Adds csv dialect detection to bulk import view #13563

Merged
merged 14 commits into from
Sep 12, 2023

Conversation

abhi1693
Copy link
Member

Fixes: #13239

@abhi1693 abhi1693 requested review from jeremystretch and removed request for jeremystretch August 25, 2023 12:16
@abhi1693 abhi1693 marked this pull request as draft August 25, 2023 12:40
@abhi1693 abhi1693 marked this pull request as ready for review August 25, 2023 13:10
netbox/utilities/forms/bulk_import.py Show resolved Hide resolved
netbox/utilities/forms/bulk_import.py Outdated Show resolved Hide resolved
netbox/utilities/forms/bulk_import.py Outdated Show resolved Hide resolved
Copy link
Member Author

@abhi1693 abhi1693 left a comment

Choose a reason for hiding this comment

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

@jeremystretch Looks good to me with the exception of the slicing because that's dangeours if the auto is moved from the index 0

netbox/utilities/choices.py Show resolved Hide resolved
@jeremystretch
Copy link
Member

Looks good to me with the exception of the slicing

Good call. I've addressed this by moving the actual delimiting characters to a separate constant, which is wrapped by the choice set (with the addition of the auto option).

@jeremystretch jeremystretch merged commit b7cfb2f into develop Sep 12, 2023
8 checks passed
@jeremystretch jeremystretch deleted the feat/13239-csv-delimiters branch September 12, 2023 20:48
@jeremystretch jeremystretch mentioned this pull request Sep 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSV import: add support for alternate separators
4 participants