Mattermost-server: [MM-15194] Migrate "Emoji.Save" to Sync by default

Created on 18 Apr 2019  路  8Comments  路  Source: mattermost/mattermost-server

If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.


Notes: Jira ticket

Mattermost is migrating its Store layer to be sync by default, and only use Async when needed and we're looking for contributors to help with that effort. This Help Wanted issue is to migrate the Save in the Emoji store.

The expected way to implement it is, go to the Emoji store implementation in the store/sqlstore/ directory, modify the method Save to return directly an object from the model module, and a *model.AppError (removing the store.Do wrapper). After that, you must modify the interface defined in store/store.go to match with the changes. Then, you should execute make store-mocks to rebuild the mocks with the new interface. And finally, modify the rest of the code (tests included) to use the new interface of the function properly.

Example: mattermost/mattermost-server#10613

AreTechnical Debt Easy Good First Issue Help Wanted PR Exists TecGo

Most helpful comment

I'd love to give this a go if that's alright.

All 8 comments

I'd love to give this a go if that's alright.

Thanks @EmilLuta!

@EmilLuta How is everything going? Let me know if you need any help :)

Making this one available for the public again due to inactivity.

Can I give it a try?

Surely, @jesper-apsis. Let me know, if you have any questions.

Hi @hanzei, I took on this issue above. But I realized that I was logged in on the wrong Github account. So I just want to let you know that this is the account I will contribute with.

Everything is going well, will shortly open PR.

Hey @jesperhansen17, thanks for the heads up. :wink: Looking forward to your PR.

Was this page helpful?
0 / 5 - 0 ratings