Skip to content

Conversation

@KevLehman
Copy link
Member

@KevLehman KevLehman commented Jun 19, 2025

Proposed changes (including videos or screenshots)

Issue(s)

https://rocketchat.atlassian.net/browse/CTZ-230
https://rocketchat.atlassian.net/browse/CTZ-233

Steps to test or reproduce

Further comments

Not so common to remove agents this way, but it was not working. Caused by a refactor on 7.7.
Introduced by: #35854

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Jun 19, 2025

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented Jun 19, 2025

🦋 Changeset detected

Latest commit: dc9afaa

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

This PR includes changesets to release 37 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/rest-typings Patch
@rocket.chat/api-client Patch
@rocket.chat/core-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/http-router Patch
@rocket.chat/models Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/network-broker Patch
@rocket.chat/livechat Patch
@rocket.chat/mock-providers Patch
@rocket.chat/cron Patch
@rocket.chat/instance-status Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown 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/core-typings Patch
@rocket.chat/apps Patch
@rocket.chat/freeswitch Patch
@rocket.chat/model-typings Patch
@rocket.chat/license Patch
@rocket.chat/pdf-worker 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

@KevLehman KevLehman changed the title fix: AJV schema for _removing_ an agent from a department fix: AJV schema for removing an agent from a department Jun 19, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 19, 2025

PR Preview Action v1.6.1

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-36258/

Built to branch gh-pages at 2025-06-24 15:10 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 64.56%. Comparing base (f38bd57) to head (dc9afaa).
Report is 2 commits behind head on release-7.8.0.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff               @@
##           release-7.8.0   #36258   +/-   ##
==============================================
  Coverage          64.56%   64.56%           
==============================================
  Files               3147     3147           
  Lines             104614   104614           
  Branches           19768    19782   +14     
==============================================
+ Hits               67544    67549    +5     
+ Misses             34385    34379    -6     
- Partials            2685     2686    +1     
Flag Coverage Δ
e2e 57.62% <50.00%> (-0.04%) ⬇️
unit 69.18% <ø> (+0.03%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@KevLehman KevLehman marked this pull request as ready for review June 20, 2025 16:50
@KevLehman KevLehman requested review from a team as code owners June 20, 2025 16:50
@KevLehman KevLehman added the stat: QA assured Means it has been tested and approved by a company insider label Jun 20, 2025
@scuciatto scuciatto added this to the 7.8.0 milestone Jun 20, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jun 20, 2025
@scuciatto scuciatto modified the milestones: 7.8.0, 7.9.0 Jun 20, 2025
Copy link
Member

@ggazzo ggazzo left a comment

Choose a reason for hiding this comment

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

if only 2 fields are needed, we should not accept others, we should stop sending in the UI

@KevLehman
Copy link
Member Author

Totally agree. However the endpoint accepted them before the ajv validator so removing them was a breaking change. I am writing a task to remove them on v8

@ggazzo
Copy link
Member

ggazzo commented Jun 21, 2025

btw not fix the frontend already?
also, are we going to backport this? If not, we're almost saying that this "break change" isn't important.

Totally my opinion and open to being convinced: from the bottom of my heart, removing these fields from the API would be a fix and not a breaking change, whoever needs to adjust it just needs to remove the fields, almost zero difficulties

@KevLehman
Copy link
Member Author

Yup, backport is planned. Is one of the items I mentioned for 7.7x patch 😬 and ideally it should be on 7.8 but I just noticed the candidate is out already. Gonna check on Monday this.

On the fe, since it was meant to be backported, I tried to not include more things.

@ggazzo
Copy link
Member

ggazzo commented Jun 24, 2025

so a good mid ground solution is to allow the schema in the ajv, but remove it from the type and fix it in the frontend.

Also, open a PR removing it from version 8.0.0 already

When you do the backport, you can leave out the frontend if (you want) and type and just bring the schema (as was your first suggestion), but to consider this done all the mention points should be solved

@KevLehman KevLehman force-pushed the fix/remove-agent-from-dep branch from 78eac36 to f7a4329 Compare June 24, 2025 13:57
@KevLehman KevLehman requested review from a team as code owners June 24, 2025 13:57
@KevLehman KevLehman changed the base branch from develop to release-7.8.0 June 24, 2025 13:58
@KevLehman
Copy link
Member Author

@ggazzo you can check it now :)

I moved this one to 7.8 branch as we have to patch it to 7.7 anyways

@KevLehman KevLehman requested a review from a team as a code owner June 24, 2025 14:58
@KevLehman KevLehman modified the milestones: 7.9.0, 7.8.0 Jun 24, 2025
@ggazzo ggazzo merged commit d58457d into release-7.8.0 Jun 24, 2025
9 of 10 checks passed
@ggazzo ggazzo deleted the fix/remove-agent-from-dep branch June 24, 2025 15:02
@KevLehman
Copy link
Member Author

/patch

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Jun 24, 2025

Pull request #36298 added to Project: "Patch 7.7.2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants