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

Add 'transparent' flag to 'add' to allow creation of non-Busy (Free) … #509

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kda
Copy link

@kda kda commented Jan 29, 2020

…events.

I use this to create all day events frequently. I don't want the day marked busy.
So, I added this.

@jcrowgey
Copy link
Collaborator

This seems like a useful addition. But this needs a little work before I can merge it. Here are my two concerns:

  1. I'm not sure that "transparent" is the most transparent name for this flag, if you will. :) I believe I understand the metaphor, but perhaps --nonbusy would frame things in the same language the api and calendar app use. Or, there may be something better than that. I'd love to get input from other users here.

  2. As written, this breaks the tests. If you need help refactoring so that things still pass (ideally, you'd add to the testsuite as well), let me know.

@kda
Copy link
Author

kda commented Jan 29, 2020 via email

@jcrowgey
Copy link
Collaborator

jcrowgey commented Jan 29, 2020

  1. I'm willing to change it to --nonbusy. I will give it a day or two for input. 2. Yeah, I rushed it and only tested it manually for my application. I will improve the tests. An etiquette and git question: (zero experience in the github world...) Do I create a new branch? (and create a new pull request?) Do I just continue to work on the existing branch? (and give a holler when I think it is ready to go.)

No need to make a new PR. Beyond that, I'm happy for you to manage things as you see fit. Choose a new branch (you should be able to edit the PR to target a different source branch), or keep this branch and make changes. Squash your commits if you like. You can go so far as to force push and rewrite published history within your branch. As long as you own the branch, I won't worry about it.

Thanks for the PR! Looking forward to the changes.

@kda kda force-pushed the add-transparent-event branch 3 times, most recently from 495f611 to 551b51d Compare May 12, 2023 23:13
@kda kda force-pushed the add-transparent-event branch from 551b51d to fbef170 Compare May 12, 2023 23:17
@dbarnett
Copy link
Collaborator

dbarnett commented Aug 26, 2024

Oh yeah, I see it's called "transparency" in the API (https://developers.google.com/calendar/api/v3/reference/events#transparency) but in the UI it's called visibility=FREE|BUSY (https://support.google.com/calendar/answer/34580?p=event_visibility&co=GENIE.Platform%3DDesktop). I think that'll be the more discoverable name for most users. Could we change that to --visibility=FREE|BUSY?

LMK if you're planning to do that, otherwise I'll probably put together some changes to fix it.

@dbarnett
Copy link
Collaborator

I think that'll be the more discoverable name for most users. Could we change that to --visibility=FREE|BUSY?

Although weirdly Google seems to also refer to the privacy setting as "visibility" (public/private). Still, we should probably follow the naming they use in the actual UI and help docs and call this parameter "visibility".

Copy link
Collaborator

@dbarnett dbarnett left a comment

Choose a reason for hiding this comment

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

Please update the flag name as discussed.

LMK if you need help or would like someone else to take over on this change.

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.

3 participants