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 restriction and validity date conversion #3325

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

jnsrnhld
Copy link
Collaborator

@jnsrnhld jnsrnhld commented Mar 5, 2024

Bugs fixed:

  • Postgres native daterange columns have been converted to ColumnDateRange with an exclusive end
  • When creating ColumnDateRange and there was a date restriction, the ColumnDateRange contained the full range of the respective validity date and was not limited by the given date restriction

if (dateRestriction.hasUpperBound()) {
endDateExpression = dateRestriction.getMax().toString();
}
public ColumnDateRange forDateRestriction(CDateRange dateRestriction) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

date-restrictions müssen am Ende DateSets unterstützen können. Wenn das aktuell zu kompliziert ist, ist das ok. Aber für Eva use-cases ist das notwendig.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Das ist bekannt, würde ich aber von der Umsetzung noch hintenanstellen, da das hier nur ein Bugfix ist, der im Zusammenhang mit der Umsetzung von den event date selects aufgetreten ist.

Column startColumn;
Column endColumn;

if (validityDate.getEndColumn() != null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

erklärender Kommentar hier bitte

toDateField(INFINITY_DATE_VALUE)
);

dateRange = daterange(startColumn, endColumn, "[]");
Copy link
Collaborator

Choose a reason for hiding this comment

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

bitte direkt returnen, ich will nicht so viel scrollen müssen für ein return dateRange.

@jnsrnhld jnsrnhld merged commit 7e75d0d into develop Mar 6, 2024
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the sql/fix/date-restriction-conversion branch March 6, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants