Skip to content

zulip/__init__.py: Adds delete_topic method #603

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Pradhvan
Copy link

Adds a method delete_topic which calls the url '/streams/stream_id/delete_topic
' with topic_name passed as data

Closes #534

Adds a method delete_topic which calls the url '/streams/stream_id/delete_topic
' with topic_name passed as data

Closes zulip#534
@timabbott
Copy link
Member

@akashaviator can you review this?

options = parser.parse_args()

client = zulip.init_from_options(options)
if (type(options.stream_id) == str):
Copy link
Contributor

@akashaviator akashaviator Jun 23, 2020

Choose a reason for hiding this comment

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

@Pradhvan Have you tried manually testing this ? I am getting an error while trying to pass a stream id (i.e. int) as argument. Seems like it treats it as a string.

Copy link
Author

Choose a reason for hiding this comment

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

@akashaviator let me try manually testing it. 😄

Copy link
Member

Choose a reason for hiding this comment

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

@Pradhvan have you tested this?

If you don't have time, can @akashaviator take over finishing this?

Copy link
Author

Choose a reason for hiding this comment

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

@timabbott sorry for the delay. I will test and update this. So that @akashaviator can review and merge this.

Copy link
Author

Choose a reason for hiding this comment

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

@akashaviator can you take this over? Sorry but I am bit stuck on things and won't be able to give this time.

Copy link
Author

Choose a reason for hiding this comment

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

Since it's not merged, I can take this up again. @akashaviator

Copy link

Choose a reason for hiding this comment

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

@Pradhvan are you working on this? Just asking since i did not see it claimed. Thanks!

@timabbott
Copy link
Member

timabbott commented Nov 4, 2020 via email

@PIG208
Copy link
Member

PIG208 commented Jun 14, 2021

I think this deserves some extra testings to get merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: Support delete all messages from a topic
6 participants