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] google_calendar: sync options vanish events #167299

Closed

Conversation

geflx
Copy link
Contributor

@geflx geflx commented May 30, 2024

Before this commit, when resetting the Google Calendar account in Odoo, some events and recurrences were disappearing from Odoo when they shouldn't have. This was happening because we weren't removing the 'google_id' information from deleted recurrences or even unlinking events incorrectly on the Odoo side. In addition, synchronizing only “new” or “all existing” events was not being handled correctly because the “need_sync” field should change according to the “sync_policy” selected.

Following this commit, we correctly removed the 'google_id' from the recurrences when deleting them and now correctly consider the 'sync_policy' of synchronizing only 'new' or 'all existing' events by updating the 'need_sync' status of all existing synchronized events.

task-3731683

@robodoo
Copy link
Contributor

robodoo commented May 30, 2024

Pull request status dashboard.

@C3POdoo C3POdoo added the RD research & development, internal work label May 30, 2024
@geflx geflx force-pushed the 16.0-google_calendar-fix_reset_sync-gdpf branch from 19d7286 to 624897b Compare May 31, 2024 13:31
@geflx geflx force-pushed the 16.0-google_calendar-fix_reset_sync-gdpf branch 2 times, most recently from 093af5d to e67543b Compare July 11, 2024 08:12
@arj-odoo arj-odoo marked this pull request as ready for review July 25, 2024 07:35
Before this commit, when performing the Google Calendar account reset
in Odoo, some events and recurrences were disappearing from Odoo when
they shouldn't. This was happening because we were not removing the
'google_id' information of deleted recurrences or even unlinking
events incorrectly in Odoo side. Additionally, the synchronization of
only 'new' or 'all existing' events were not correctly being handled
because the 'need_sync' write should change according with the selected
'sync_policy'.

After this commit, we correctly remove the 'google_id' of recurrences
when the deleting them and we now consider correctly the 'sync_policy'
of synchronizing only 'new' or 'all existing' events by updating the
'need_sync' status of all existing synchronized events.

task-3731683
@arj-odoo arj-odoo force-pushed the 16.0-google_calendar-fix_reset_sync-gdpf branch from e67543b to b58bf82 Compare July 25, 2024 07:36
@arj-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Jul 26, 2024
Before this commit, when performing the Google Calendar account reset
in Odoo, some events and recurrences were disappearing from Odoo when
they shouldn't. This was happening because we were not removing the
'google_id' information of deleted recurrences or even unlinking
events incorrectly in Odoo side. Additionally, the synchronization of
only 'new' or 'all existing' events were not correctly being handled
because the 'need_sync' write should change according with the selected
'sync_policy'.

After this commit, we correctly remove the 'google_id' of recurrences
when the deleting them and we now consider correctly the 'sync_policy'
of synchronizing only 'new' or 'all existing' events by updating the
'need_sync' status of all existing synchronized events.

task-3731683

closes #167299

Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
@robodoo robodoo closed this Jul 26, 2024
@fw-bot fw-bot deleted the 16.0-google_calendar-fix_reset_sync-gdpf branch August 9, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants