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: Forget session on window close #33040

Merged
merged 13 commits into from
Aug 21, 2024
Merged

Conversation

yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented Aug 13, 2024

Proposed changes (including videos or screenshots)

We have a setting to use session storage on browser instead of local storage, so that browser forgets the session after window close. Everything was working fine till we upgraded to meteor 2.16 version.

The new meteor 2.16 release introduced a new option to configure the Accounts package and choose between the local storage or session storage. They also changed how Meteor._localstorage works internally. Due to these changes in Meteor, our setting to use session storage wasn't working as expected.

This PR fixes this issue and configures the Accounts package according to the workspace settings.

Issue(s)

Steps to test or reproduce

Further comments

SUP-639

Copy link
Contributor

dionisio-bot bot commented Aug 13, 2024

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

Copy link

changeset-bot bot commented Aug 13, 2024

🦋 Changeset detected

Latest commit: 9997420

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

This PR includes changesets to release 32 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings 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/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/uikit-playground Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf 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

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.43%. Comparing base (2f402fd) to head (9997420).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #33040   +/-   ##
========================================
  Coverage    59.43%   59.43%           
========================================
  Files         2546     2546           
  Lines        63257    63257           
  Branches     14236    14236           
========================================
  Hits         37596    37596           
  Misses       22941    22941           
  Partials      2720     2720           
Flag Coverage Δ
unit 76.03% <ø> (ø)

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

@yash-rajpal yash-rajpal marked this pull request as ready for review August 13, 2024 21:23
@yash-rajpal yash-rajpal requested a review from a team as a code owner August 13, 2024 21:23
@scuciatto scuciatto added this to the 6.12 milestone Aug 15, 2024
@jessicaschelly jessicaschelly added the stat: QA assured Means it has been tested and approved by a company insider label Aug 20, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Aug 20, 2024
Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

Approving it on behalf of frontend team!

@kodiakhq kodiakhq bot merged commit a7f12cc into develop Aug 21, 2024
49 checks passed
@kodiakhq kodiakhq bot deleted the fix/forget-session-window-close branch August 21, 2024 18:03
@scuciatto
Copy link
Member

/patch

Copy link
Contributor

dionisio-bot bot commented Aug 22, 2024

Pull request #33129 added to Project: "Patch 6.11.2"

@scuciatto
Copy link
Member

/backport 6.10.5

Copy link
Contributor

dionisio-bot bot commented Aug 22, 2024

Pull request #33130 added to Project: "Patch 6.10.5"

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