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

Ensure case-insensitive fields are converted to lowercase in Admin Imports #29739

Conversation

ThisIsMissEm
Copy link
Contributor

The previous code meant that CSV files generated from Python would fail to import, since in Python boolean values when output in CSV as either True or False, not "true" or "false" as Ruby expects.

Additionally there's no difference between 'Suspend' and 'suspend', both should be handled the same, and likewise, domains are case-insensitive.

This fixes #26253

There are currently no tests at all for Admin::Import, and adding them feels out of scope of this minor fix.

Previously this meant that CSV files generated from Python would fail to import, since in python, booleans in CSV are output as either True or False. Additionally there's no difference between 'Suspend' and 'suspend', both should be handled the same.
ThisIsMissEm added a commit to ThisIsMissEm/mastodon that referenced this pull request Mar 24, 2024
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Mar 26, 2024
Merged via the queue into mastodon:main with commit a3e8b78 Mar 26, 2024
32 checks passed
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.

'Import domain blocks' case-sensitive on booleans
3 participants