-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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 day to event end to correct TwenteMilieu event timespan #89028
Add day to event end to correct TwenteMilieu event timespan #89028
Conversation
It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
Hey there @frenck, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO I wouldn't mark this as a breaking change (seems quite unlikely someone is looking at the end date of these) and its just a bug fix to match the spec.
There is a merge conflict so address that and this seems fine to me.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
331e972
to
a50dbcd
Compare
MR description has been updated to no longer mark it as breaking change, and the branch has been rebased (although there wasn't any merge conflict). |
Wow @allenporter! Hold you horses, this required code owner approval! As this integration reached the platinum scale. You where not allowed to merge this. |
Apologies, I misunderstood. My platinum integrations have changed merges on them fairly regularly without my approval based on the judgement of the merger. This integrations implementation of calendar platform is not correct according to the spec in a fairly trivial way.( Intent was to help burn down the PR backlog). Shall I revert? |
"Sorry officer he ignored the red light too" 😉
Admin do override in case it has time pressure and affects lot of people. Global refactors for not trigger code owner requirements. Lastly, in case of running stale by lack of code owner response. Otherwise, we should await.
Will take a look later, mobile right now. |
Consider it more like trying to be helpful burning down the review backlog, not making excuses. Your message is heard loud and clear. |
Well appreciated, thanks 🙏 |
Going to revert this, it is not a correct fix. We have different issues somewhere, and this is working around the issue. I don't think adding a workaround should be our base to work from. Screenshots from the current (previous to this PR situation) It is correctly being picked up as an all-day event (for which the behavior was changed in #68843). However, it is making up the end date. Looking at the RFC:
Ref: https://www.rfc-editor.org/rfc/rfc5545#section-3.6.1 This means that the specs aren't currently handled correctly in our calendar entity platform, as it should have been a day automatically already in the existing (previous) situation. I suggest we allow creating events without an end date to handle this more correctly toward the RFC we are trying to implement. That should be fixed and not worked around in the integration. ../Frenck |
Second thought 🤔 Canceled the revert, as the optional end date is missing right now. As the end-date is exclusive, this PR makes sense in a way considering the current capabilities and kinda falls into the ruleset. Yet, we should look in accepting events without end-date I guess. |
We say here that the end date is exclusive: https://developers.home-assistant.io/docs/core/entity/calendar#calendarevent which is based on the rfc. (We don't define a duration, but could instead of we want to change the entity spec) I would like more feedback on: |
I'm not following the logic how the referenced architecture issue is related to this. |
I'll try to clarify my thoughts:
|
Also my impression is this PR is motivated by trigger misbehavior and the dev seeing this fix it. That is also what motivated that arch discussion I linked. I'm trying to bring more clarity to events to root out any trigger related bugs that may be lurking with more validation. |
The problem shown here, is not related to validation... Not even remotely. |
The problem here is our spec says |
Well, there are multiple things going on, however, all would not have been needed if the spec part I've listed above was implemented and accepted. The validation you point out would catch this, but it shouldn't have been needed in the first place (as there should not be a need to specify the end date of the event). ../Frenck |
Proposed change
Update the TwenteMilieu integration event end date to be one day later, as indicated in #86602.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: