Skip to content

Add RFC 9073 Event Publishing Extensions and complete RFC 9074 - #2194

Open
SashankBhamidi wants to merge 11 commits into
mainfrom
rfc-9073-event-publishing-extensions
Open

SashankBhamidi wants to merge 11 commits into
mainfrom
rfc-9073-event-publishing-extensions

Conversation

@SashankBhamidi

Copy link
Copy Markdown
Member

Closes #656.

RFC 9073 adds PARTICIPANT, VLOCATION, and VRESOURCE as new components, plus ORDER, SCHEMA, and DERIVED parameters and six new properties (LOCATION-TYPE, PARTICIPANT-TYPE, RESOURCE-TYPE, CALENDAR-ADDRESS, STYLED-DESCRIPTION, STRUCTURED-DATA). Event, Todo, Journal, and FreeBusy each get typed .participants, .locations, and .resources accessors.

PR #717 landed the core of RFC 9074 but left out PROXIMITY, RELTYPE.SNOOZE, and VLOCATION inside VALARM. I've added those here too, which finishes off #657.

Three contributor PRs are superseded: #2145 (ORDER), #2165 (SCHEMA), #2167 (DERIVED). Those only applied ORDER and DERIVED to vText. They need to cover vCalAddress and vUri per RFC 9073 §5.1 and §5.3, so I handled that here.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the pull request, @SashankBhamidi! A maintainer will review it shortly.

@stevepiercy stevepiercy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wow, thanks for the large amount of effort to create this PR! Most of my suggestions relate to using the icalendar or Python implementation in docstrings, instead of copy-paste from the RFCs. I'm not sure about breaking convention of module and class names without the prefix of "v". I'd prefer to keep it consistent.

Comment thread news/656.feature.1 Resolved
Comment thread src/icalendar/cal/alarm.py Resolved
Comment thread src/icalendar/cal/alarm.py Resolved
Comment thread src/icalendar/cal/location.py Resolved
Comment thread src/icalendar/cal/resource.py Resolved
Comment thread src/icalendar/enums.py Resolved
Comment thread src/icalendar/enums.py Resolved
Comment thread src/icalendar/param.py Resolved
Comment thread src/icalendar/param.py Resolved
Comment thread src/icalendar/param.py Resolved
@SashankBhamidi

Copy link
Copy Markdown
Member Author

hey @stevepiercy thanks! applied all your suggestions. renamed to Location and Resource, rewrote the docstrings to describe what icalendar actually does, sorted the enums, fixed the news fragments.

CI was a whole adventure though. I ran ruff check --fix to fix the ISC004 strings but forgot that doesn't also run ruff format, so it came back red again. Then after I formatted, it found a str | None | tzinfo ordering issue in time.py that had been sitting on main unbothered forever and only got picked up after the merge. Four "pre-existing ruff" commits later we finally went green lol.

the old threads on vlocation.py and vresource.py are outdated, those files are gone.

This branch has not been deployed

No deployments
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.

RFC 9073 - Event Publishing Extensions to iCalendar

3 participants