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

[3.0] Improve import form compatibility #1434

Merged

Conversation

manelclos
Copy link
Contributor

Fix for #1432

Avoid crashing and print a warning about what needs to be changed to get it fully working in 3.0

@manelclos manelclos changed the base branch from main to release-3-x May 11, 2022 14:10
@manelclos
Copy link
Contributor Author

Hi @matthewhegarty, something like this would make the upgrade to 3.0 a bit easier. Please let me know what you think.

@manelclos manelclos changed the title Manelclos/improve importform compatibility [3.0] Improve import form compatibility May 11, 2022
Copy link
Contributor

@matthewhegarty matthewhegarty left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for testing and creating this PR.

I expect you will add a note in the changelog under breaking changes as well?

@matthewhegarty
Copy link
Contributor

@manelclos shall I write some tests to get this over the line?

@manelclos
Copy link
Contributor Author

@matthewhegarty working on this today, lets see how much I can get done.

@manelclos
Copy link
Contributor Author

working on the test, feel free to correct the breaking changes note I just added.

@manelclos
Copy link
Contributor Author

Hi @matthewhegarty tests just added. Let me know what you think. I'll squash commits before merge.

Copy link
Contributor

@matthewhegarty matthewhegarty left a comment

Choose a reason for hiding this comment

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

LGTM. Presumably you were able to manually test the fix in your code base which subclassed Form (not ImportExportFormBase)

@manelclos
Copy link
Contributor Author

Yes, after using the new base class everything works as expected.

@manelclos manelclos force-pushed the manelclos/improve-importform-compatibility branch from c9abcc6 to 3f21c2f Compare May 17, 2022 14:44
@manelclos
Copy link
Contributor Author

squashed, ready for merge

@matthewhegarty matthewhegarty merged commit 01f041f into release-3-x May 17, 2022
@matthewhegarty matthewhegarty deleted the manelclos/improve-importform-compatibility branch September 14, 2023 12:35
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.

None yet

2 participants