Skip to content

Allow ordering talentpool/bigbrother watched users by oldest added#1044

Merged
kosayoda merged 8 commits into
masterfrom
talentpool-oldest
Jul 15, 2020
Merged

Allow ordering talentpool/bigbrother watched users by oldest added#1044
kosayoda merged 8 commits into
masterfrom
talentpool-oldest

Conversation

@kosayoda
Copy link
Copy Markdown
Contributor

This PR modifies !talentpool watched and adds a new command !talentpool oldest to allow convenient listing of talent pool nominees by oldest added.

Screenshots

New argument is added to !talentpool watched:
image

!talentpool watched with oldest_first = True:
image

!talentpool oldest is added for convenience:
image

@kosayoda kosayoda requested a review from a team as a code owner July 14, 2020 03:11
@kosayoda kosayoda requested review from jb3 and scragly and removed request for a team July 14, 2020 03:11
@ghost ghost added the needs 2 approvals label Jul 14, 2020
Comment thread bot/cogs/watchchannels/bigbrother.py Outdated
Copy link
Copy Markdown
Member

@Den4200 Den4200 left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Copy Markdown
Contributor

@kwzrd kwzrd left a comment

Choose a reason for hiding this comment

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

Looks and works just fine, excellent work.

Leaving one comment just to make sure it's intentional ~ feel free to merge.

Comment on lines +290 to +292
async def list_watched_users(
self, ctx: Context, oldest_first: bool = False, update_cache: bool = True
) -> None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Method signature still fits within 120 chars, is this broken down intentionally? I don't mind it, just wondering.

Additionally, the oldest_first param isn't documented in the docstring (it is in the commands), but I think it's self-explanatory and doesn't need to be mentioned.

@ghost ghost removed the needs 1 approval label Jul 14, 2020
@kwzrd kwzrd changed the title Allow ordering talentpool nominees by oldest added Allow ordering talentpool/bigbrother watched users by oldest added Jul 14, 2020
@kwzrd kwzrd added a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 2 - normal Normal Priority t: feature New feature or request labels Jul 14, 2020
@kosayoda kosayoda merged commit 8334de8 into master Jul 15, 2020
@kosayoda kosayoda deleted the talentpool-oldest branch July 15, 2020 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 2 - normal Normal Priority t: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants