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
feat: add db-session store #722
Conversation
Some concerns regarding how to handle this properly for tests, we mentioned adding a new option as to whether or not we're using a db backed session store. We should also scrap the cookie-session and |
fb578d9
to
b8091fa
Compare
Will the store go to database everytime, or is it possible to have some local in-mem cache for hot sessions? If yes we need to think about how logout should work to invalidate local cache. If no we need to do some performance testing to make sure we are not overloading the db |
b8091fa
to
2c21c73
Compare
3a62ddc
to
7dede72
Compare
e08e706
to
4486099
Compare
src/lib/options.js
Outdated
@@ -81,6 +81,7 @@ function defaultOptions() { | |||
version, | |||
secureHeaders: process.env.SECURE_HEADERS || false, | |||
enableOAS: process.env.ENABLE_OAS || false, | |||
dbSession: process.env.DB_SESSION || true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we introduce a session section? { session: { db: true }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, and move maxAge in there as well then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
introduced in a9c198d
4486099
to
f6cf1a2
Compare
* feat: setup new screen structure * refactor: strategyParameter * feat: add strategy input errors for required fields * feat: add create strategy to routes * feat: add EditStrategy component * feat: edit strategy view and EditStrategy component * feat: update EditStrategy component * test: update snapshots * fix: styles * test: update snapshots * refactor: rename StrategyForm and fix ts errors * test: update snapshots * fix: remove test route * fix: update PR based on feedback * fix: update PR based on feedback * refactor: restore feature settings (#712) * refactor: resotre feature settings * fix: update PR based on feedback * feat: add feature information in Metadata container * fix: update PR based on feedback * fix: update PR based on feedback Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com> * chore(deps): update dependency @types/react-dom to v17.0.13 * refactor: expect existing TS errors (#767) * refactor: expect existing TS errors * refactor: fail build on new TS errors * fix: styles * refactor: rename StrategyForm and fix ts errors * fix: update PR based on feedback * fix: cleaning up * fix: remove errors and warnings * fix: remove ts-expect-error and fix errors * fix: ts errors * Update src/component/strategies/StrategyView/StrategyView.tsx * Update src/component/strategies/StrategyView/StrategyView.tsx Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: olav <mail@olav.io>
No description provided.