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

Configure session by environment variables #2180

Merged
merged 1 commit into from
May 20, 2024

Conversation

andrewbrazzatti
Copy link
Contributor

Since the move to connect-mongo v5, the normal method to configure sessions in sails has been removed. As a result, the normal method of using sails__key_value no longer works due to where in the application lift sessions is initalised. To make it simpler to change settings such as the mongodb url, the config file will now check for the presence of the environment variables in the expected sails config format and use those in preference to the defaults if they exist.

Copy link

codecov bot commented May 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.11%. Comparing base (fd772ac) to head (c0cfd83).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2180   +/-   ##
========================================
  Coverage    52.11%   52.11%           
========================================
  Files          163      163           
  Lines         8007     8007           
  Branches      1147     1147           
========================================
  Hits          4173     4173           
  Misses        3403     3403           
  Partials       431      431           
Flag Coverage Δ
backend-mocha 48.23% <ø> (ø)
backend-newman 44.31% <ø> (ø)
frontend-core-lib 52.41% <ø> (ø)
frontend-dashboard 88.07% <ø> (ø)
frontend-export 100.00% <ø> (ø)
frontend-local-auth 100.00% <ø> (ø)
frontend-manage-roles 63.33% <ø> (ø)
frontend-manage-users 59.81% <ø> (ø)
frontend-report 100.00% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@shilob shilob left a comment

Choose a reason for hiding this comment

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

Good to go!

@andrewbrazzatti andrewbrazzatti merged commit 8b0d873 into develop May 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants