Skip to content

Improve consistency of 'database_retention_policy' and 'database_retention_ttl' values in interface aggregate mappings#77

Merged
shinnokdisengir merged 2 commits into
astarte-platform:mainfrom
frossq:fix-intf-validation
Feb 2, 2026
Merged

Improve consistency of 'database_retention_policy' and 'database_retention_ttl' values in interface aggregate mappings#77
shinnokdisengir merged 2 commits into
astarte-platform:mainfrom
frossq:fix-intf-validation

Conversation

@frossq

@frossq frossq commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

Align with the astarte_core improved validation of 'database_retention_policy' and 'database_retention_ttl' values to fix astarte-platform/astarte#1072

@frossq
frossq force-pushed the fix-intf-validation branch from b81f423 to b381b4d Compare January 30, 2026 16:50
@shinnokdisengir
shinnokdisengir self-requested a review February 2, 2026 08:42

@shinnokdisengir shinnokdisengir left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the test commit is not verified

allow_unset <- MappingGenerator.allow_unset(interface_type),
explicit_timestamp <- MappingGenerator.explicit_timestamp(interface_type) do
explicit_timestamp <- MappingGenerator.explicit_timestamp(interface_type),
db_retention_policy <-

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For variables, it would be more correct to use the same names as the fields, if possible

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I did, but got a Credo complain for 'line too long' (> 100 characters); the easiest fix was to abbreviate the variable name. Open to suggestions

@frossq
frossq force-pushed the fix-intf-validation branch from b381b4d to a704f00 Compare February 2, 2026 10:00
@frossq
frossq force-pushed the fix-intf-validation branch from a704f00 to 06ed2a5 Compare February 2, 2026 10:26
…pings

Signed-off-by: frossq <francesco.asquini@secomind.com>
Signed-off-by: frossq <francesco.asquini@secomind.com>
@frossq
frossq force-pushed the fix-intf-validation branch from 06ed2a5 to 6eb0988 Compare February 2, 2026 10:41
@shinnokdisengir
shinnokdisengir merged commit fac08cf into astarte-platform:main Feb 2, 2026
5 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.

realm-management: Astarte allows the installation of interfaces aggregated with endpoints having different options

2 participants