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: Remove references to EE code from the app bridges #31757

Merged
merged 5 commits into from
Mar 4, 2024

Conversation

pierre-lehnen-rc
Copy link
Contributor

@pierre-lehnen-rc pierre-lehnen-rc commented Feb 14, 2024

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

With the new converter type definitions, several type errors were detected - fixing them would require a breaking change on the apps-engine, so for now I added typecasts to keep the current behavior in place. I added a comment with the #AppsEngineTypes tag to all of those typecasts.

To minimize the potential risk of those typecasts, I typed everything in two steps: First I assign things to a typed constant using the correct types, then I do a typecast to the type that is currently expected. For example:

const promise: Promise<IUser | undefined> = getUser();
return promise as Promise<IUser>;

This way, if the getUser function signature is modified the typecast will not suppress any new type errors.

Copy link

changeset-bot bot commented Feb 14, 2024

⚠️ No Changeset found

Latest commit: 08cc997

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

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1fb0bc1) 54.44% compared to head (08cc997) 54.47%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #31757      +/-   ##
===========================================
+ Coverage    54.44%   54.47%   +0.03%     
===========================================
  Files         2275     2277       +2     
  Lines        50143    50146       +3     
  Branches     10228    10233       +5     
===========================================
+ Hits         27298    27315      +17     
+ Misses       20366    20346      -20     
- Partials      2479     2485       +6     
Flag Coverage Δ
e2e 53.34% <ø> (+0.03%) ⬆️
e2e-api 39.94% <ø> (+0.03%) ⬆️
unit 76.46% <100.00%> (-0.02%) ⬇️

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

Copy link
Contributor Author

@pierre-lehnen-rc pierre-lehnen-rc left a comment

Choose a reason for hiding this comment

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

Commenting some stuff that are probably bugs in the current implementation

apps/meteor/app/apps/server/converters/threads.ts Outdated Show resolved Hide resolved
apps/meteor/app/apps/server/bridges/messages.ts Outdated Show resolved Hide resolved
apps/meteor/app/apps/server/bridges/persistence.ts Outdated Show resolved Hide resolved
apps/meteor/app/apps/server/bridges/persistence.ts Outdated Show resolved Hide resolved
apps/meteor/app/apps/server/bridges/persistence.ts Outdated Show resolved Hide resolved
@ggazzo ggazzo merged commit f09953b into develop Mar 4, 2024
43 checks passed
@ggazzo ggazzo deleted the foss/apps-engine branch March 4, 2024 17:30
gabriellsh added a commit that referenced this pull request Mar 6, 2024
…tMarkdown

* 'develop' of github.com:RocketChat/Rocket.Chat:
  chore: improve useJumpToMessage (#31907)
  feat: Add `link` action to composer toolbar (#31679)
  chore: replace `PaletteStyleTag` in favor of fuselage component (#31839)
  fix: presence for mobiles with duplicated connections (#31895)
  fix: New users are not automatically inserted in auto-join rooms inside default teams (#31720)
  fix: livechat agent status set to available after reactivation (#31651)
  chore: Deprecate `insertOrUpdateUser` method (#31884)
  chore: update ts version on recently merged package (#31885)
  chore: move utilitary functions out of ee folder (#31207)
  chore: Remove references to EE code from the app bridges (#31757)
  fix: Room import doesn't honor the specified owner (#31803)
  fix: message parser emphasis black hole (#31868)
  chore: remove hardcoded position for message date (#31866)
  feat: show date on message's scroll (#31572)
  chore: `RoomHeader` keyboard navigability (#31837)
  fix: Login page breaking when handling not expected errors (#31804)
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