-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add generation of model/emoji_data.go
to make-emojis script
#3429
Conversation
This variable is used by make-emojis in order to overwrite the server emoji_data.go file in case is defined
Emoji aliases seem to have duplicates and that doesn't work in the case of the emoji_data.go because you can't have duplicated keys in a map literal: `duplicate key "blonde_woman_light_skin_tone" in map literal`
model/emoji_data.go
to make-emojis script
Added test to check wheter a name for a cusomt icon already exists as a system icon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I just have a couple questions about the temporary files, but the rest of this looks good.
@hmhealey changes made :) Also I added an E2E test |
Seems like the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Tested this out and it generates the file and puts it in the right spot. I did get an error later on in the script, but that happens on master as well, so I might not have something set up correctly on my end
I tried to restart the build where it got stuck, but if that doesn't work, it might help to merge in the latest master branch. We've had some infrastructure changes lately, so this branch might be caught in the middle of them |
@hmhealey now seems to be working hehehe |
Thanks again for the change, @ethervoid! Just waiting for this to rebuild, and then we should be good to merge it |
…most#3429) * Build emoji_data.go file using make-emojis scripts mattermost/mattermost#8566 * Add SERVER_DIR environment variable This variable is used by make-emojis in order to overwrite the server emoji_data.go file in case is defined * Remove duplicity in the emoji_data.go file Emoji aliases seem to have duplicates and that doesn't work in the case of the emoji_data.go because you can't have duplicated keys in a map literal: `duplicate key "blonde_woman_light_skin_tone" in map literal` * Fix typo in the comments * Added E2E test for custom emojis backend Added test to check wheter a name for a cusomt icon already exists as a system icon * Fix typo introduced in the Makefile Co-Authored-By: Harrison Healey <[email protected]> * Generate the emoji_data.go file into the root folder * Move the emoji_data.go file to the server folder instead of copy * Fix typo in the emoji_data.go output message
…most#3429) * Build emoji_data.go file using make-emojis scripts mattermost/mattermost#8566 * Add SERVER_DIR environment variable This variable is used by make-emojis in order to overwrite the server emoji_data.go file in case is defined * Remove duplicity in the emoji_data.go file Emoji aliases seem to have duplicates and that doesn't work in the case of the emoji_data.go because you can't have duplicated keys in a map literal: `duplicate key "blonde_woman_light_skin_tone" in map literal` * Fix typo in the comments * Added E2E test for custom emojis backend Added test to check wheter a name for a cusomt icon already exists as a system icon * Fix typo introduced in the Makefile Co-Authored-By: Harrison Healey <[email protected]> * Generate the emoji_data.go file into the root folder * Move the emoji_data.go file to the server folder instead of copy * Fix typo in the emoji_data.go output message
Summary
This PR includes the generation of the
emoji_data.go
file into theutils\server
folder and it also adds the possibility to override the current file in the server folder.Ticket Link
Fixes mattermost/mattermost#8566
Related Pull Requests
None