David Barnett

Results 409 comments of David Barnett

On a technical level, this is happening because for some bizarre reason Google's [import method](https://developers.google.com/calendar/api/v3/reference/events/import) that we switched to accepts a `sequence` number but doesn't do anything with it and...

Hmm, then it might be good to stick close to their existing behavior, but in the context of gcalcli the "duplicate" behavior surprised me at first. I was testing gcalcli...

@ntzb yeah those are the clunky parts. From what I remember here the API has two options for IMPORT vs UPDATE and neither one works quite how you'd expect. It's...

Check #836 about the invite emails. I actually have a PR up that I believe fixes the `--use-legacy-imports` flag being backwards (see latest comments there) but I'd really like if...

Or maybe instead of separate configs per account, the config.toml structure should change to support e.g. ```toml [accounts."account1@domain".calendars] ignore-calendars = ["cal1", "cal2"] ``` ?

I hit one snag that the oauth tokens we receive don't seem to include an account name or email to identify separate accounts. It seemed like the `openid` and `…userinfo.email`...

K for reference, I was able to successfully fetch account ID / email using their recommended way from [google_auth_oauthlib docs](https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html): ```python flow = InstalledAppFlow.from_client_config( … scopes=[ "openid", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/calendar", ],...

Eh, could be I'm overcomplicating things. My priority in however it's specified is to remove any temptation for people to manually twiddle oauth files, so we're not locked into some...

Might work okay. I suspect that'd also end up having a lot of complications in practice: - It still needs to have some 1-to-1 mapping between the config and the...

K then a few things: - From the cli command I wouldn't guess that's triggering an account switch, so maybe rename the arg to `--account-config` or something? - +1 having...