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 date time range filter data extraction #24

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

1ed
Copy link
Contributor

@1ed 1ed commented Jun 29, 2024

No description provided.

@1ed
Copy link
Contributor Author

1ed commented Jul 2, 2024

@gilles-g could you or someone else have a look at this, please? It would be important for us to get this merged ASAP. Thanks!

@@ -53,9 +53,6 @@ public function extract(FormInterface $form)
$values['value'][$key][$k] = $v;
}
}
} else {
dump($keys, $data);
throw new \InvalidArgumentException(sprintf('No value found for key "%s" in form data.', $key));
Copy link
Contributor

Choose a reason for hiding this comment

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

You have removed the exception, I'm not sure about this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because calling

$this->filterUpdater->addFilterConditions($filter, $filterBuilder);

will throw if we do not provide all the date filters. I think filters are optional and should not throw an exception if one is missing. All the other extraction method have the same behavior and it is not part of the contract either.

@gilles-g gilles-g merged commit 01b7864 into SpiriitLabs:master Jul 4, 2024
4 checks passed
@gilles-g
Copy link
Contributor

gilles-g commented Jul 4, 2024

Thx @1ed
I will create a release

@1ed
Copy link
Contributor Author

1ed commented Jul 4, 2024

Great! Thank you very much!

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.

2 participants