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 measure bulk create error #1263

Merged
merged 4 commits into from
Jul 16, 2024
Merged

Fix measure bulk create error #1263

merged 4 commits into from
Jul 16, 2024

Conversation

eadpearce
Copy link
Contributor

Fix measure bulk create error

Why

  • Bug was missed on last code merge due to missing test coverage

What

  • Changes MeasureGeographicalAreaForm.deserialize_init_kwargs back to a class method
  • Adds missing test coverage for MeasuresBulkCreator.get_forms_cleaned_data

@eadpearce eadpearce requested a review from a team as a code owner July 12, 2024 11:14
# Perculiarly, this Form requires a prefix of "geographical_area".
return {
"prefix": self.prefix,
"prefix": cls.prefix,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the prefix need to be specified as "geographical_area" like before or added as new class attribute on the form before it can be used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since I (clearly wrongly!!) assumed that tests would fail if it WAS empty I just assumed it was fine. It's actually empty! I have another regression test to write! 🤦‍♀️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed with Steve. Writing tests for this code is going to take a bit longer (currently working on it) so he's given the go-ahead to deploy this fix without tests for now

@eadpearce eadpearce merged commit 45a858c into master Jul 16, 2024
8 checks passed
@eadpearce eadpearce deleted the measure-create-bug-fix branch July 16, 2024 12:59
@eadpearce eadpearce mentioned this pull request Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants