Skip to content

Commit

Permalink
v2.7.7
Browse files Browse the repository at this point in the history
Bugfix: Reminder DND window not always applying correctly
  • Loading branch information
phw198 committed Nov 25, 2018
1 parent 6ffd386 commit f0922d0
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 36 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ If you find a bug, [help squash it](https://github.com/phw198/OutlookGoogleCalen
     ![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.0-beta/OutlookGoogleCalendarSync-2.7.0-beta-full.nupkg.svg)
     ![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.0-beta/OutlookGoogleCalendarSync-2.7.0-beta-delta.nupkg.svg)

### Latest Alpha Release: [![Latest Release](https://img.shields.io/github/release/phw198/OutlookGoogleCalendarSync/all.svg)](https://github.com/phw198/OutlookGoogleCalendarSync/releases/tag/v2.7.6-alpha) [![Latest Release downloads](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.6-alpha/total.svg)](https://github.com/phw198/OutlookGoogleCalendarSync/releases/v2.7.6-alpha)
### Latest Alpha Release: [![Latest Release](https://img.shields.io/github/release/phw198/OutlookGoogleCalendarSync/all.svg)](https://github.com/phw198/OutlookGoogleCalendarSync/releases/tag/v2.7.7-alpha) [![Latest Release downloads](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.7-alpha/total.svg)](https://github.com/phw198/OutlookGoogleCalendarSync/releases/v2.7.7-alpha)

:floppy_disk: [Installer](https://github.com/phw198/OutlookGoogleCalendarSync/releases/download/v2.7.6-alpha/Setup.exe)
     [![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.6-alpha/Setup.exe.svg)](https://github.com/phw198/OutlookGoogleCalendarSync/releases/download/v2.7.6-alpha/Setup.exe)
:floppy_disk: [Installer](https://github.com/phw198/OutlookGoogleCalendarSync/releases/download/v2.7.7-alpha/Setup.exe)
     [![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.7-alpha/Setup.exe.svg)](https://github.com/phw198/OutlookGoogleCalendarSync/releases/download/v2.7.7-alpha/Setup.exe)

:package: [Portable ZIP](https://github.com/phw198/OutlookGoogleCalendarSync/releases/download/v2.7.6-alpha/Portable_OGCS_v2.7.6.zip)
     [![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.6-alpha/Portable_OGCS_v2.7.6.zip.svg)](https://github.com/phw198/OutlookGoogleCalendarSync/releases/download/v2.7.6-alpha/Portable_OGCS_v2.7.6.zip)
:package: [Portable ZIP](https://github.com/phw198/OutlookGoogleCalendarSync/releases/download/v2.7.7-alpha/Portable_OGCS_v2.7.7.zip)
     [![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.7-alpha/Portable_OGCS_v2.7.7.zip.svg)](https://github.com/phw198/OutlookGoogleCalendarSync/releases/download/v2.7.7-alpha/Portable_OGCS_v2.7.7.zip)

:information_source: Upgrades to this release
     ![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.6-alpha/OutlookGoogleCalendarSync-2.7.6-alpha-full.nupkg.svg)
     ![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.6-alpha/OutlookGoogleCalendarSync-2.7.6-alpha-delta.nupkg.svg)
     ![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.7-alpha/OutlookGoogleCalendarSync-2.7.7-alpha-full.nupkg.svg)
     ![](https://img.shields.io/github/downloads/phw198/outlookgooglecalendarsync/v2.7.7-alpha/OutlookGoogleCalendarSync-2.7.7-alpha-delta.nupkg.svg)

## Functionality
<img align="right" width="35%" src="https://github.com/phw198/OutlookGoogleCalendarSync/raw/master/docs/images/supported_sync_configs.png" alt="Supported configurations"/>
Expand Down
14 changes: 14 additions & 0 deletions docs/Release Notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
| Release Notes |
|:---|

# v2.7.7.0 - Alpha

**Enhancements**
- Better timing of auto-retry for when quota renewed after API exhausted
- Option to configure the browser's User Agent in the GUI
- Options to use (or not) Outlook/Google calendar defaults for reminders

**Bugfix**
- Persist a push sync through a restart of Outlook
- Persist selection of correct calendar when alternate mailbox is temporarily unavailable
- Select correct alternate mailbox on startup
- Handle a Google event having an end date _before_ the start date
- Reminder DND window not always applying correctly

# v2.7.6.0 - Alpha

**Enhancements**
Expand Down
2 changes: 1 addition & 1 deletion docs/latest_zip_release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Latest ZIP Release
**Alpha**: [v2.7.6.0](https://github.com/phw198/OutlookGoogleCalendarSync/releases/tag/v2.7.6-alpha)
**Alpha**: [v2.7.7.0](https://github.com/phw198/OutlookGoogleCalendarSync/releases/tag/v2.7.7-alpha)
**Beta**: [v2.7.0.0](https://github.com/phw198/OutlookGoogleCalendarSync/releases/latest)
15 changes: 10 additions & 5 deletions nuget-build.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set RELEASE=2.7.6-alpha
set RELEASE=2.7.7-alpha

cd src
del Releases\OutlookGoogleCalendarSync-%RELEASE%-full.nupkg
Expand All @@ -11,17 +11,22 @@ REM src\packages\squirrel.windows.1.7.8\tools\signtool.exe sign /n "Open Source

REM In VS Package Manager
REM PM> Install-Package squirrel.windows -Version 1.7.8
REM PM> packages\squirrel.windows.1.7.8\tools\Squirrel --releasify OutlookGoogleCalendarSync.2.7.6-alpha.nupkg --no-msi --loadingGif=..\docs\images\ogcs128x128-animated.gif
REM PM> packages\squirrel.windows.1.7.8\tools\Squirrel --releasify OutlookGoogleCalendarSync.2.7.7-alpha.nupkg --no-msi --loadingGif=..\docs\images\ogcs128x128-animated.gif

REM Sign the Squirrel install executable
REM src\packages\squirrel.windows.1.7.8\tools\signtool.exe sign /n "Open Source Developer, Paul Woolcock" /tr http://time.certum.pl/ /td sha256 /fd sha256 /v src\Releases\Setup.exe

REM Build ZIP
PAUSE
cd src\OutlookGoogleCalendarSync\bin\Release
"c:\Program Files\7-Zip\7z.exe" u Portable_OGCS_v2.7.5.zip -u- -up0q0r2x2y2z1w2!Portable_OGCS_v2.7.6.zip *.dll *.ps1 ErrorReportingTemplate.json logger.xml tzdb.nzd OutlookGoogleCalendarSync.exe OutlookGoogleCalendarSync.exe.config Console\*
"c:\Program Files\7-Zip\7z.exe" u Portable_OGCS_v2.7.6.zip -u- -up0q0r2x2y2z1w2!Portable_OGCS_v2.7.7.zip *.dll *.ps1 ErrorReportingTemplate.json logger.xml tzdb.nzd OutlookGoogleCalendarSync.exe OutlookGoogleCalendarSync.exe.config Console\*

"c:\Program Files\7-Zip\7z.exe" e Portable_OGCS_v2.7.5.zip Microsoft.Office.Interop.Outlook.DLL
"c:\Program Files\7-Zip\7z.exe" a Portable_OGCS_v2.7.6.zip Microsoft.Office.Interop.Outlook.DLL
"c:\Program Files\7-Zip\7z.exe" e Portable_OGCS_v2.7.6.zip Microsoft.Office.Interop.Outlook.DLL
"c:\Program Files\7-Zip\7z.exe" e Portable_OGCS_v2.7.6.zip stdole.dll
"c:\Program Files\7-Zip\7z.exe" e Portable_OGCS_v2.7.6.zip "Windows Defender SmartScreen Unblock.ps1"

"c:\Program Files\7-Zip\7z.exe" a Portable_OGCS_v2.7.7.zip Microsoft.Office.Interop.Outlook.DLL
"c:\Program Files\7-Zip\7z.exe" a Portable_OGCS_v2.7.7.zip stdole.dll
"c:\Program Files\7-Zip\7z.exe" a Portable_OGCS_v2.7.7.zip "Windows Defender SmartScreen Unblock.ps1"

cd ..\..\..\..
22 changes: 10 additions & 12 deletions src/OutlookGoogleCalendarSync/OutlookGoogleCalendarSync.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>OutlookGoogleCalendarSync</id>
<version>2.7.6-alpha</version>
<version>2.7.7-alpha</version>
<title>Outlook Google Calendar Sync</title>
<authors>Paul Woolcock</authors>
<owners>phw198</owners>
Expand All @@ -12,22 +12,20 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Sync Outlook and Google calendars.</description>
<releaseNotes>
# What's New In v2.7.6?
# What's New In v2.7.7?
&lt;i class="em em-high_brightness"&gt;&lt;/i&gt; **Enhancements**

- Syncing a common calendar to/from more than one other now supported!
- Improved logic to determine meeting organiser's timezone
- Don't delete Google event immediately after reclaiming it
- New FAIL logging level added, below Error
- Nicer output when authenticating with Google and reclaiming items
- Show authorised Google account on Settings tab
- Better timing of auto-retry for when quota renewed after API exhausted
- Option to configure the browser's User Agent in the GUI
- Options to use (or not) Outlook/Google calendar defaults for reminders

&lt;i class="em em-beetle"&gt;&lt;/i&gt; **Bugfix**

- Fixed XML namespace for obfuscation sync direction
- Stopped error reporting obstructing Squirrel events
- Fixed crash on OGCS automated startup
- Don't try and retrieve Google event if synced from different calendar (avoid 404 errors)
- Persist a push sync through a restart of Outlook
- Persist selection of correct calendar when alternate mailbox is temporarily unavailable
- Select correct alternate mailbox on startup
- Handle a Google event having an end date _before_ the start date
- Reminder DND window not always applying correctly
</releaseNotes>
<copyright>Copyright 2018</copyright>
<tags>Outlook Google Calendar Sync 2-way Two-way Bidirection</tags>
Expand Down
11 changes: 7 additions & 4 deletions src/OutlookGoogleCalendarSync/OutlookOgcs/OutlookCalendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1258,10 +1258,13 @@ private Boolean isOKtoSyncReminder(DateTime alarm) {
if (Settings.Instance.ReminderDNDstart.TimeOfDay > Settings.Instance.ReminderDNDend.TimeOfDay) {
//eg 22:00 to 06:00
//Make sure end time is the day following the start time
Settings.Instance.ReminderDNDstart = alarm.Date.AddDays(-1).Add(Settings.Instance.ReminderDNDstart.TimeOfDay);
Settings.Instance.ReminderDNDend = alarm.Date.Add(Settings.Instance.ReminderDNDend.TimeOfDay);

if (alarm > Settings.Instance.ReminderDNDstart && alarm < Settings.Instance.ReminderDNDend) {
int shiftDay = 0;
DateTime dndStart;
DateTime dndEnd;
if (alarm.TimeOfDay < Settings.Instance.ReminderDNDstart.TimeOfDay) shiftDay = -1;
dndStart = alarm.Date.AddDays(shiftDay).Add(Settings.Instance.ReminderDNDstart.TimeOfDay);
dndEnd = alarm.Date.AddDays(shiftDay+1).Add(Settings.Instance.ReminderDNDend.TimeOfDay);
if (alarm > dndStart && alarm < dndEnd) {
log.Debug("Reminder (@" + alarm.ToString("HH:mm") + ") falls in DND range - not synced.");
return false;
} else
Expand Down
2 changes: 1 addition & 1 deletion src/OutlookGoogleCalendarSync/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.7.*")]
[assembly: AssemblyFileVersion("2.7.6.0")]
[assembly: AssemblyFileVersion("2.7.7.0")]

[assembly: AssemblyMetadata("SquirrelAwareVersion", "1")]
13 changes: 7 additions & 6 deletions src/OutlookGoogleCalendarSync/Social.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,13 @@ public enum Category {
squirrel
}
public enum Action {
download,
install,
setting,
uninstall,
upgrade,
version
debug, //ogcs
download, //squirrel
install, //squirrel
setting, //ogcs
uninstall, //squirrel
upgrade, //squirrel
version //outlook,ogcs
}

public static void Send(Category category, Action action, String label) {
Expand Down
7 changes: 7 additions & 0 deletions src/OutlookGoogleCalendarSync/Sync/Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,13 +510,20 @@ private Boolean outlookToGoogle(List<AppointmentItem> outlookEntries, List<Event
console.Update("Unable to reclaim orphan calendar entries in Google calendar.", Console.Markup.error);
throw ex;
}

DateTime timeSection = DateTime.Now;
try {
GoogleOgcs.Calendar.Instance.IdentifyEventDifferences(ref googleEntriesToBeCreated, ref googleEntriesToBeDeleted, entriesToBeCompared);
if (CancellationPending) return false;
} catch (System.Exception ex) {
console.Update("Unable to identify differences in Google calendar.", Console.Markup.error);
throw ex;
}
TimeSpan sectionDuration = DateTime.Now - timeSection;
if (sectionDuration.TotalSeconds > 30) {
log.Warn("That step took a long time! Issue #599");
Analytics.Send(Analytics.Category.ogcs, Analytics.Action.debug, "Duration;Google.IdentifyEventDifferences=" + sectionDuration.TotalSeconds);
}

StringBuilder sb = new StringBuilder();
console.BuildOutput(googleEntriesToBeDeleted.Count + " Google calendar entries to be deleted.", ref sb, false);
Expand Down

0 comments on commit f0922d0

Please sign in to comment.