Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: tag endpoint empty result #35028

Merged
merged 4 commits into from
Jan 24, 2025
Merged

fix: tag endpoint empty result #35028

merged 4 commits into from
Jan 24, 2025

Conversation

ggazzo
Copy link
Member

@ggazzo ggazzo commented Jan 24, 2025

Proposed changes (including videos or screenshots)

Fixes a missconception about /v1/livechat/tags/:tagId

the type definition doesnt consider null/empty results

'/v1/livechat/tags/:tagId': {
		GET: () => ILivechatTag;
	};

the code returns ILivechatTag | { body: null } which is weird/wrong.

now if we cannot find the tag returns a 404 result

Issue(s)

CORE-949

Steps to test or reproduce

Further comments

Copy link

changeset-bot bot commented Jan 24, 2025

🦋 Changeset detected

Latest commit: 65069f9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

dionisio-bot bot commented Jan 24, 2025

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is targeting the wrong base branch. It should target 7.4.0, but it targets 7.3.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@ggazzo ggazzo force-pushed the fix/empty-tag-result branch from b6bc86a to 2149cf3 Compare January 24, 2025 15:10
@ggazzo ggazzo force-pushed the fix/empty-tag-result branch from 2149cf3 to 4a5563a Compare January 24, 2025 15:11
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.17%. Comparing base (d6c4db8) to head (633edec).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #35028   +/-   ##
========================================
  Coverage    59.17%   59.17%           
========================================
  Files         2822     2822           
  Lines        68117    68117           
  Branches     15145    15145           
========================================
  Hits         40311    40311           
  Misses       24975    24975           
  Partials      2831     2831           
Flag Coverage Δ
unit 75.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@ggazzo ggazzo changed the title fix: tags endpoint empty result fix: tag endpoint empty result Jan 24, 2025
@ggazzo ggazzo added this to the 7.4.0 milestone Jan 24, 2025
@ggazzo ggazzo marked this pull request as ready for review January 24, 2025 15:27
@ggazzo ggazzo requested review from a team as code owners January 24, 2025 15:27
Co-authored-by: Kevin Aleman <kaleman960@gmail.com>
KevLehman
KevLehman previously approved these changes Jan 24, 2025
@ggazzo ggazzo merged commit bb5b08d into develop Jan 24, 2025
5 of 7 checks passed
@ggazzo ggazzo deleted the fix/empty-tag-result branch January 24, 2025 17:34
@ggazzo ggazzo added the stat: QA assured Means it has been tested and approved by a company insider label Jan 24, 2025
juliajforesti pushed a commit that referenced this pull request Jan 28, 2025
Co-authored-by: Kevin Aleman <kaleman960@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants