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 LiveStream component and endpoint #72

Merged
merged 20 commits into from
Mar 12, 2021
Merged

Add LiveStream component and endpoint #72

merged 20 commits into from
Mar 12, 2021

Conversation

renefs
Copy link
Contributor

@renefs renefs commented Apr 14, 2020

  • Add endpoint for the live_stream and live_stream_status
  • Fix patch method: Using data instead of params for kwargs

@renefs renefs changed the title Dev live stream [WIP] Add LiveStream component and endpoint Apr 14, 2020
@renefs renefs changed the title [WIP] Add LiveStream component and endpoint Add LiveStream component and endpoint Apr 14, 2020
@renefs
Copy link
Contributor Author

renefs commented Apr 14, 2020

Tox is reporting ok and the code formatting is ok as well. Once Travis conf is fixed, the checks should succeed :)

@prschmid
Copy link
Owner

Hi @renefs looks like there are a bunch of failing tests -- Could I trouble you to fix those up and then I'll review the code. Thanks!

@renefs
Copy link
Contributor Author

renefs commented Apr 20, 2020

Done, It seems since my last PR, the develop branch changed a bit, but now It should be ok

Copy link
Owner

@prschmid prschmid left a comment

Choose a reason for hiding this comment

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

Hi @renefs . Thank you for putting this PR together!

We just switched over to using the responses library for testing purposes. Could I trouble you to merge the most recent develop into your branch and update your tests accordingly? I think you'll find that it's a better way to write tests and there will be fewer chances of sneaky bugs in the future.

Thank you again for your effort!

@renefs renefs requested a review from prschmid April 23, 2020 11:45
Copy link
Owner

@prschmid prschmid left a comment

Choose a reason for hiding this comment

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

Thanks for the quick update with the tests. I've added a question for you and my preference would be to combine the two LiveStream and LiveStreamUpdate components to one for the sake of simplicity in the python library, even if it's technically 2 separate endpoints on Zoom's side. What are your thoughts?

zoomus/components/live_stream_status.py Outdated Show resolved Hide resolved
@prschmid prschmid added this to the 1.1.4 milestone Apr 23, 2020
@renefs renefs requested a review from prschmid April 23, 2020 12:13
Copy link
Owner

@prschmid prschmid left a comment

Choose a reason for hiding this comment

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

A couple minor fixes and questions. Thank you for your time and effort!

@@ -3,4 +3,3 @@ repos:
rev: stable
hooks:
- id: black
language_version: python3.6
Copy link
Owner

Choose a reason for hiding this comment

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

Was there a reason this was removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The precommit was failing for me when using Python 3.7. I think that removing this line, the Python version was not forced. Correct me if I'm wrong though.

Copy link
Owner

Choose a reason for hiding this comment

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

Ahh, got it. We'll want to keep this as it was before since that ensures we're all running it using the same python version. If this is causing you issues on the commit side of things, you could temporarily remove this and run black manually to make sure that files are formatted correctly. Then you can add it back in so that it works for everyone else. Thoughts?

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 afraid that I cannot commit if I remove this line

tests/zoomus/test_client.py Outdated Show resolved Hide resolved
zoomus/components/__init__.py Outdated Show resolved Hide resolved
tests/zoomus/test_client.py Show resolved Hide resolved
zoomus/client.py Outdated Show resolved Hide resolved
@renefs
Copy link
Contributor Author

renefs commented May 6, 2020

Apply the changes as you wish

@prschmid
Copy link
Owner

prschmid commented May 6, 2020

@renefs FYI, I just went ahead and fixed up the merge conflicts. Can you double check if anything else seems amiss and respond to any other questions not pertaining to the merge part and then we can get this merged in today. Thanks for your time and effort!

@jamestiotio
Copy link

jamestiotio commented Aug 11, 2020

Hi @prschmid! May I bump this PR up for merging? The livestream feature is something that I would like to utilize for my research project. Thank you!

@prschmid prschmid modified the milestones: 1.1.4, 1.1.5, 1.1.6 Feb 3, 2021
@prschmid prschmid requested a review from mfldavidson February 3, 2021 15:16
Copy link
Contributor

@mfldavidson mfldavidson left a comment

Choose a reason for hiding this comment

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

Checked out locally and tests passed. Code looks good and will definitely be useful! I think we are ready to merge but I'd like @prschmid to take a final pass before we merge.

@prschmid prschmid merged commit c7d0817 into prschmid:develop Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants