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

Advanced repeat rules #8456

Merged
merged 33 commits into from
Feb 13, 2025
Merged

Conversation

murilopereirame
Copy link
Contributor

No description provided.

@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from c8134f0 to 040498f Compare February 3, 2025 08:23
@tutao-mac tutao-mac force-pushed the 8046-parse-advanced-repeat-rules branch 2 times, most recently from 30a7bb4 to 7aefc39 Compare February 3, 2025 08:45
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch 3 times, most recently from ffbc61b to be4c63a Compare February 4, 2025 06:54
@tutao-mac tutao-mac force-pushed the 8046-parse-advanced-repeat-rules branch from be4c63a to e3da4ff Compare February 4, 2025 07:13
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from a0e43a2 to 4ff0a1d Compare February 4, 2025 08:05
@tutao-mac tutao-mac force-pushed the 8046-parse-advanced-repeat-rules branch 2 times, most recently from 58728cf to 3d6d998 Compare February 4, 2025 08:58
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from 39d4116 to cf65d58 Compare February 5, 2025 12:08
@tutao-mac tutao-mac force-pushed the 8046-parse-advanced-repeat-rules branch from cf65d58 to 7446664 Compare February 5, 2025 12:25
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch 4 times, most recently from 25f09c9 to 6e404da Compare February 6, 2025 13:01
}

trait MonthNumber {
fn to_number(&self) -> u8;
Copy link
Contributor

Choose a reason for hiding this comment

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

could we use num_enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, because Month is an Enum from the crate time

Copy link
Contributor

@Patrik-wav Patrik-wav left a comment

Choose a reason for hiding this comment

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

Overall okay, I'd say lets revisit these bigger functions on monday

src/calendar-app/calendar/export/CalendarExporter.ts Outdated Show resolved Hide resolved
src/common/calendar/date/CalendarUtils.ts Outdated Show resolved Hide resolved
src/common/calendar/date/CalendarUtils.ts Show resolved Hide resolved
src/common/calendar/date/CalendarUtils.ts Show resolved Hide resolved
src/common/calendar/date/CalendarUtils.ts Show resolved Hide resolved
src/common/calendar/date/CalendarUtils.ts Outdated Show resolved Hide resolved
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch 5 times, most recently from 37098a6 to 187a33b Compare February 11, 2025 18:22
andrehgdias and others added 27 commits February 12, 2025 16:09
This commit simplifies the Event Generator, removing duplicated code
that are not needed.
Some rules aren't supported during event creation/editing.
This commit adds an info banner warning about losing rules if user edits
and event with unsupported rules.

Co-authored-by: André Dias <[email protected]>
To have the SDK we must move the tests from unit to Instrumented Tests
as unit tests aren't able to load our compiled SDK since the target
mismatches (Unit tests require linux-x86-64).

Mockito isn't able to mock final classes and instead of making all of
them open, we can use dexmaker to proxy the classes and be able to
fully mock final classes.

This commit introduces dexmaker as a dependency and also overrides
dexmaker mockito-core with a more updated one.
The way that we count events and occurrences changed with the
implementation of the advanced repeat rules, given that, we've had to
fix tests that relies on these counts.

This commit address one corner case for weekly events expansion on SDK
and fixes the tests on Swift.
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from d0e574b to 945ddb4 Compare February 12, 2025 15:10
@murilopereirame murilopereirame merged commit 945ddb4 into dev-calendar Feb 13, 2025
10 checks passed
@murilopereirame murilopereirame deleted the 8046-parse-advanced-repeat-rules branch February 13, 2025 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants