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

CalDAV/PropFilter: set empty array as default value for time-range #1300

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

simonspa
Copy link
Contributor

This changes the default value of time-range in CalDAV prop filters from false (not matching RFC 4791 https://tools.ietf.org/html/rfc4791#section-9.9) to an empty array.

This closes #1299.

@dilyanpalauzov
Copy link

See also #1275.

@codecov
Copy link

codecov bot commented Nov 16, 2021

Codecov Report

Merging #1300 (c3e20f7) into master (5f273e4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1300   +/-   ##
=========================================
  Coverage     97.37%   97.37%           
  Complexity     2817     2817           
=========================================
  Files           174      174           
  Lines          7996     7996           
=========================================
  Hits           7786     7786           
  Misses          210      210           
Impacted Files Coverage Δ
lib/CalDAV/Xml/Filter/PropFilter.php 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f273e4...c3e20f7. Read the comment docs.

@phil-davis
Copy link
Contributor

I rebased and fixed the tests.

@phil-davis
Copy link
Contributor

@DeepDiver1975 @staabm opinion please on this PR and PR #1364

@staabm staabm requested a review from evert November 16, 2021 09:42
Comment on lines 53 to 57
'is-not-defined' => false,
'param-filters' => [],
'text-match' => null,
'time-range' => false,
'time-range' => [],
];
Copy link
Member

@staabm staabm Nov 16, 2021

Choose a reason for hiding this comment

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

I dont have expertise in the part of the codebase - but I think it might be usefull if we could declare constants for this false, null and [] magic values... I don't know how to interpret them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might be a good idea, but goes a bit beyond this PR. I am not familiar at all with the SabreDAV code base and I am not willing to stir in it too much by adding constants. 😉

Copy link
Contributor

Choose a reason for hiding this comment

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

I can do refactoring for "magic values" after we sort out this PR.

@DeepDiver1975 or @evert are you familiar with this and can give an opinion on changing from false to [] ?

@phil-davis
Copy link
Contributor

See also #1275.

And #1319

@phil-davis
Copy link
Contributor

@DeepDiver1975 any chance to look at this and #1364 please?

@simonspa
Copy link
Contributor Author

Any chance this could get merged? I think it is ready and has been reviewed, the only open suggestion is some larger refactoring that should happen outside the scope of this PR.

@evert evert removed their request for review July 25, 2022 00:30
@DeepDiver1975
Copy link
Member

looks good to me 👍 -> merge

@DeepDiver1975 DeepDiver1975 merged commit f0eda73 into sabre-io:master Nov 8, 2023
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.

Incorrect default value for time-range CalDAV PropFilter
5 participants