Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

chore: deprecation api #29347

Merged
merged 13 commits into from
Jun 6, 2023
Merged

chore: deprecation api #29347

merged 13 commits into from
Jun 6, 2023

Conversation

ggazzo
Copy link
Member

@ggazzo ggazzo commented May 23, 2023

image
ARCH-1105

  • Unify deprecation usage
  • Adds more deprecation possibility. (invalid uses, parameters and methods)
  • Possibility of not allowing deprecations during tests

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

@changeset-bot
Copy link

changeset-bot bot commented May 23, 2023

⚠️ No Changeset found

Latest commit: a123449

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@ggazzo ggazzo force-pushed the chore/deprecation branch from 95957fb to 7710ad9 Compare May 23, 2023 22:06
@codecov
Copy link

codecov bot commented May 23, 2023

Codecov Report

Merging #29347 (a123449) into develop (1e1d10e) will increase coverage by 7.80%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #29347      +/-   ##
===========================================
+ Coverage    38.86%   46.66%   +7.80%     
===========================================
  Files          662      699      +37     
  Lines        12591    13082     +491     
  Branches      2170     2228      +58     
===========================================
+ Hits          4893     6105    +1212     
+ Misses        7409     6658     -751     
- Partials       289      319      +30     
Flag Coverage Δ
e2e 46.63% <ø> (+7.79%) ⬆️

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

@ggazzo ggazzo marked this pull request as ready for review May 24, 2023 17:37
@ggazzo ggazzo requested review from a team as code owners May 24, 2023 17:37
apps/meteor/app/api/server/helpers/parseJsonQuery.ts Outdated Show resolved Hide resolved
@@ -180,7 +181,15 @@ export class APIClass<TBasePath extends string = ''> extends Restivus {
// eslint-disable-next-line @typescript-eslint/no-this-alias
const self = this;

return parseJsonQuery(this.request.route, self.userId, self.queryParams, self.logger, self.queryFields, self.queryOperations);
return parseJsonQuery.call(
Copy link
Member

Choose a reason for hiding this comment

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

If you're passing this as context, wouldn't be better to let parseJsonQuery to get what it needs rather than passing a bunch of params? 👀

apps/meteor/app/api/server/v1/oauthapps.ts Outdated Show resolved Hide resolved
apps/meteor/app/api/server/v1/roles.ts Outdated Show resolved Hide resolved
apps/meteor/app/api/server/v1/roles.ts Outdated Show resolved Hide resolved
apps/meteor/app/assets/server/assets.ts Outdated Show resolved Hide resolved
apps/meteor/app/authorization/server/methods/deleteRole.ts Outdated Show resolved Hide resolved
apps/meteor/app/livechat/server/methods/loginByToken.ts Outdated Show resolved Hide resolved
apps/meteor/app/livechat/server/methods/pageVisited.ts Outdated Show resolved Hide resolved
apps/meteor/app/livechat/server/methods/registerGuest.ts Outdated Show resolved Hide resolved
apps/meteor/app/livechat/server/methods/removeAgent.ts Outdated Show resolved Hide resolved
apps/meteor/app/api/server/helpers/parseJsonQuery.ts Outdated Show resolved Hide resolved
Copy link
Member

@sampaiodiego sampaiodiego left a comment

Choose a reason for hiding this comment

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

see comments

@ggazzo ggazzo merged commit 33ab16f into develop Jun 6, 2023
@ggazzo ggazzo deleted the chore/deprecation branch June 6, 2023 22:19
gabriellsh added a commit that referenced this pull request Jun 12, 2023
…memberList

* 'develop' of github.com:RocketChat/Rocket.Chat: (43 commits)
  chore: Pages empty state consistency (#29439)
  refactor: Convert Omnichannel helper ee to ts (#29274)
  regression(i18n): Broken translations on client-side startup (#29442)
  chore: break down helpers.ts and create new files (#28611)
  test: runInBand unit test (#29484)
  i18n: system message copy updates (#29372)
  chore: emoji popup trigger length (#29282)
  fix: Seat counter including apps (#29489)
  fix: Invalid message draft (#29474)
  fix: message deletion fails if has files attached on filesystem storage (#29313)
  chore: replace meteor.call -> sdk.call (#29318)
  chore: deprecation api (#29347)
  fix: Imported messages are not displayed (#29416)
  chore: convert metrics to ts (#29475)
  chore: use new Livechat SDK Implementation (#29098)
  fix: Room history scroll position (#29335)
  fix: check for $addToSet to be not empty before passing update params (#29378)
  chore: update `badge-level-0` color (#29460)
  fix: Saving Business hour throws an alert (#29449)
  regression: emojiPicker position (#29408)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants