Skip to content

[IMPROVE] Replace fullEmojiData publication by REST#15901

Merged
sampaiodiego merged 11 commits intodevelopfrom
replace-full-emoji-data-pub
Dec 20, 2019
Merged

[IMPROVE] Replace fullEmojiData publication by REST#15901
sampaiodiego merged 11 commits intodevelopfrom
replace-full-emoji-data-pub

Conversation

@MarcosSpessatto
Copy link
Copy Markdown
Contributor

No description provided.

@claassistantio
Copy link
Copy Markdown

claassistantio commented Dec 14, 2019

CLA assistant check
All committers have signed the CLA.

},
});

API.v1.addRoute('emoji-custom.listWithPagination', { authRequired: true }, {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I didn't like the name of the endpoint 🙈 and also it doesn't follow any name convention we're using.. what do you think if we change it to emoji-custom.all ? we could even create a standard where all .all endpoint are paginated (even though I think all .list should be)

import { EmojiCustom } from '../../../models/server/raw';

export async function findEmojisCustom({ query = {}, pagination: { offset, count, sort } }) {
const cursor = await EmojiCustom.find(query, {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

find doesn't return a promise.

Suggested change
const cursor = await EmojiCustom.find(query, {
const cursor = EmojiCustom.find(query, {

@sampaiodiego sampaiodiego merged commit c558273 into develop Dec 20, 2019
@sampaiodiego sampaiodiego deleted the replace-full-emoji-data-pub branch December 20, 2019 15:15
gabriellsh added a commit that referenced this pull request Dec 23, 2019
…default-favorite-channels

* 'develop' of github.com:RocketChat/Rocket.Chat: (28 commits)
  [IMPROVE] Notify logged agents when their departments change (#16033)
  [IMPROVE] Replace fullEmojiData publication by REST (#15901)
  [IMPROVE] Replace adminRooms publication by REST (#15948)
  [IMPROVE] Replace webdavAccounts publication by REST (#15926)
  [IMPROVE] Replace oauth publications by REST (#15878)
  [IMPROVE] Replace userAutocomplete publication by REST (#15956)
  [IMPROVE] Replace discussionsOfARoom publication by REST (#15908)
  [FIX] width of upload-progress-text (#16023)
  corrected Grammatical errors (#15570)
  Upgrade limax to 2.0.0 (#16020)
  [IMPROVE] Replace customSounds publication by REST (#15907)
  [FIX] Message list scrolling to bottom on reactions (#16018)
  [IMPROVE] Replace stdout publication by REST (#16004)
  [FIX] SAML logout error (#15978)
  [FIX] Added Join button to Read Only rooms. (#16016)
  [IMPROVE] Replace fullUserStatusData publication by REST (#15942)
  [IMPROVE] Replace userData subscriptions by REST (#15916)
  [FIX] z-index of new message button (#16013)
  [FIX] new message popup (#16017)
  [FIX] Changed renderMessage priority, fixed Katex on/off setting (#16012)
  ...
@sampaiodiego sampaiodiego mentioned this pull request Dec 26, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants