[FIX] Error when updating omnichannel department without agents parameter#18428
Merged
sampaiodiego merged 2 commits intodevelopfrom Jul 31, 2020
Merged
Conversation
sampaiodiego
approved these changes
Jul 31, 2020
sampaiodiego
pushed a commit
that referenced
this pull request
Jul 31, 2020
…eter (#18428) * Fix error when updating department through REST API. * Improves validation of endpoint parameters
Merged
sampaiodiego
pushed a commit
that referenced
this pull request
Aug 1, 2020
…eter (#18428) * Fix error when updating department through REST API. * Improves validation of endpoint parameters
gabriellsh
added a commit
that referenced
this pull request
Aug 10, 2020
…omni * 'develop' of github.com:RocketChat/Rocket.Chat: [NEW] Add REST API endpoint to search Livechat visitors (#18514) LingoHub based on develop (#18516) Update README.md (#18503) [NEW] Channel avatar (#18443) [FIX] Sending notifications from senders without a name (#18479) [FIX] UserCard avatar cache (avatarETag) (#18466) [IMPROVE] Admin Info page requires permission (#18408) [FIX] Marking room as read with unread threads still (#18410) [FIX] Random generated password not matching the Password Policy (#18475) Typo in privacy agreement message (#18476) bugfix for uploading files from livechat (#18474) LingoHub based on develop (#18465) [NEW] Add the ability to set the character message limit on Livechat widget (#18261) [FIX] Migration 194 (#18457) [FIX] Omnichannel session monitor is not starting (#18412) [FIX] Invalid MIME type when uploading audio files (#18426) [FIX] Error when updating omnichannel department without agents parameter (#18428) [FIX] Omnichannel Take Inquiry endpoint checking wrong permission (#18446) [FIX] Multiple push notifications sent via native drivers (#18442) [FIX] Appending 'false' to Jitsi URL (#18430)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
The REST API method used to update omnichannel departments is not working properly when the
agentsfield is not set.In addition: We're checking now if all agents passed through the
agentsfield are valid users.Issue(s)
CLOSES #18392
How to test or reproduce
Just try to update a department trhough the REST API/PUT method without the
agentsfield. An error will be raised/returned and the department won't be updated.Screenshots
Types of changes
Checklist
Changelog
Further comments