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

Add support for timeseries #2597

Open
wants to merge 9 commits into
base: 2.7.x
Choose a base branch
from
Open

Conversation

PReimers
Copy link
Member

@PReimers PReimers commented Dec 9, 2023

Q A
Type bug/feature/improvement
BC Break yes/no
Fixed issues

Summary

Replaces #2542

This PR adds the missing time series tests.

@PReimers PReimers changed the title Dev timeseries Add support for timeseries Dec 9, 2023
@PReimers PReimers changed the base branch from 2.6.x to 2.7.x December 9, 2023 13:38
@GromNaN GromNaN requested a review from alcaeus December 9, 2023 13:39
@@ -339,7 +339,7 @@ public function updateValidators(?int $maxTimeMs = null, ?WriteConcern $writeCon
public function updateDocumentValidator(string $documentName, ?int $maxTimeMs = null, ?WriteConcern $writeConcern = null): void
{
$class = $this->dm->getClassMetadata($documentName);
if ($class->isMappedSuperclass || $class->isEmbeddedDocument || $class->isQueryResultDocument || $class->isView() || $class->isFile) {
if ($class->isMappedSuperclass || $class->isEmbeddedDocument || $class->isQueryResultDocument || $class->isView() || $class->isFile || $class->isTimeSeriesDocument) {
throw new InvalidArgumentException('Cannot update validators for files, views, mapped super classes, embedded documents or aggregation result documents.');

Choose a reason for hiding this comment

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

Message needs to be changed

@@ -339,7 +339,7 @@ public function updateValidators(?int $maxTimeMs = null, ?WriteConcern $writeCon
public function updateDocumentValidator(string $documentName, ?int $maxTimeMs = null, ?WriteConcern $writeConcern = null): void
{
$class = $this->dm->getClassMetadata($documentName);
if ($class->isMappedSuperclass || $class->isEmbeddedDocument || $class->isQueryResultDocument || $class->isView() || $class->isFile) {
if ($class->isMappedSuperclass || $class->isEmbeddedDocument || $class->isQueryResultDocument || $class->isView() || $class->isFile || $class->isTimeSeriesDocument) {

Choose a reason for hiding this comment

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

Checkout out updateValidators, also needs the condition to be extended

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

3 participants