Mattermost-plugin-github: Results from /github subscribe list should be ordered

Created on 25 Jan 2020  路  7Comments  路  Source: mattermost/mattermost-plugin-github

Currently, the results returned from /github subscribe list get returned in a random order. The should be ordered by the repo name instead.

Easy Good First Issue Help Wanted TecGo TypBug

All 7 comments

I would like to work on this

Thanks @bakurits :+1:

@bakurits How are you doing with this ticket? Do you have any questions?

@bakurits How are you doing with this ticket? Do you have any questions?

Yes, I am. I'm done I think, but can't test it. Do you have any suggestions?

You could move your logic for creating a the list of subscriptions into from https://github.com/mattermost/mattermost-plugin-github/blob/9a40ca24e3d9ea9edd2c20079cfe1a9a10208f2a/server/command.go#L157-L164 to server/subscriptions.go and then set up a unit test at server/subscriptions_test.go. Could this work for you?

I'm on it

@hanzei
I think I have to mock GetSubscriptions() method here. https://github.com/mattermost/mattermost-plugin-github/blob/9a40ca24e3d9ea9edd2c20079cfe1a9a10208f2a/server/subscriptions.go#L148
Is there any other way?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hanzei picture hanzei  路  5Comments

mattermod picture mattermod  路  6Comments

mickmister picture mickmister  路  3Comments

rien picture rien  路  4Comments

mickmister picture mickmister  路  3Comments