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

fix: Fixing the user status change by app #28965

Conversation

AllanPazRibeiro
Copy link
Contributor

@AllanPazRibeiro AllanPazRibeiro commented Apr 18, 2023

Proposed changes (including videos or screenshots)

Fixing a bug in the app bridge where the user prop was not being considered on the user reactive change regarding the user status.

Issue(s)

The app bridge was not correctly handling changes to the user status when the user prop was updated. This led to inconsistencies in the app's UI, where the user status would not be properly reflected in certain cases.

To fix this issue, I updated the app bridge to properly consider changes to the user prop when handling user status changes. This ensures that the app's UI accurately reflects the user's current status at all times.

Steps to test or reproduce

Basically, you only need to create a simple app that changes the user status and status text by any trigger. Now the user status will change instantly.

Further comments

@AllanPazRibeiro AllanPazRibeiro requested a review from a team as a code owner April 18, 2023 20:18
@AllanPazRibeiro AllanPazRibeiro self-assigned this Apr 18, 2023
@tiagoevanp tiagoevanp added this to the 6.3.0 milestone Apr 18, 2023
tiagoevanp
tiagoevanp previously approved these changes Apr 18, 2023
Copy link
Member

@d-gubert d-gubert left a comment

Choose a reason for hiding this comment

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

Can you please remove the & { statusDefault: string } part from the fields param in the update function as well? It's very confusing and inaccurate, because the Apps-Engine will never send this property from the apps side

apps/meteor/app/apps/server/bridges/users.ts Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Apr 18, 2023

Codecov Report

Merging #28965 (4baf3db) into release-6.2.0 (1154211) will decrease coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@                Coverage Diff                @@
##           release-6.2.0   #28965      +/-   ##
=================================================
- Coverage          46.13%   46.04%   -0.09%     
=================================================
  Files                728      728              
  Lines              14088    14088              
  Branches            2193     2193              
=================================================
- Hits                6499     6487      -12     
- Misses              7277     7289      +12     
  Partials             312      312              
Flag Coverage Δ
e2e 46.01% <ø> (-0.09%) ⬇️

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

@casalsgh casalsgh requested a review from d-gubert April 19, 2023 15:45
@AllanPazRibeiro AllanPazRibeiro changed the base branch from develop to release-6.2.0 April 19, 2023 16:52
@AllanPazRibeiro AllanPazRibeiro requested review from a team as code owners April 19, 2023 16:52
@AllanPazRibeiro AllanPazRibeiro modified the milestones: 6.3.0, 6.2.0 Apr 19, 2023
@casalsgh casalsgh requested a review from csuadev April 19, 2023 16:54
@AllanPazRibeiro AllanPazRibeiro force-pushed the AECO-15-the-user-status-is-not-been-reactive-changing-by-app branch from fcba247 to 553f860 Compare April 19, 2023 17:29
@AllanPazRibeiro AllanPazRibeiro marked this pull request as draft April 19, 2023 17:35
@AllanPazRibeiro AllanPazRibeiro marked this pull request as ready for review April 20, 2023 13:34
@d-gubert d-gubert merged commit f436341 into release-6.2.0 Apr 20, 2023
@d-gubert d-gubert deleted the AECO-15-the-user-status-is-not-been-reactive-changing-by-app branch April 20, 2023 18:12
@sampaiodiego sampaiodiego mentioned this pull request May 16, 2023
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.

4 participants